Add Annex B intrinsics

This commit is contained in:
André Bargull 2025-07-07 07:00:54 +02:00 committed by Ms2ger
parent 5b249ecbbd
commit 086aab47dd

View File

@ -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) => {