Strict mode Passingnon-Strict mode Passing
Features:
- Symbol.iterator
// Copyright (C) 2014 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 21.1.5.2 description: > The [[Prototype]] internal slot ofthe %StringIteratorPrototype% is the %IteratorPrototype% intrinsic object (25.1.2). features: [Symbol.iterator] ---*/ var strItrProto = Object.getPrototypeOf(''[Symbol.iterator]()); var itrProto = Object.getPrototypeOf( Object.getPrototypeOf([][Symbol.iterator]()) ); assert.sameValue(Object.getPrototypeOf(strItrProto), itrProto);