mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
harness: Correct sources of %{Async,}GeneratorFunction%
As far as I can tell these are wrong, giving %GeneratorFunction.prototype% and %AsyncGeneratorFunction.prototype% instead. These new expressions are how MDN claims you can get the intrinsics.
This commit is contained in:
parent
a4536dc65f
commit
18ce488401
@ -34,7 +34,7 @@ const WellKnownIntrinsicObjects = [
|
||||
},
|
||||
{
|
||||
name: '%AsyncGeneratorFunction%',
|
||||
source: 'Object.getPrototypeOf(async function * () {})',
|
||||
source: '(async function* () {}).constructor',
|
||||
},
|
||||
{
|
||||
name: '%AsyncIteratorPrototype%',
|
||||
@ -119,7 +119,7 @@ const WellKnownIntrinsicObjects = [
|
||||
},
|
||||
{
|
||||
name: '%GeneratorFunction%',
|
||||
source: 'Object.getPrototypeOf(function * () {})',
|
||||
source: '(function* () {}).constructor',
|
||||
},
|
||||
{
|
||||
name: '%Int8Array%',
|
||||
|
Loading…
x
Reference in New Issue
Block a user