harness: Add clarifying comments about inaccessible intrinsics

As far as I know, %AsyncFromSyncIteratorPrototype% and
%ForInIteratorPrototype% are not (and not intended to be) accessible to
ECMAScript user code, so they are impossible to test directly. Add a
clarifying comment, and make the source expression consistent ('' vs.
'undefined').
This commit is contained in:
Philip Chimento 2025-02-11 15:03:37 -08:00 committed by Philip Chimento
parent ece6726c1e
commit a4536dc65f
1 changed files with 3 additions and 1 deletions

View File

@ -24,8 +24,9 @@ const WellKnownIntrinsicObjects = [
source: 'Object.getPrototypeOf([][Symbol.iterator]())',
},
{
// Not currently accessible to ECMAScript user code
name: '%AsyncFromSyncIteratorPrototype%',
source: 'undefined',
source: '',
},
{
name: '%AsyncFunction%',
@ -108,6 +109,7 @@ const WellKnownIntrinsicObjects = [
source: 'Float64Array',
},
{
// Not currently accessible to ECMAScript user code
name: '%ForInIteratorPrototype%',
source: '',
},