diff --git a/harness/wellKnownIntrinsicObjects.js b/harness/wellKnownIntrinsicObjects.js index ecc86bb447..6e598180d2 100644 --- a/harness/wellKnownIntrinsicObjects.js +++ b/harness/wellKnownIntrinsicObjects.js @@ -36,6 +36,10 @@ const WellKnownIntrinsicObjects = [ name: '%AsyncGeneratorFunction%', source: '(async function* () {}).constructor', }, + { + name: '%AsyncGeneratorPrototype%', + source: 'Object.getPrototypeOf(async function* () {}).prototype', + }, { name: '%AsyncIteratorPrototype%', source: '((async function * () {})())[Symbol.asyncIterator]()', @@ -121,6 +125,10 @@ const WellKnownIntrinsicObjects = [ name: '%GeneratorFunction%', source: '(function* () {}).constructor', }, + { + name: '%GeneratorPrototype%', + source: 'Object.getPrototypeOf(function * () {}).prototype', + }, { name: '%Int8Array%', source: 'Int8Array', @@ -142,8 +150,12 @@ const WellKnownIntrinsicObjects = [ source: 'isNaN', }, { - name: '%IteratorPrototype%', - source: 'Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))', + name: '%Iterator%', + source: 'typeof Iterator !== "undefined" ? Iterator : Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())).constructor', + }, + { + name: '%IteratorHelperPrototype%', + source: 'Object.getPrototypeOf(Iterator.from([]).drop(0))', }, { name: '%JSON%', @@ -277,6 +289,10 @@ const WellKnownIntrinsicObjects = [ name: '%WeakSet%', source: 'WeakSet', }, + { + name: '%WrapForValidIteratorPrototype%', + source: 'Object.getPrototypeOf(Iterator.from({ [Symbol.iterator](){ return {}; } }))', + }, ]; WellKnownIntrinsicObjects.forEach((wkio) => {