| // 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%-@@tostringtag |
| description: > |
| `Symbol.toStringTag` property descriptor |
| info: | |
| The initial value of the @@toStringTag property is the String value "Array |
| Iterator". |
| |
| This property has the attributes { [[Writable]]: false, [[Enumerable]]: |
| false, [[Configurable]]: true }. |
| features: [Symbol.iterator, Symbol.toStringTag] |
| includes: [propertyHelper.js] |
| es6id: 22.1.5.2.2 |
| ---*/ |
| |
| var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]()); |
| |
| assert.sameValue("Array Iterator", ArrayIteratorProto[Symbol.toStringTag]); |
| |
| verifyNotEnumerable(ArrayIteratorProto, Symbol.toStringTag); |
| verifyNotWritable(ArrayIteratorProto, Symbol.toStringTag); |
| verifyConfigurable(ArrayIteratorProto, Symbol.toStringTag); |