From 5b249ecbbdd1ade246814ada46919f3a5127e9b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Mon, 7 Jul 2025 06:58:50 +0200 Subject: [PATCH] Fix intrinsic source for AsyncIteratorPrototype and RegExpStringIteratorPrototype --- harness/wellKnownIntrinsicObjects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harness/wellKnownIntrinsicObjects.js b/harness/wellKnownIntrinsicObjects.js index 4ad1824788..930d6eef7a 100644 --- a/harness/wellKnownIntrinsicObjects.js +++ b/harness/wellKnownIntrinsicObjects.js @@ -42,7 +42,7 @@ const WellKnownIntrinsicObjects = [ }, { name: '%AsyncIteratorPrototype%', - source: '((async function * () {})())[Symbol.asyncIterator]()', + source: 'Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype)', }, { name: '%Atomics%', @@ -215,7 +215,7 @@ const WellKnownIntrinsicObjects = [ }, { name: '%RegExpStringIteratorPrototype%', - source: 'RegExp.prototype[Symbol.matchAll]("")', + source: 'Object.getPrototypeOf(RegExp.prototype[Symbol.matchAll](""))', }, { name: '%Set%',