From a4536dc65f4fb1c0d389b7c12022dd382d92bdae Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Tue, 11 Feb 2025 15:03:37 -0800 Subject: [PATCH] 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'). --- harness/wellKnownIntrinsicObjects.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/harness/wellKnownIntrinsicObjects.js b/harness/wellKnownIntrinsicObjects.js index 13b06be5b8..173f4c194e 100644 --- a/harness/wellKnownIntrinsicObjects.js +++ b/harness/wellKnownIntrinsicObjects.js @@ -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: '', },