diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/ArrayIteratorPrototype/next/property-descriptor.js')
-rw-r--r-- | js/src/tests/test262/built-ins/ArrayIteratorPrototype/next/property-descriptor.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/ArrayIteratorPrototype/next/property-descriptor.js b/js/src/tests/test262/built-ins/ArrayIteratorPrototype/next/property-descriptor.js new file mode 100644 index 0000000000..65361cddc7 --- /dev/null +++ b/js/src/tests/test262/built-ins/ArrayIteratorPrototype/next/property-descriptor.js @@ -0,0 +1,19 @@ +// Copyright (C) 2013 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-%arrayiteratorprototype%.next +description: > + The method should exist on the ArrayIterator prototype, and it should be + writable and configurable, but not enumerable. +includes: [propertyHelper.js] +features: [Symbol.iterator] +---*/ + +var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]()); + +verifyNotEnumerable(ArrayIteratorProto, 'next'); +verifyWritable(ArrayIteratorProto, 'next'); +verifyConfigurable(ArrayIteratorProto, 'next'); + +reportCompare(0, 0); |