From 086aab47ddeb245e0e577a9ba2b3c8b7f81a496e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Mon, 7 Jul 2025 07:00:54 +0200 Subject: [PATCH] Add Annex B intrinsics --- harness/wellKnownIntrinsicObjects.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/harness/wellKnownIntrinsicObjects.js b/harness/wellKnownIntrinsicObjects.js index 930d6eef7a..d0d44c18c8 100644 --- a/harness/wellKnownIntrinsicObjects.js +++ b/harness/wellKnownIntrinsicObjects.js @@ -293,6 +293,18 @@ const WellKnownIntrinsicObjects = [ name: '%WrapForValidIteratorPrototype%', source: 'Object.getPrototypeOf(Iterator.from({ [Symbol.iterator](){ return {}; } }))', }, + + // Extensions to well-known intrinsic objects. + // + // https://tc39.es/ecma262/#sec-additional-properties-of-the-global-object + { + name: "%escape%", + source: "escape", + }, + { + name: "%unescape%", + source: "unescape", + }, ]; WellKnownIntrinsicObjects.forEach((wkio) => {