proto.js (537B)
1 // Copyright (C) 2020 Rick Waldron. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-properties-of-the-iterator-constructor 6 description: > 7 The value of the [[Prototype]] internal slot of the Iterator constructor is the 8 intrinsic object %FunctionPrototype%. 9 features: [iterator-helpers] 10 ---*/ 11 12 assert.sameValue( 13 Object.getPrototypeOf(Iterator), 14 Function.prototype, 15 'Object.getPrototypeOf(Iterator) must return the value of Function.prototype' 16 ); 17 18 reportCompare(0, 0);