ses 0.15.23 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lockdown.cjs CHANGED
@@ -69,40 +69,26 @@ const {
69
69
  seal,
70
70
  preventExtensions,
71
71
  setPrototypeOf,
72
- values}=
73
- Object;$h‍_once.assign(assign);$h‍_once.create(create);$h‍_once.defineProperties(defineProperties);$h‍_once.entries(entries);$h‍_once.freeze(freeze);$h‍_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h‍_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h‍_once.getOwnPropertyNames(getOwnPropertyNames);$h‍_once.getPrototypeOf(getPrototypeOf);$h‍_once.is(is);$h‍_once.isExtensible(isExtensible);$h‍_once.keys(keys);$h‍_once.objectPrototype(objectPrototype);$h‍_once.seal(seal);$h‍_once.preventExtensions(preventExtensions);$h‍_once.setPrototypeOf(setPrototypeOf);$h‍_once.values(values);
72
+ values,
73
+ fromEntries}=
74
+ Object;$h‍_once.assign(assign);$h‍_once.create(create);$h‍_once.defineProperties(defineProperties);$h‍_once.entries(entries);$h‍_once.freeze(freeze);$h‍_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h‍_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h‍_once.getOwnPropertyNames(getOwnPropertyNames);$h‍_once.getPrototypeOf(getPrototypeOf);$h‍_once.is(is);$h‍_once.isExtensible(isExtensible);$h‍_once.keys(keys);$h‍_once.objectPrototype(objectPrototype);$h‍_once.seal(seal);$h‍_once.preventExtensions(preventExtensions);$h‍_once.setPrototypeOf(setPrototypeOf);$h‍_once.values(values);$h‍_once.fromEntries(fromEntries);
74
75
 
75
76
  const {
76
77
  species: speciesSymbol,
77
78
  toStringTag: toStringTagSymbol,
78
79
  iterator: iteratorSymbol,
79
80
  matchAll: matchAllSymbol,
81
+ unscopables: unscopablesSymbol,
80
82
  keyFor: symbolKeyFor,
81
83
  for: symbolFor}=
82
- Symbol;$h‍_once.speciesSymbol(speciesSymbol);$h‍_once.toStringTagSymbol(toStringTagSymbol);$h‍_once.iteratorSymbol(iteratorSymbol);$h‍_once.matchAllSymbol(matchAllSymbol);$h‍_once.symbolKeyFor(symbolKeyFor);$h‍_once.symbolFor(symbolFor);
84
+ Symbol;$h‍_once.speciesSymbol(speciesSymbol);$h‍_once.toStringTagSymbol(toStringTagSymbol);$h‍_once.iteratorSymbol(iteratorSymbol);$h‍_once.matchAllSymbol(matchAllSymbol);$h‍_once.unscopablesSymbol(unscopablesSymbol);$h‍_once.symbolKeyFor(symbolKeyFor);$h‍_once.symbolFor(symbolFor);
83
85
 
84
86
  const { isInteger}= Number;$h‍_once.isInteger(isInteger);
85
87
 
86
88
  const { stringify: stringifyJson}= JSON;
87
89
 
88
- // At time of this writing, we still support Node 10 which doesn't have
89
- // `Object.fromEntries`. If it is absent, this should be an adequate
90
- // replacement.
91
- // By the terminology of https://ponyfoo.com/articles/polyfills-or-ponyfills
92
- // it is a ponyfill rather than a polyfill or shim because we do not
93
- // install it on `Object`.
94
- $h‍_once.stringifyJson(stringifyJson);const objectFromEntries=(entryPairs)=>{
95
- const result= {};
96
- for( const [prop, val]of entryPairs) {
97
- result[prop]= val;
98
- }
99
- return result;
100
- };
101
-
102
- const fromEntries= Object.fromEntries|| objectFromEntries;
103
-
104
90
  // Needed only for the Safari bug workaround below
105
- $h‍_once.fromEntries(fromEntries);const{defineProperty:originalDefineProperty}=Object;
91
+ $h‍_once.stringifyJson(stringifyJson);const{defineProperty:originalDefineProperty}=Object;
106
92
 
107
93
  const defineProperty= (object, prop, descriptor)=> {
108
94
  // We used to do the following, until we had to reopen Safari bug
@@ -1368,77 +1354,96 @@ const assert= makeAssert();$h‍_once.assert(assert);
1368
1354
  })
1369
1355
  ,
1370
1356
  // === functors[5] ===
1371
- (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_FUNCTION,arrayJoin;$h‍_imports([["./commons.js", [["FERAL_FUNCTION", [$h‍_a => (FERAL_FUNCTION = $h‍_a)]],["arrayJoin", [$h‍_a => (arrayJoin = $h‍_a)]]]]]);
1357
+ (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_EVAL,create,defineProperties,freeze,assert;$h‍_imports([["./commons.js", [["FERAL_EVAL", [$h‍_a => (FERAL_EVAL = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
1372
1358
 
1373
- /**
1374
- * buildOptimizer()
1375
- * Given an array of indentifier, the optimizer return a `const` declaration
1376
- * destructring `this`.
1377
- *
1378
- * @param {Array<string>} constants
1379
- */
1380
- function buildOptimizer(constants) {
1381
- // No need to build an optimizer when there are no constants.
1382
- if( constants.length=== 0) return '';
1383
- // Use 'this' to avoid going through the scope proxy, which is unecessary
1384
- // since the optimizer only needs references to the safe global.
1385
- return `const {${arrayJoin(constants,',') }} = this;`;
1386
- }
1387
1359
 
1388
- /**
1389
- * makeEvaluateFactory()
1390
- * The factory create 'evaluate' functions with the correct optimizer
1391
- * inserted.
1392
- *
1393
- * @param {Array<string>} [constants]
1394
- */
1395
- const makeEvaluateFactory= (constants= [])=> {
1396
- const optimizer= buildOptimizer(constants);
1397
1360
 
1398
- // Create a function in sloppy mode, so that we can use 'with'. It returns
1399
- // a function in strict mode that evaluates the provided code using direct
1400
- // eval, and thus in strict mode in the same scope. We must be very careful
1401
- // to not create new names in this scope
1361
+ const { details: d}= assert;
1402
1362
 
1403
- // 1: we use 'with' (around a Proxy) to catch all free variable names. The
1404
- // `this` value holds the Proxy which safely wraps the safeGlobal
1405
- // 2: 'optimizer' catches constant variable names for speed.
1406
- // 3: The inner strict function is effectively passed two parameters:
1407
- // a) its arguments[0] is the source to be directly evaluated.
1408
- // b) its 'this' is the this binding seen by the code being
1409
- // directly evaluated (the globalObject).
1410
- // 4: The outer sloppy function is passed one parameter, the scope proxy.
1411
- // as the `this` parameter.
1363
+ // We attempt to frustrate stack bumping attacks on the safe evaluator
1364
+ // (`make-safe-evaluator.js`).
1365
+ // A stack bumping attack forces an API call to throw a stack overflow
1366
+ // `RangeError` at an inopportune time.
1367
+ // The attacker arranges for the stack to be sufficiently deep that the API
1368
+ // consumes exactly enough stack frames to throw an exception.
1369
+ //
1370
+ // For the safe evaluator, an exception thrown between adding and then deleting
1371
+ // `eval` on `evalScope` could leak the real `eval` to an attacker's lexical
1372
+ // scope.
1373
+ // This would be sufficiently disastrous that we guard against it twice.
1374
+ // First, we delete `eval` from `evalScope` immediately before rendering it to
1375
+ // the guest program's lexical scope.
1376
+ //
1377
+ // If the attacker manages to arrange for `eval` to throw an exception after we
1378
+ // call `allowNextEvalToBeUnsafe` but before the guest program accesses `eval`,
1379
+ // it would be able to access `eval` once more in its own code.
1380
+ // Although they could do no harm with a direct `eval`, they would be able to
1381
+ // escape to the true global scope with an indirect `eval`.
1382
+ //
1383
+ // prepareStack(depth, () => {
1384
+ // (eval)('');
1385
+ // });
1386
+ // const unsafeEval = (eval);
1387
+ // const safeEval = (eval);
1388
+ // const realGlobal = unsafeEval('globalThis');
1389
+ //
1390
+ // To protect against that case, we also delete `eval` from the `evalScope` in
1391
+ // a `finally` block surrounding the call to the safe evaluator.
1392
+ // The only way to reach this case is if `eval` remains on `evalScope` due to
1393
+ // an attack, so we assume that attack would have have invalided our isolation
1394
+ // and revoke all future access to the evaluator.
1395
+ //
1396
+ // To defeat a stack bumping attack, we must use fewer stack frames to recover
1397
+ // in that `finally` block than we used in the `try` block.
1398
+ // We have no reliable guarantees about how many stack frames a block of
1399
+ // JavaScript will consume.
1400
+ // Function inlining, tail-call optimization, variations in the size of a stack
1401
+ // frame, and block scopes may affect the depth of the stack.
1402
+ // The only number of acceptable stack frames to use in the finally block is
1403
+ // zero.
1404
+ // We only use property assignment and deletion in the safe evaluator's
1405
+ // `finally` block.
1406
+ // We use `delete evalScope.eval` to withhold the evaluator.
1407
+ // We assign an envelope object over `evalScopeKit.revoked` to revoke the
1408
+ // evaluator.
1409
+ //
1410
+ // This is why we supply a meaningfully named function for
1411
+ // `allowNextEvalToBeUnsafe` but do not provide a corresponding
1412
+ // `revokeAccessToUnsafeEval` or even simply `revoke`.
1413
+ // These recovery routines are expressed inline in the safe evaluator.
1414
+
1415
+ const makeEvalScopeKit= ()=> {
1416
+ const evalScope= create(null);
1417
+ const oneTimeEvalProperties= freeze({
1418
+ eval: {
1419
+ get() {
1420
+ delete evalScope.eval;
1421
+ return FERAL_EVAL;
1422
+ },
1423
+ enumerable: false,
1424
+ configurable: true}});
1412
1425
 
1413
- // Notes:
1414
- // - everything in the 'optimizer' string is looked up in the proxy
1415
- // (including an 'arguments[0]', which points at the Proxy).
1416
- // - keywords like 'function' which are reserved keywords, and cannot be
1417
- // used as a variable, so they are not part of the optimizer.
1418
- // - when 'eval' is looked up in the proxy, and it's the first time it is
1419
- // looked up after allowNextEvalToBeUnsafe is turned on, the proxy returns
1420
- // the powerful, unsafe eval intrinsic, and flips allowNextEvalToBeUnsafe
1421
- // back to false. Any reference to 'eval' in that string will get the tamed
1422
- // evaluator.
1423
1426
 
1424
- // TODO https://github.com/endojs/endo/issues/816
1425
- // The optimizer currently runs under sloppy mode, and although we doubt that
1426
- // there is any vulnerability introduced just by running the optimizer
1427
- // sloppy, we are much more confident in the semantics of strict mode.
1428
- // The motivation for having the optimizer in sloppy mode is that it can be
1429
- // reused for multiple evaluations, but in practice we have no such calls.
1430
- // We could probably both move the optimizer into the inner function
1431
- // and we could also simplify makeEvaluateFactory to simply evaluate.
1432
- return FERAL_FUNCTION( `
1433
- with (this) {
1434
- ${optimizer }
1435
- return function() {
1436
- 'use strict';
1437
- return eval(arguments[0]);
1438
- };
1439
- }
1440
- `);
1441
- };$h‍_once.makeEvaluateFactory(makeEvaluateFactory);
1427
+
1428
+ const evalScopeKit= {
1429
+ evalScope,
1430
+ allowNextEvalToBeUnsafe() {
1431
+ if( evalScopeKit.revoked!== null) {
1432
+ // eslint-disable-next-line @endo/no-polymorphic-call
1433
+ assert.fail(
1434
+ d `a handler did not reset allowNextEvalToBeUnsafe ${this.revoked.err}`);
1435
+
1436
+ }
1437
+ // Allow next reference to eval produce the unsafe FERAL_EVAL.
1438
+ // We avoid defineProperty because it consumes an extra stack frame taming
1439
+ // its return value.
1440
+ defineProperties(evalScope, oneTimeEvalProperties);
1441
+ },
1442
+ revoked: null};
1443
+
1444
+
1445
+ return evalScopeKit;
1446
+ };$h‍_once.makeEvalScopeKit(makeEvalScopeKit);
1442
1447
  })
1443
1448
  ,
1444
1449
  // === functors[6] ===
@@ -1521,7 +1526,7 @@ const keywords= [
1521
1526
 
1522
1527
  /**
1523
1528
  * identifierPattern
1524
- * Simplified validation of indentifier names: may only contain alphanumeric
1529
+ * Simplified validation of identifier names: may only contain alphanumeric
1525
1530
  * characters (or "$" or "_"), and may not start with a digit. This is safe
1526
1531
  * and does not reduces the compatibility of the shim. The motivation for
1527
1532
  * this limitation was to decrease the complexity of the implementation,
@@ -1588,45 +1593,157 @@ function isImmutableDataProperty(obj, name) {
1588
1593
  * safe and only prevent performance optimization.
1589
1594
  *
1590
1595
  * @param {Object} globalObject
1591
- * @param {Object} localObject
1596
+ * @param {Object} globalLexicals
1592
1597
  */
1593
- const getScopeConstants= (globalObject, localObject= {})=> {
1598
+ const getScopeConstants= (globalObject, globalLexicals= {})=> {
1594
1599
  // getOwnPropertyNames() does ignore Symbols so we don't need to
1595
1600
  // filter them out.
1596
- const globalNames= getOwnPropertyNames(globalObject);
1597
- const localNames= getOwnPropertyNames(localObject);
1601
+ const globalObjectNames= getOwnPropertyNames(globalObject);
1602
+ const globalLexicalNames= getOwnPropertyNames(globalLexicals);
1598
1603
 
1599
1604
  // Collect all valid & immutable identifiers from the endowments.
1600
- const localConstants= arrayFilter(
1601
- localNames,
1605
+ const globalLexicalConstants= arrayFilter(
1606
+ globalLexicalNames,
1602
1607
  (name)=>
1603
- isValidIdentifierName(name)&& isImmutableDataProperty(localObject, name));
1608
+ isValidIdentifierName(name)&&
1609
+ isImmutableDataProperty(globalLexicals, name));
1604
1610
 
1605
1611
 
1606
1612
  // Collect all valid & immutable identifiers from the global that
1607
- // are also not present in the endwoments (immutable or not).
1608
- const globalConstants= arrayFilter(
1609
- globalNames,
1613
+ // are also not present in the endowments (immutable or not).
1614
+ const globalObjectConstants= arrayFilter(
1615
+ globalObjectNames,
1610
1616
  (name)=>
1611
1617
  // Can't define a constant: it would prevent a
1612
1618
  // lookup on the endowments.
1613
- !arrayIncludes(localNames, name)&&
1619
+ !arrayIncludes(globalLexicalNames, name)&&
1614
1620
  isValidIdentifierName(name)&&
1615
1621
  isImmutableDataProperty(globalObject, name));
1616
1622
 
1617
1623
 
1618
- return [...globalConstants, ...localConstants];
1624
+ return {
1625
+ globalObjectConstants,
1626
+ globalLexicalConstants};
1627
+
1619
1628
  };$h‍_once.getScopeConstants(getScopeConstants);
1620
1629
  })
1621
1630
  ,
1622
1631
  // === functors[7] ===
1623
- (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_EVAL,Proxy,String,TypeError,create,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,immutableObject,objectHasOwnProperty,reflectGet,reflectSet,seal,assert;$h‍_imports([["./commons.js", [["FERAL_EVAL", [$h‍_a => (FERAL_EVAL = $h‍_a)]],["Proxy", [$h‍_a => (Proxy = $h‍_a)]],["String", [$h‍_a => (String = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["getOwnPropertyDescriptors", [$h‍_a => (getOwnPropertyDescriptors = $h‍_a)]],["globalThis", [$h‍_a => (globalThis = $h‍_a)]],["immutableObject", [$h‍_a => (immutableObject = $h‍_a)]],["objectHasOwnProperty", [$h‍_a => (objectHasOwnProperty = $h‍_a)]],["reflectGet", [$h‍_a => (reflectGet = $h‍_a)]],["reflectSet", [$h‍_a => (reflectSet = $h‍_a)]],["seal", [$h‍_a => (seal = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
1632
+ (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_FUNCTION,arrayJoin,apply,getScopeConstants;$h‍_imports([["./commons.js", [["FERAL_FUNCTION", [$h‍_a => (FERAL_FUNCTION = $h‍_a)]],["arrayJoin", [$h‍_a => (arrayJoin = $h‍_a)]],["apply", [$h‍_a => (apply = $h‍_a)]]]],["./scope-constants.js", [["getScopeConstants", [$h‍_a => (getScopeConstants = $h‍_a)]]]]]);
1633
+
1634
+
1624
1635
 
1625
1636
 
1637
+ /**
1638
+ * buildOptimizer()
1639
+ * Given an array of identifiers, the optimizer returns a `const` declaration
1640
+ * destructuring `this.${name}`.
1641
+ *
1642
+ * @param {Array<string>} constants
1643
+ * @param {string} name
1644
+ */
1645
+ function buildOptimizer(constants, name) {
1646
+ // No need to build an optimizer when there are no constants.
1647
+ if( constants.length=== 0) return '';
1648
+ // Use 'this' to avoid going through the scope proxy, which is unnecessary
1649
+ // since the optimizer only needs references to the safe global.
1650
+ // Destructure the constants from the target scope object.
1651
+ return `const {${arrayJoin(constants,',') }} = this.${name};`;
1652
+ }
1653
+
1654
+ /**
1655
+ * makeEvaluate()
1656
+ * Create an 'evaluate' function with the correct optimizer inserted.
1657
+ *
1658
+ * @param {object} context
1659
+ * @param {object} context.evalScope
1660
+ * @param {object} context.globalLexicals
1661
+ * @param {object} context.globalObject
1662
+ * @param {object} context.scopeTerminator
1663
+ */
1664
+ const makeEvaluate= (context)=>{
1665
+ const { globalObjectConstants, globalLexicalConstants}= getScopeConstants(
1666
+ context.globalObject,
1667
+ context.globalLexicals);
1626
1668
 
1669
+ const globalObjectOptimizer= buildOptimizer(
1670
+ globalObjectConstants,
1671
+ 'globalObject');
1627
1672
 
1673
+ const globalLexicalOptimizer= buildOptimizer(
1674
+ globalLexicalConstants,
1675
+ 'globalLexicals');
1628
1676
 
1629
1677
 
1678
+ // Create a function in sloppy mode, so that we can use 'with'. It returns
1679
+ // a function in strict mode that evaluates the provided code using direct
1680
+ // eval, and thus in strict mode in the same scope. We must be very careful
1681
+ // to not create new names in this scope
1682
+
1683
+ // 1: we use multiple nested 'with' to catch all free variable names. The
1684
+ // `this` value of the outer sloppy function holds the different scope
1685
+ // layers, from inner to outer:
1686
+ // a) `evalScope` which must release the `FERAL_EVAL` as 'eval' once for
1687
+ // every invocation of the inner `evaluate` function in order to
1688
+ // trigger direct eval. The direct eval semantics is what allows the
1689
+ // evaluated code to lookup free variable names on the other scope
1690
+ // objects and not in global scope.
1691
+ // b) `globalLexicals` which provide a way to introduce free variables
1692
+ // that are not available on the globalObject.
1693
+ // c) `globalObject` is the global scope object of the evaluator, aka the
1694
+ // Compartment's `globalThis`.
1695
+ // d) `scopeTerminator` is a proxy object which prevents free variable
1696
+ // lookups to escape to the start compartment's global object.
1697
+ // 2: `optimizer`s catch constant variable names for speed.
1698
+ // 3: The inner strict `evaluate` function should be passed two parameters:
1699
+ // a) its arguments[0] is the source to be directly evaluated.
1700
+ // b) its 'this' is the this binding seen by the code being
1701
+ // directly evaluated (the globalObject).
1702
+
1703
+ // Notes:
1704
+ // - The `optimizer` strings only lookup values on the `globalObject` and
1705
+ // `globalLexicals` objects by construct. Keywords like 'function' are
1706
+ // reserved and cannot be used as a variable, so they are excluded from the
1707
+ // optimizer. Furthermore to prevent shadowing 'eval', while a valid
1708
+ // identifier, that name is also explicitly excluded.
1709
+ // - when 'eval' is looked up in the `evalScope`, the powerful unsafe eval
1710
+ // intrinsic is returned after automatically removing it from the
1711
+ // `evalScope`. Any further reference to 'eval' in the evaluate string will
1712
+ // get the tamed evaluator from the `globalObject`, if any.
1713
+
1714
+ // TODO https://github.com/endojs/endo/issues/816
1715
+ // The optimizer currently runs under sloppy mode, and although we doubt that
1716
+ // there is any vulnerability introduced just by running the optimizer
1717
+ // sloppy, we are much more confident in the semantics of strict mode.
1718
+ // The `evaluate` function can be and is reused across multiple evaluations.
1719
+ // Since the optimizer should not be re-evaluated every time, it cannot be
1720
+ // inside the `evaluate` closure. While we could potentially nest an
1721
+ // intermediate layer of `() => {'use strict'; ${optimizers}; ...`, it
1722
+ // doesn't seem worth the overhead and complexity.
1723
+ const evaluateFactory= FERAL_FUNCTION( `
1724
+ with (this.scopeTerminator) {
1725
+ with (this.globalObject) {
1726
+ with (this.globalLexicals) {
1727
+ with (this.evalScope) {
1728
+ ${globalObjectOptimizer }
1729
+ ${globalLexicalOptimizer }
1730
+ return function() {
1731
+ 'use strict';
1732
+ return eval(arguments[0]);
1733
+ };
1734
+ }
1735
+ }
1736
+ }
1737
+ }
1738
+ `);
1739
+
1740
+ return apply(evaluateFactory, context, []);
1741
+ };$h‍_once.makeEvaluate(makeEvaluate);
1742
+ })
1743
+ ,
1744
+ // === functors[8] ===
1745
+ (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,globalThis,immutableObject,assert;$h‍_imports([["./commons.js", [["Proxy", [$h‍_a => (Proxy = $h‍_a)]],["String", [$h‍_a => (String = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["ReferenceError", [$h‍_a => (ReferenceError = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["getOwnPropertyDescriptors", [$h‍_a => (getOwnPropertyDescriptors = $h‍_a)]],["globalThis", [$h‍_a => (globalThis = $h‍_a)]],["immutableObject", [$h‍_a => (immutableObject = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
1746
+
1630
1747
 
1631
1748
 
1632
1749
 
@@ -1645,9 +1762,9 @@ const { details: d, quote: q}= assert;
1645
1762
  * This is an object that throws if any property is called. It's used as
1646
1763
  * a proxy handler which throws on any trap called.
1647
1764
  * It's made from a proxy with a get trap that throws. It's safe to
1648
- * create one and share it between all scopeHandlers.
1765
+ * create one and share it between all Proxy handlers.
1649
1766
  */
1650
- const alwaysThrowHandler= new Proxy(
1767
+ const alwaysThrowHandler= new Proxy(
1651
1768
  immutableObject,
1652
1769
  freeze({
1653
1770
  get(_shadow, prop) {
@@ -1660,180 +1777,120 @@ const alwaysThrowHandler= new Proxy(
1660
1777
 
1661
1778
 
1662
1779
  /*
1663
- * createScopeHandler()
1664
- * ScopeHandler manages a Proxy which serves as the global scope for the
1665
- * safeEvaluate operation (the Proxy is the argument of a 'with' binding).
1666
- * As described in createSafeEvaluator(), it has several functions:
1667
- * - allow the very first (and only the very first) use of 'eval' to map to
1668
- * the real (unsafe) eval function, so it acts as a 'direct eval' and can
1669
- * access its lexical scope (which maps to the 'with' binding, which the
1670
- * ScopeHandler also controls).
1671
- * - ensure that all subsequent uses of 'eval' map to the safeEvaluator,
1672
- * which lives as the 'eval' property of the safeGlobal.
1673
- * - route all other property lookups at the safeGlobal.
1674
- * - hide the unsafeGlobal which lives on the scope chain above the 'with'.
1675
- * - ensure the Proxy invariants despite some global properties being frozen.
1676
- */
1677
- const createScopeHandler= (
1678
- globalObject,
1679
- globalLexicals= {},
1680
- { sloppyGlobalsMode= false}= {})=>
1681
- {
1682
- // This flag allow us to determine if the eval() call is an done by the
1683
- // compartment's code or if it is user-land invocation, so we can react
1684
- // differently.
1685
- // Using a flag on an object with a single mutable property allows a safe
1686
- // evaluator to signal to the scope proxy without consuming a stack frame.
1687
- // Consuming a stack frame could possibly allow an attacker to control the
1688
- // stack depth before calling `evaluate` to cause a RangeError before this
1689
- // flag can be reset, leaving the unsafe evaluator available.
1690
- const scopeController= {
1691
- allowNextEvalToBeUnsafe: false};
1692
-
1693
- seal(scopeController);
1780
+ * scopeProxyHandlerProperties
1781
+ * scopeTerminatorHandler manages a strictScopeTerminator Proxy which serves as
1782
+ * the final scope boundary that will always return "undefined" in order
1783
+ * to prevent access to "start compartment globals".
1784
+ */$h‍_once.alwaysThrowHandler(alwaysThrowHandler);
1785
+ const scopeProxyHandlerProperties= {
1786
+ get(_shadow, _prop) {
1787
+ return undefined;
1788
+ },
1694
1789
 
1695
- const scopeProxyHandlerProperties= {
1696
- get(_shadow, prop) {
1697
- if( typeof prop=== 'symbol') {
1698
- return undefined;
1699
- }
1790
+ set(_shadow, prop, _value) {
1791
+ // We should only hit this if the has() hook returned true matches the v8
1792
+ // ReferenceError message "Uncaught ReferenceError: xyz is not defined"
1793
+ throw new ReferenceError( `${String(prop)} is not defined`);
1794
+ },
1700
1795
 
1701
- // Special treatment for eval. The very first lookup of 'eval' gets the
1702
- // unsafe (real direct) eval, so it will get the lexical scope that uses
1703
- // the 'with' context.
1704
- if( prop=== 'eval') {
1705
- // test that it is true rather than merely truthy
1706
- if( scopeController.allowNextEvalToBeUnsafe=== true) {
1707
- // revoke before use
1708
- scopeController.allowNextEvalToBeUnsafe= false;
1709
- return FERAL_EVAL;
1710
- }
1711
- // fall through
1712
- }
1796
+ has(_shadow, prop) {
1797
+ // we must at least return true for all properties on the realm globalThis
1798
+ return prop in globalThis;
1799
+ },
1713
1800
 
1714
- // Properties of the globalLexicals.
1715
- if( prop in globalLexicals) {
1716
- // Use reflect to defeat accessors that could be present on the
1717
- // globalLexicals object itself as `this`.
1718
- // This is done out of an overabundance of caution, as the SES shim
1719
- // only use the globalLexicals carry globalLexicals and live binding
1720
- // traps.
1721
- // The globalLexicals are captured as a snapshot of what's passed to
1722
- // the Compartment constructor, wherein all accessors and setters are
1723
- // eliminated and the result frozen.
1724
- // The live binding traps do use accessors, and none of those accessors
1725
- // make use of their receiver.
1726
- // Live binding traps provide no avenue for user code to observe the
1727
- // receiver.
1728
- return reflectGet(globalLexicals, prop, globalObject);
1729
- }
1801
+ // note: this is likely a bug of safari
1802
+ // https://bugs.webkit.org/show_bug.cgi?id=195534
1803
+ getPrototypeOf() {
1804
+ return null;
1805
+ },
1730
1806
 
1731
- // Properties of the global.
1732
- return reflectGet(globalObject, prop);
1733
- },
1807
+ // Chip has seen this happen single stepping under the Chrome/v8 debugger.
1808
+ // TODO record how to reliably reproduce, and to test if this fix helps.
1809
+ // TODO report as bug to v8 or Chrome, and record issue link here.
1810
+ getOwnPropertyDescriptor(_target, prop) {
1811
+ // Coerce with `String` in case prop is a symbol.
1812
+ const quotedProp= q(String(prop));
1813
+ // eslint-disable-next-line @endo/no-polymorphic-call
1814
+ console.warn(
1815
+ `getOwnPropertyDescriptor trap on scopeTerminatorHandler for ${quotedProp}`,
1816
+ new TypeError().stack);
1734
1817
 
1735
- set(_shadow, prop, value) {
1736
- // Properties of the globalLexicals.
1737
- if( prop in globalLexicals) {
1738
- const desc= getOwnPropertyDescriptor(globalLexicals, prop);
1739
- if( objectHasOwnProperty(desc, 'value')) {
1740
- // Work around a peculiar behavior in the specs, where
1741
- // value properties are defined on the receiver.
1742
- return reflectSet(globalLexicals, prop, value);
1743
- }
1744
- // Ensure that the 'this' value on setters resolves
1745
- // to the safeGlobal, not to the globalLexicals object.
1746
- return reflectSet(globalLexicals, prop, value, globalObject);
1747
- }
1818
+ return undefined;
1819
+ }};
1748
1820
 
1749
- // Properties of the global.
1750
- return reflectSet(globalObject, prop, value);
1751
- },
1752
1821
 
1753
- // we need has() to return false for some names to prevent the lookup from
1754
- // climbing the scope chain and eventually reaching the unsafeGlobal
1755
- // object (globalThis), which is bad.
1756
-
1757
- // todo: we'd like to just have has() return true for everything, and then
1758
- // use get() to raise a ReferenceError for anything not on the safe global.
1759
- // But we want to be compatible with ReferenceError in the normal case and
1760
- // the lack of ReferenceError in the 'typeof' case. Must either reliably
1761
- // distinguish these two cases (the trap behavior might be different), or
1762
- // we rely on a mandatory source-to-source transform to change 'typeof abc'
1763
- // to XXX. We already need a mandatory parse to prevent the 'import',
1764
- // since it's a special form instead of merely being a global variable/
1765
-
1766
- // note: if we make has() return true always, then we must implement a
1767
- // set() trap to avoid subverting the protection of strict mode (it would
1768
- // accept assignments to undefined globals, when it ought to throw
1769
- // ReferenceError for such assignments)
1770
-
1771
- has(_shadow, prop) {
1772
- // unsafeGlobal: hide all properties of the current global
1773
- // at the expense of 'typeof' being wrong for those properties. For
1774
- // example, in the browser, evaluating 'document = 3', will add
1775
- // a property to globalObject instead of throwing a ReferenceError.
1776
-
1777
- // !!!!! WARNING: DANGER ZONE !!!!!!
1778
- // The order of the conditions in the `||` expression below is of the
1779
- // utmost importance. Under no circumstances should `eval` be checked
1780
- // after `globalObject`. The prototype of the global object is under
1781
- // full control of user code and may be replaced by a proxy with a
1782
- // `has` trap. If we allow that trap to trigger while the
1783
- // `allowNextEvalToBeUnsafe` flag is down, it could allow user code
1784
- // to get a hold of `FERAL_EVAL`, resulting in a complete escape of
1785
- // the compartment.
1786
- // !!!!! WARNING: DANGER ZONE !!!!!!
1787
- return(
1788
- sloppyGlobalsMode||
1789
- scopeController.allowNextEvalToBeUnsafe&& prop=== 'eval'||
1790
- prop in globalLexicals||
1791
- prop in globalObject||
1792
- prop in globalThis);
1822
+ // The scope handler's prototype is a proxy that throws if any trap other
1823
+ // than get/set/has are run (like getOwnPropertyDescriptors, apply,
1824
+ // getPrototypeOf).
1825
+ const strictScopeTerminatorHandler= freeze(
1826
+ create(
1827
+ alwaysThrowHandler,
1828
+ getOwnPropertyDescriptors(scopeProxyHandlerProperties)));$h‍_once.strictScopeTerminatorHandler(strictScopeTerminatorHandler);
1793
1829
 
1794
- },
1795
1830
 
1796
- // note: this is likely a bug of safari
1797
- // https://bugs.webkit.org/show_bug.cgi?id=195534
1798
1831
 
1799
- getPrototypeOf() {
1800
- return null;
1801
- },
1832
+ const strictScopeTerminator= new Proxy(
1833
+ immutableObject,
1834
+ strictScopeTerminatorHandler);$h‍_once.strictScopeTerminator(strictScopeTerminator);
1835
+ })
1836
+ ,
1837
+ // === functors[9] ===
1838
+ (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Proxy,create,freeze,getOwnPropertyDescriptors,immutableObject,reflectSet,strictScopeTerminatorHandler,alwaysThrowHandler;$h‍_imports([["./commons.js", [["Proxy", [$h‍_a => (Proxy = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["getOwnPropertyDescriptors", [$h‍_a => (getOwnPropertyDescriptors = $h‍_a)]],["immutableObject", [$h‍_a => (immutableObject = $h‍_a)]],["reflectSet", [$h‍_a => (reflectSet = $h‍_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler", [$h‍_a => (strictScopeTerminatorHandler = $h‍_a)]],["alwaysThrowHandler", [$h‍_a => (alwaysThrowHandler = $h‍_a)]]]]]);
1802
1839
 
1803
- // Chip has seen this happen single stepping under the Chrome/v8 debugger.
1804
- // TODO record how to reliably reproduce, and to test if this fix helps.
1805
- // TODO report as bug to v8 or Chrome, and record issue link here.
1806
1840
 
1807
- getOwnPropertyDescriptor(_target, prop) {
1808
- // Coerce with `String` in case prop is a symbol.
1809
- const quotedProp= q(String(prop));
1810
- // eslint-disable-next-line @endo/no-polymorphic-call
1811
- console.warn(
1812
- `getOwnPropertyDescriptor trap on scopeHandler for ${quotedProp}`,
1813
- new TypeError().stack);
1814
1841
 
1815
- return undefined;
1842
+
1843
+
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+ /*
1852
+ * createSloppyGlobalsScopeTerminator()
1853
+ * strictScopeTerminatorHandler manages a scopeTerminator Proxy which serves as
1854
+ * the final scope boundary that will always return "undefined" in order
1855
+ * to prevent access to "start compartment globals". When "sloppyGlobalsMode"
1856
+ * is true, the Proxy will perform sets on the "globalObject".
1857
+ */
1858
+ const createSloppyGlobalsScopeTerminator= (globalObject)=>{
1859
+ const scopeProxyHandlerProperties= {
1860
+ // inherit scopeTerminator behavior
1861
+ ...strictScopeTerminatorHandler,
1862
+
1863
+ // Redirect set properties to the globalObject.
1864
+ set(_shadow, prop, value) {
1865
+ return reflectSet(globalObject, prop, value);
1866
+ },
1867
+
1868
+ // Always claim to have a potential property in order to be the recipient of a set
1869
+ has(_shadow, _prop) {
1870
+ return true;
1816
1871
  }};
1817
1872
 
1818
1873
 
1819
1874
  // The scope handler's prototype is a proxy that throws if any trap other
1820
1875
  // than get/set/has are run (like getOwnPropertyDescriptors, apply,
1821
1876
  // getPrototypeOf).
1822
- const scopeHandler= freeze(
1877
+ const sloppyGlobalsScopeTerminatorHandler= freeze(
1823
1878
  create(
1824
1879
  alwaysThrowHandler,
1825
1880
  getOwnPropertyDescriptors(scopeProxyHandlerProperties)));
1826
1881
 
1827
1882
 
1828
1883
 
1829
- return {
1830
- scopeController,
1831
- scopeHandler};
1884
+ const sloppyGlobalsScopeTerminator= new Proxy(
1885
+ immutableObject,
1886
+ sloppyGlobalsScopeTerminatorHandler);
1887
+
1832
1888
 
1833
- };$h‍_once.createScopeHandler(createScopeHandler);
1889
+ return sloppyGlobalsScopeTerminator;
1890
+ };$h‍_once.createSloppyGlobalsScopeTerminator(createSloppyGlobalsScopeTerminator);
1834
1891
  })
1835
1892
  ,
1836
- // === functors[8] ===
1893
+ // === functors[10] ===
1837
1894
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_REG_EXP,regexpExec,stringSlice;$h‍_imports([["./commons.js", [["FERAL_REG_EXP", [$h‍_a => (FERAL_REG_EXP = $h‍_a)]],["regexpExec", [$h‍_a => (regexpExec = $h‍_a)]],["stringSlice", [$h‍_a => (stringSlice = $h‍_a)]]]]]);
1838
1895
 
1839
1896
  // Captures a key and value of the form #key=value or @key=value
@@ -1883,7 +1940,7 @@ const getSourceURL= (src)=>{
1883
1940
  };$h‍_once.getSourceURL(getSourceURL);
1884
1941
  })
1885
1942
  ,
1886
- // === functors[9] ===
1943
+ // === functors[11] ===
1887
1944
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_REG_EXP,SyntaxError,stringReplace,stringSearch,stringSlice,stringSplit,getSourceURL;$h‍_imports([["./commons.js", [["FERAL_REG_EXP", [$h‍_a => (FERAL_REG_EXP = $h‍_a)]],["SyntaxError", [$h‍_a => (SyntaxError = $h‍_a)]],["stringReplace", [$h‍_a => (stringReplace = $h‍_a)]],["stringSearch", [$h‍_a => (stringSearch = $h‍_a)]],["stringSlice", [$h‍_a => (stringSlice = $h‍_a)]],["stringSplit", [$h‍_a => (stringSplit = $h‍_a)]]]],["./get-source-url.js", [["getSourceURL", [$h‍_a => (getSourceURL = $h‍_a)]]]]]);
1888
1945
 
1889
1946
 
@@ -2137,13 +2194,8 @@ const applyTransforms= (source, transforms)=> {
2137
2194
  };$h‍_once.applyTransforms(applyTransforms);
2138
2195
  })
2139
2196
  ,
2140
- // === functors[10] ===
2141
- (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let WeakSet,apply,immutableObject,proxyRevocable,weaksetAdd,getScopeConstants,createScopeHandler,applyTransforms,mandatoryTransforms,makeEvaluateFactory,assert;$h‍_imports([["./commons.js", [["WeakSet", [$h‍_a => (WeakSet = $h‍_a)]],["apply", [$h‍_a => (apply = $h‍_a)]],["immutableObject", [$h‍_a => (immutableObject = $h‍_a)]],["proxyRevocable", [$h‍_a => (proxyRevocable = $h‍_a)]],["weaksetAdd", [$h‍_a => (weaksetAdd = $h‍_a)]]]],["./scope-constants.js", [["getScopeConstants", [$h‍_a => (getScopeConstants = $h‍_a)]]]],["./scope-handler.js", [["createScopeHandler", [$h‍_a => (createScopeHandler = $h‍_a)]]]],["./transforms.js", [["applyTransforms", [$h‍_a => (applyTransforms = $h‍_a)]],["mandatoryTransforms", [$h‍_a => (mandatoryTransforms = $h‍_a)]]]],["./make-evaluate-factory.js", [["makeEvaluateFactory", [$h‍_a => (makeEvaluateFactory = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
2142
-
2143
-
2144
-
2145
-
2146
-
2197
+ // === functors[12] ===
2198
+ (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let apply,freeze,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h‍_imports([["./commons.js", [["apply", [$h‍_a => (apply = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminator", [$h‍_a => (strictScopeTerminator = $h‍_a)]]]],["./sloppy-globals-scope-terminator.js", [["createSloppyGlobalsScopeTerminator", [$h‍_a => (createSloppyGlobalsScopeTerminator = $h‍_a)]]]],["./eval-scope.js", [["makeEvalScopeKit", [$h‍_a => (makeEvalScopeKit = $h‍_a)]]]],["./transforms.js", [["applyTransforms", [$h‍_a => (applyTransforms = $h‍_a)]],["mandatoryTransforms", [$h‍_a => (mandatoryTransforms = $h‍_a)]]]],["./make-evaluate.js", [["makeEvaluate", [$h‍_a => (makeEvaluate = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
2147
2199
 
2148
2200
 
2149
2201
 
@@ -2166,37 +2218,33 @@ const { details: d}= assert;
2166
2218
  * @param {Object} [options.globalLexicals]
2167
2219
  * @param {Array<Transform>} [options.globalTransforms]
2168
2220
  * @param {bool} [options.sloppyGlobalsMode]
2169
- * @param {WeakSet} [options.knownScopeProxies]
2170
2221
  */
2171
2222
  const makeSafeEvaluator= ({
2172
2223
  globalObject,
2173
2224
  globalLexicals= {},
2174
2225
  globalTransforms= [],
2175
- sloppyGlobalsMode= false,
2176
- knownScopeProxies= new WeakSet()}=
2226
+ sloppyGlobalsMode= false}=
2177
2227
  {})=> {
2178
- const { scopeHandler, scopeController}= createScopeHandler(
2179
- globalObject,
2228
+ const scopeTerminator= sloppyGlobalsMode?
2229
+ createSloppyGlobalsScopeTerminator(globalObject):
2230
+ strictScopeTerminator;
2231
+ const evalScopeKit= makeEvalScopeKit();
2232
+ const { evalScope}= evalScopeKit;
2233
+
2234
+ const evaluateContext= freeze({
2235
+ evalScope,
2180
2236
  globalLexicals,
2181
- {
2182
- sloppyGlobalsMode});
2183
-
2184
-
2185
- const { proxy: scopeProxy, revoke: revokeScopeProxy}= proxyRevocable(
2186
- immutableObject,
2187
- scopeHandler);
2237
+ globalObject,
2238
+ scopeTerminator});
2188
2239
 
2189
- weaksetAdd(knownScopeProxies, scopeProxy);
2190
2240
 
2191
2241
  // Defer creating the actual evaluator to first use.
2192
2242
  // Creating a compartment should be possible in no-eval environments
2193
2243
  // It also allows more global constants to be captured by the optimizer
2194
2244
  let evaluate;
2195
- const makeEvaluate= ()=> {
2245
+ const provideEvaluate= ()=> {
2196
2246
  if( !evaluate) {
2197
- const constants= getScopeConstants(globalObject, globalLexicals);
2198
- const evaluateFactory= makeEvaluateFactory(constants);
2199
- evaluate= apply(evaluateFactory, scopeProxy, []);
2247
+ evaluate= makeEvaluate(evaluateContext);
2200
2248
  }
2201
2249
  };
2202
2250
 
@@ -2206,7 +2254,7 @@ const makeSafeEvaluator= ({
2206
2254
  * @param {Array<Transform>} [options.localTransforms]
2207
2255
  */
2208
2256
  const safeEvaluate= (source, { localTransforms= []}= {})=> {
2209
- makeEvaluate();
2257
+ provideEvaluate();
2210
2258
 
2211
2259
  // Execute the mandatory transforms last to ensure that any rewritten code
2212
2260
  // meets those mandatory requirements.
@@ -2216,9 +2264,12 @@ const makeSafeEvaluator= ({
2216
2264
  mandatoryTransforms]);
2217
2265
 
2218
2266
 
2219
- scopeController.allowNextEvalToBeUnsafe= true;
2220
2267
  let err;
2221
2268
  try {
2269
+ // Allow next reference to eval produce the unsafe FERAL_EVAL.
2270
+ // eslint-disable-next-line @endo/no-polymorphic-call
2271
+ evalScopeKit.allowNextEvalToBeUnsafe();
2272
+
2222
2273
  // Ensure that "this" resolves to the safe global.
2223
2274
  return apply(evaluate, globalObject, [source]);
2224
2275
  }catch( e) {
@@ -2226,15 +2277,14 @@ const makeSafeEvaluator= ({
2226
2277
  err= e;
2227
2278
  throw e;
2228
2279
  }finally {
2229
- const unsafeEvalWasStillExposed= scopeController.allowNextEvalToBeUnsafe;
2230
- scopeController.allowNextEvalToBeUnsafe= false;
2280
+ const unsafeEvalWasStillExposed=( 'eval'in evalScope);
2281
+ delete evalScope.eval;
2231
2282
  if( unsafeEvalWasStillExposed) {
2232
- // Barring a defect in the SES shim, the scope proxy should allow the
2283
+ // Barring a defect in the SES shim, the evalScope should allow the
2233
2284
  // powerful, unsafe `eval` to be used by `evaluate` exactly once, as the
2234
2285
  // very first name that it attempts to access from the lexical scope.
2235
2286
  // A defect in the SES shim could throw an exception after we set
2236
- // `scopeController.allowNextEvalToBeUnsafe` and before `evaluate`
2237
- // calls `eval` internally.
2287
+ // `evalScope.eval` and before `evaluate` calls `eval` internally.
2238
2288
  // If we get here, SES is very broken.
2239
2289
  // This condition is one where this vat is now hopelessly confused, and
2240
2290
  // the vat as a whole should be aborted.
@@ -2244,7 +2294,7 @@ const makeSafeEvaluator= ({
2244
2294
  // variable resolution via the scopeHandler, and throw an error with
2245
2295
  // diagnostic info including the thrown error if any from evaluating the
2246
2296
  // source code.
2247
- revokeScopeProxy();
2297
+ evalScopeKit.revoked= { err};
2248
2298
  // TODO A GOOD PLACE TO PANIC(), i.e., kill the vat incarnation.
2249
2299
  // See https://github.com/Agoric/SES-shim/issues/490
2250
2300
  // eslint-disable-next-line @endo/no-polymorphic-call
@@ -2257,7 +2307,7 @@ const makeSafeEvaluator= ({
2257
2307
  };$h‍_once.makeSafeEvaluator(makeSafeEvaluator);
2258
2308
  })
2259
2309
  ,
2260
- // === functors[11] ===
2310
+ // === functors[13] ===
2261
2311
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let TypeError,arrayPush,create,defineProperties,getOwnPropertyDescriptors,evadeHtmlCommentTest,evadeImportExpressionTest,rejectSomeDirectEvalExpressions,makeSafeEvaluator;$h‍_imports([["./commons.js", [["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["arrayPush", [$h‍_a => (arrayPush = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["getOwnPropertyDescriptors", [$h‍_a => (getOwnPropertyDescriptors = $h‍_a)]]]],["./transforms.js", [["evadeHtmlCommentTest", [$h‍_a => (evadeHtmlCommentTest = $h‍_a)]],["evadeImportExpressionTest", [$h‍_a => (evadeImportExpressionTest = $h‍_a)]],["rejectSomeDirectEvalExpressions", [$h‍_a => (rejectSomeDirectEvalExpressions = $h‍_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h‍_a => (makeSafeEvaluator = $h‍_a)]]]]]);
2262
2312
 
2263
2313
 
@@ -2288,11 +2338,7 @@ const provideCompartmentEvaluator= (compartmentFields, options)=> {
2288
2338
  // shared evaluator so we need to build a new one
2289
2339
 
2290
2340
  let { globalTransforms}= compartmentFields;
2291
- const {
2292
- globalObject,
2293
- globalLexicals,
2294
- knownScopeProxies}=
2295
- compartmentFields;
2341
+ const { globalObject, globalLexicals}= compartmentFields;
2296
2342
 
2297
2343
  let localObject= globalLexicals;
2298
2344
  if( __moduleShimLexicals__!== undefined) {
@@ -2317,8 +2363,7 @@ const provideCompartmentEvaluator= (compartmentFields, options)=> {
2317
2363
  globalObject,
2318
2364
  globalLexicals: localObject,
2319
2365
  globalTransforms,
2320
- sloppyGlobalsMode,
2321
- knownScopeProxies}));
2366
+ sloppyGlobalsMode}));
2322
2367
 
2323
2368
  }
2324
2369
 
@@ -2326,7 +2371,7 @@ const provideCompartmentEvaluator= (compartmentFields, options)=> {
2326
2371
  };$h‍_once.provideCompartmentEvaluator(provideCompartmentEvaluator);
2327
2372
 
2328
2373
  const compartmentEvaluate= (compartmentFields, source, options)=> {
2329
- // Perform this check first to avoid unecessary sanitizing.
2374
+ // Perform this check first to avoid unnecessary sanitizing.
2330
2375
  // TODO Maybe relax string check and coerce instead:
2331
2376
  // https://github.com/tc39/proposal-dynamic-code-brand-checks
2332
2377
  if( typeof source!== 'string') {
@@ -2362,7 +2407,7 @@ const compartmentEvaluate= (compartmentFields, source, options)=> {
2362
2407
  };$h‍_once.compartmentEvaluate(compartmentEvaluate);
2363
2408
  })
2364
2409
  ,
2365
- // === functors[12] ===
2410
+ // === functors[14] ===
2366
2411
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { $h‍_imports([]); /**
2367
2412
  * makeEvalFunction()
2368
2413
  * A safe version of the native eval function which relies on
@@ -2392,7 +2437,7 @@ const makeEvalFunction= (safeEvaluate)=>{
2392
2437
  };$h‍_once.makeEvalFunction(makeEvalFunction);
2393
2438
  })
2394
2439
  ,
2395
- // === functors[13] ===
2440
+ // === functors[15] ===
2396
2441
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_FUNCTION,arrayJoin,arrayPop,defineProperties,getPrototypeOf,assert;$h‍_imports([["./commons.js", [["FERAL_FUNCTION", [$h‍_a => (FERAL_FUNCTION = $h‍_a)]],["arrayJoin", [$h‍_a => (arrayJoin = $h‍_a)]],["arrayPop", [$h‍_a => (arrayPop = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["getPrototypeOf", [$h‍_a => (getPrototypeOf = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
2397
2442
 
2398
2443
 
@@ -2475,7 +2520,7 @@ const makeFunctionConstructor= (safeEvaluate)=>{
2475
2520
  };$h‍_once.makeFunctionConstructor(makeFunctionConstructor);
2476
2521
  })
2477
2522
  ,
2478
- // === functors[14] ===
2523
+ // === functors[16] ===
2479
2524
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { $h‍_imports([]); /* eslint-disable no-restricted-globals */
2480
2525
  /**
2481
2526
  * @file Exports {@code whitelist}, a recursively defined
@@ -3839,7 +3884,6 @@ const whitelist= {
3839
3884
  name: getter,
3840
3885
  // Should this be proposed?
3841
3886
  toString: fn,
3842
- __isKnownScopeProxy__: fn,
3843
3887
  import: asyncFn,
3844
3888
  load: asyncFn,
3845
3889
  importNow: fn,
@@ -3852,11 +3896,50 @@ const whitelist= {
3852
3896
  '%InitialGetStackString%': fn};$h‍_once.whitelist(whitelist);
3853
3897
  })
3854
3898
  ,
3855
- // === functors[15] ===
3856
- (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let defineProperty,objectHasOwnProperty,entries,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h‍_imports([["./commons.js", [["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["objectHasOwnProperty", [$h‍_a => (objectHasOwnProperty = $h‍_a)]],["entries", [$h‍_a => (entries = $h‍_a)]]]],["./make-eval-function.js", [["makeEvalFunction", [$h‍_a => (makeEvalFunction = $h‍_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor", [$h‍_a => (makeFunctionConstructor = $h‍_a)]]]],["./whitelist.js", [["constantProperties", [$h‍_a => (constantProperties = $h‍_a)]],["universalPropertyNames", [$h‍_a => (universalPropertyNames = $h‍_a)]]]]]);
3899
+ // === functors[17] ===
3900
+ (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let TypeError,assign,create,defineProperty,entries,freeze,objectHasOwnProperty,unscopablesSymbol,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h‍_imports([["./commons.js", [["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["assign", [$h‍_a => (assign = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["entries", [$h‍_a => (entries = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["objectHasOwnProperty", [$h‍_a => (objectHasOwnProperty = $h‍_a)]],["unscopablesSymbol", [$h‍_a => (unscopablesSymbol = $h‍_a)]]]],["./make-eval-function.js", [["makeEvalFunction", [$h‍_a => (makeEvalFunction = $h‍_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor", [$h‍_a => (makeFunctionConstructor = $h‍_a)]]]],["./whitelist.js", [["constantProperties", [$h‍_a => (constantProperties = $h‍_a)]],["universalPropertyNames", [$h‍_a => (universalPropertyNames = $h‍_a)]]]]]);
3901
+
3902
+
3903
+
3904
+
3905
+
3906
+
3907
+
3908
+
3909
+
3910
+
3911
+
3912
+
3913
+
3914
+ /**
3915
+ * The host's ordinary global object is not provided by a `with` block, so
3916
+ * assigning to Symbol.unscopables has no effect.
3917
+ * Since this shim uses `with` blocks to create a confined lexical scope for
3918
+ * guest programs, we cannot emulate the proper behavior.
3919
+ * With this shim, assigning Symbol.unscopables causes the given lexical
3920
+ * names to fall through to the terminal scope proxy.
3921
+ * But, we can install this setter to prevent a program from proceding on
3922
+ * this false assumption.
3923
+ *
3924
+ * @param {Object} globalObject
3925
+ */
3926
+ const setGlobalObjectSymbolUnscopables= (globalObject)=>{
3927
+ defineProperty(
3928
+ globalObject,
3929
+ unscopablesSymbol,
3930
+ freeze(
3931
+ assign(create(null), {
3932
+ set: freeze(()=> {
3933
+ throw new TypeError(
3934
+ `Cannot set Symbol.unscopables of a Compartment's globalThis`);
3935
+
3936
+ }),
3937
+ enumerable: false,
3938
+ configurable: false})));
3857
3939
 
3858
3940
 
3859
3941
 
3942
+ };
3860
3943
 
3861
3944
  /**
3862
3945
  * setGlobalObjectConstantProperties()
@@ -3865,7 +3948,7 @@ const whitelist= {
3865
3948
  * `setGlobalObjectMutableProperties`.
3866
3949
  *
3867
3950
  * @param {Object} globalObject
3868
- */
3951
+ */$h‍_once.setGlobalObjectSymbolUnscopables(setGlobalObjectSymbolUnscopables);
3869
3952
  const setGlobalObjectConstantProperties= (globalObject)=>{
3870
3953
  for( const [name, constant]of entries(constantProperties)) {
3871
3954
  defineProperty(globalObject, name, {
@@ -3983,7 +4066,7 @@ const setGlobalObjectEvaluators= (
3983
4066
  };$h‍_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
3984
4067
  })
3985
4068
  ,
3986
- // === functors[16] ===
4069
+ // === functors[18] ===
3987
4070
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let ReferenceError,TypeError,Map,Set,arrayJoin,arrayMap,arrayPush,create,freeze,mapGet,mapHas,mapSet,setAdd,promiseCatch,promiseThen,values,weakmapGet,assert;$h‍_imports([["./commons.js", [["ReferenceError", [$h‍_a => (ReferenceError = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["Map", [$h‍_a => (Map = $h‍_a)]],["Set", [$h‍_a => (Set = $h‍_a)]],["arrayJoin", [$h‍_a => (arrayJoin = $h‍_a)]],["arrayMap", [$h‍_a => (arrayMap = $h‍_a)]],["arrayPush", [$h‍_a => (arrayPush = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["mapGet", [$h‍_a => (mapGet = $h‍_a)]],["mapHas", [$h‍_a => (mapHas = $h‍_a)]],["mapSet", [$h‍_a => (mapSet = $h‍_a)]],["setAdd", [$h‍_a => (setAdd = $h‍_a)]],["promiseCatch", [$h‍_a => (promiseCatch = $h‍_a)]],["promiseThen", [$h‍_a => (promiseThen = $h‍_a)]],["values", [$h‍_a => (values = $h‍_a)]],["weakmapGet", [$h‍_a => (weakmapGet = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
3988
4071
 
3989
4072
 
@@ -4315,7 +4398,7 @@ const load= async(
4315
4398
  };$h‍_once.load(load);
4316
4399
  })
4317
4400
  ,
4318
- // === functors[17] ===
4401
+ // === functors[19] ===
4319
4402
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,weakmapSet,assert;$h‍_imports([["./module-load.js", [["makeAlias", [$h‍_a => (makeAlias = $h‍_a)]]]],["./commons.js", [["Proxy", [$h‍_a => (Proxy = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["mapGet", [$h‍_a => (mapGet = $h‍_a)]],["mapHas", [$h‍_a => (mapHas = $h‍_a)]],["mapSet", [$h‍_a => (mapSet = $h‍_a)]],["ownKeys", [$h‍_a => (ownKeys = $h‍_a)]],["reflectGet", [$h‍_a => (reflectGet = $h‍_a)]],["reflectGetOwnPropertyDescriptor", [$h‍_a => (reflectGetOwnPropertyDescriptor = $h‍_a)]],["reflectHas", [$h‍_a => (reflectHas = $h‍_a)]],["reflectIsExtensible", [$h‍_a => (reflectIsExtensible = $h‍_a)]],["reflectPreventExtensions", [$h‍_a => (reflectPreventExtensions = $h‍_a)]],["weakmapSet", [$h‍_a => (weakmapSet = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
4320
4403
 
4321
4404
 
@@ -4490,7 +4573,7 @@ $h‍_once.deferExports(deferExports);const getDeferredExports=(
4490
4573
  };$h‍_once.getDeferredExports(getDeferredExports);
4491
4574
  })
4492
4575
  ,
4493
- // === functors[18] ===
4576
+ // === functors[20] ===
4494
4577
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,reflectHas,assign,compartmentEvaluate;$h‍_imports([["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h‍_a => (getDeferredExports = $h‍_a)]]]],["./commons.js", [["ReferenceError", [$h‍_a => (ReferenceError = $h‍_a)]],["SyntaxError", [$h‍_a => (SyntaxError = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["arrayForEach", [$h‍_a => (arrayForEach = $h‍_a)]],["arrayIncludes", [$h‍_a => (arrayIncludes = $h‍_a)]],["arrayPush", [$h‍_a => (arrayPush = $h‍_a)]],["arraySome", [$h‍_a => (arraySome = $h‍_a)]],["arraySort", [$h‍_a => (arraySort = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["entries", [$h‍_a => (entries = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["isArray", [$h‍_a => (isArray = $h‍_a)]],["keys", [$h‍_a => (keys = $h‍_a)]],["mapGet", [$h‍_a => (mapGet = $h‍_a)]],["weakmapGet", [$h‍_a => (weakmapGet = $h‍_a)]],["reflectHas", [$h‍_a => (reflectHas = $h‍_a)]],["assign", [$h‍_a => (assign = $h‍_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h‍_a => (compartmentEvaluate = $h‍_a)]]]]]);
4495
4578
 
4496
4579
 
@@ -4968,7 +5051,7 @@ $h‍_once.makeThirdPartyModuleInstance(makeThirdPartyModuleInstance);const make
4968
5051
  };$h‍_once.makeModuleInstance(makeModuleInstance);
4969
5052
  })
4970
5053
  ,
4971
- // === functors[19] ===
5054
+ // === functors[21] ===
4972
5055
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let assert,makeModuleInstance,makeThirdPartyModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isObject,mapGet,mapHas,mapSet,weakmapGet;$h‍_imports([["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]],["./module-instance.js", [["makeModuleInstance", [$h‍_a => (makeModuleInstance = $h‍_a)]],["makeThirdPartyModuleInstance", [$h‍_a => (makeThirdPartyModuleInstance = $h‍_a)]]]],["./commons.js", [["Map", [$h‍_a => (Map = $h‍_a)]],["ReferenceError", [$h‍_a => (ReferenceError = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["entries", [$h‍_a => (entries = $h‍_a)]],["isArray", [$h‍_a => (isArray = $h‍_a)]],["isObject", [$h‍_a => (isObject = $h‍_a)]],["mapGet", [$h‍_a => (mapGet = $h‍_a)]],["mapHas", [$h‍_a => (mapHas = $h‍_a)]],["mapSet", [$h‍_a => (mapSet = $h‍_a)]],["weakmapGet", [$h‍_a => (weakmapGet = $h‍_a)]]]]]);
4973
5056
 
4974
5057
 
@@ -5166,9 +5249,8 @@ const instantiate= (
5166
5249
  };$h‍_once.instantiate(instantiate);
5167
5250
  })
5168
5251
  ,
5169
- // === functors[20] ===
5170
- (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Map,ReferenceError,TypeError,WeakMap,WeakSet,arrayFilter,arrayJoin,assign,defineProperties,entries,freeze,getOwnPropertyNames,promiseThen,weakmapGet,weakmapSet,weaksetHas,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,isValidIdentifierName,sharedGlobalPropertyNames,load,link,getDeferredExports,assert,compartmentEvaluate,makeSafeEvaluator;$h‍_imports([["./commons.js", [["Map", [$h‍_a => (Map = $h‍_a)]],["ReferenceError", [$h‍_a => (ReferenceError = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["WeakMap", [$h‍_a => (WeakMap = $h‍_a)]],["WeakSet", [$h‍_a => (WeakSet = $h‍_a)]],["arrayFilter", [$h‍_a => (arrayFilter = $h‍_a)]],["arrayJoin", [$h‍_a => (arrayJoin = $h‍_a)]],["assign", [$h‍_a => (assign = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["entries", [$h‍_a => (entries = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["getOwnPropertyNames", [$h‍_a => (getOwnPropertyNames = $h‍_a)]],["promiseThen", [$h‍_a => (promiseThen = $h‍_a)]],["weakmapGet", [$h‍_a => (weakmapGet = $h‍_a)]],["weakmapSet", [$h‍_a => (weakmapSet = $h‍_a)]],["weaksetHas", [$h‍_a => (weaksetHas = $h‍_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties", [$h‍_a => (setGlobalObjectConstantProperties = $h‍_a)]],["setGlobalObjectMutableProperties", [$h‍_a => (setGlobalObjectMutableProperties = $h‍_a)]],["setGlobalObjectEvaluators", [$h‍_a => (setGlobalObjectEvaluators = $h‍_a)]]]],["./scope-constants.js", [["isValidIdentifierName", [$h‍_a => (isValidIdentifierName = $h‍_a)]]]],["./whitelist.js", [["sharedGlobalPropertyNames", [$h‍_a => (sharedGlobalPropertyNames = $h‍_a)]]]],["./module-load.js", [["load", [$h‍_a => (load = $h‍_a)]]]],["./module-link.js", [["link", [$h‍_a => (link = $h‍_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h‍_a => (getDeferredExports = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h‍_a => (compartmentEvaluate = $h‍_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h‍_a => (makeSafeEvaluator = $h‍_a)]]]]]);
5171
-
5252
+ // === functors[22] ===
5253
+ (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Map,ReferenceError,TypeError,WeakMap,arrayFilter,arrayJoin,assign,defineProperties,entries,freeze,getOwnPropertyNames,promiseThen,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,isValidIdentifierName,sharedGlobalPropertyNames,load,link,getDeferredExports,assert,compartmentEvaluate,makeSafeEvaluator;$h‍_imports([["./commons.js", [["Map", [$h‍_a => (Map = $h‍_a)]],["ReferenceError", [$h‍_a => (ReferenceError = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["WeakMap", [$h‍_a => (WeakMap = $h‍_a)]],["arrayFilter", [$h‍_a => (arrayFilter = $h‍_a)]],["arrayJoin", [$h‍_a => (arrayJoin = $h‍_a)]],["assign", [$h‍_a => (assign = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["entries", [$h‍_a => (entries = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["getOwnPropertyNames", [$h‍_a => (getOwnPropertyNames = $h‍_a)]],["promiseThen", [$h‍_a => (promiseThen = $h‍_a)]],["weakmapGet", [$h‍_a => (weakmapGet = $h‍_a)]],["weakmapSet", [$h‍_a => (weakmapSet = $h‍_a)]]]],["./global-object.js", [["setGlobalObjectSymbolUnscopables", [$h‍_a => (setGlobalObjectSymbolUnscopables = $h‍_a)]],["setGlobalObjectConstantProperties", [$h‍_a => (setGlobalObjectConstantProperties = $h‍_a)]],["setGlobalObjectMutableProperties", [$h‍_a => (setGlobalObjectMutableProperties = $h‍_a)]],["setGlobalObjectEvaluators", [$h‍_a => (setGlobalObjectEvaluators = $h‍_a)]]]],["./scope-constants.js", [["isValidIdentifierName", [$h‍_a => (isValidIdentifierName = $h‍_a)]]]],["./whitelist.js", [["sharedGlobalPropertyNames", [$h‍_a => (sharedGlobalPropertyNames = $h‍_a)]]]],["./module-load.js", [["load", [$h‍_a => (load = $h‍_a)]]]],["./module-link.js", [["link", [$h‍_a => (link = $h‍_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h‍_a => (getDeferredExports = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h‍_a => (compartmentEvaluate = $h‍_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h‍_a => (makeSafeEvaluator = $h‍_a)]]]]]);
5172
5254
 
5173
5255
 
5174
5256
 
@@ -5288,12 +5370,6 @@ const CompartmentPrototype= {
5288
5370
  return '[object Compartment]';
5289
5371
  },
5290
5372
 
5291
- /* eslint-disable-next-line no-underscore-dangle */
5292
- __isKnownScopeProxy__(value) {
5293
- const { knownScopeProxies}= weakmapGet(privateFields, this);
5294
- return weaksetHas(knownScopeProxies, value);
5295
- },
5296
-
5297
5373
  module(specifier) {
5298
5374
  if( typeof specifier!== 'string') {
5299
5375
  throw new TypeError('first argument of module() must be a string');
@@ -5446,6 +5522,8 @@ const makeCompartmentConstructor= (
5446
5522
 
5447
5523
  const globalObject= {};
5448
5524
 
5525
+ setGlobalObjectSymbolUnscopables(globalObject);
5526
+
5449
5527
  // We must initialize all constant properties first because
5450
5528
  // `makeSafeEvaluator` may use them to create optimized bindings
5451
5529
  // in the evaluator.
@@ -5453,13 +5531,11 @@ const makeCompartmentConstructor= (
5453
5531
  // evaluator is no longer eagerly created
5454
5532
  setGlobalObjectConstantProperties(globalObject);
5455
5533
 
5456
- const knownScopeProxies= new WeakSet();
5457
5534
  const { safeEvaluate}= makeSafeEvaluator({
5458
5535
  globalObject,
5459
5536
  globalLexicals,
5460
5537
  globalTransforms,
5461
- sloppyGlobalsMode: false,
5462
- knownScopeProxies});
5538
+ sloppyGlobalsMode: false});
5463
5539
 
5464
5540
 
5465
5541
  setGlobalObjectMutableProperties(globalObject, {
@@ -5482,7 +5558,6 @@ const makeCompartmentConstructor= (
5482
5558
  name: `${name}`,
5483
5559
  globalTransforms,
5484
5560
  globalObject,
5485
- knownScopeProxies,
5486
5561
  globalLexicals,
5487
5562
  safeEvaluate,
5488
5563
  resolveHook,
@@ -5503,7 +5578,7 @@ const makeCompartmentConstructor= (
5503
5578
  };$h‍_once.makeCompartmentConstructor(makeCompartmentConstructor);
5504
5579
  })
5505
5580
  ,
5506
- // === functors[21] ===
5581
+ // === functors[23] ===
5507
5582
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let TypeError,WeakSet,arrayFilter,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isObject,objectHasOwnProperty,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,whitelist;$h‍_imports([["./commons.js", [["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["WeakSet", [$h‍_a => (WeakSet = $h‍_a)]],["arrayFilter", [$h‍_a => (arrayFilter = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["entries", [$h‍_a => (entries = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["getOwnPropertyDescriptors", [$h‍_a => (getOwnPropertyDescriptors = $h‍_a)]],["globalThis", [$h‍_a => (globalThis = $h‍_a)]],["is", [$h‍_a => (is = $h‍_a)]],["isObject", [$h‍_a => (isObject = $h‍_a)]],["objectHasOwnProperty", [$h‍_a => (objectHasOwnProperty = $h‍_a)]],["values", [$h‍_a => (values = $h‍_a)]],["weaksetHas", [$h‍_a => (weaksetHas = $h‍_a)]]]],["./whitelist.js", [["constantProperties", [$h‍_a => (constantProperties = $h‍_a)]],["sharedGlobalPropertyNames", [$h‍_a => (sharedGlobalPropertyNames = $h‍_a)]],["universalPropertyNames", [$h‍_a => (universalPropertyNames = $h‍_a)]],["whitelist", [$h‍_a => (whitelist = $h‍_a)]]]]]);
5508
5583
 
5509
5584
 
@@ -5677,7 +5752,7 @@ const getGlobalIntrinsics= (globalObject)=>{
5677
5752
  };$h‍_once.getGlobalIntrinsics(getGlobalIntrinsics);
5678
5753
  })
5679
5754
  ,
5680
- // === functors[22] ===
5755
+ // === functors[24] ===
5681
5756
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { $h‍_imports([]); /**
5682
5757
  * @file Exports {@code enablements}, a recursively defined
5683
5758
  * JSON record defining the optimum set of intrinsics properties
@@ -5845,22 +5920,27 @@ const severeEnablements= {
5845
5920
  ...moderateEnablements,
5846
5921
 
5847
5922
  /**
5848
- * Rollup(as used at least by vega) and webpack
5923
+ * Rollup (as used at least by vega) and webpack
5849
5924
  * (as used at least by regenerator) both turn exports into assignments
5850
5925
  * to a big `exports` object that inherits directly from
5851
- * `Object.prototype`.Some of the exported names we've seen include
5926
+ * `Object.prototype`. Some of the exported names we've seen include
5852
5927
  * `hasOwnProperty`, `constructor`, and `toString`. But the strategy used
5853
- * by rollup and webpack means potentionally turns any exported name
5854
- * into an assignment rejected by the override mistake.That's why
5855
- * we take the extreme step of enabling everything on`Object.prototype`.
5928
+ * by rollup and webpack potentionally turns any exported name
5929
+ * into an assignment rejected by the override mistake. That's why
5930
+ * the `severe` enablements takes the extreme step of enabling
5931
+ * everything on `Object.prototype`.
5856
5932
  *
5857
5933
  * In addition, code doing inheritance manually will often override
5858
5934
  * the `constructor` property on the new prototype by assignment. We've
5859
5935
  * seen this several times.
5860
5936
  *
5861
5937
  * The cost of enabling all these is that they create a miserable debugging
5862
- * experience. https://github.com/Agoric/agoric-sdk/issues/2324 explains
5863
- * how it confused the Node console.
5938
+ * experience specifically on Node.
5939
+ * https://github.com/Agoric/agoric-sdk/issues/2324
5940
+ * explains how it confused the Node console.
5941
+ *
5942
+ * (TODO Reexamine the vscode situation. I think it may have improved
5943
+ * since the following paragraph was written.)
5864
5944
  *
5865
5945
  * The vscode debugger's object inspector shows the own data properties of
5866
5946
  * an object, which is typically what you want, but also shows both getter
@@ -5877,13 +5957,13 @@ const severeEnablements= {
5877
5957
  * The widely used Buffer defined at https://github.com/feross/buffer
5878
5958
  * on initialization, manually creates the equivalent of a subclass of
5879
5959
  * `TypedArray`, which it then initializes by assignment. These assignments
5880
- * include enough of the `TypeArray` methods that here, we just enable
5881
- * them all.
5960
+ * include enough of the `TypeArray` methods that here, the `severe`
5961
+ * enablements just enable them all.
5882
5962
  */
5883
5963
  '%TypedArrayPrototype%': '*'};$h‍_once.severeEnablements(severeEnablements);
5884
5964
  })
5885
5965
  ,
5886
- // === functors[23] ===
5966
+ // === functors[25] ===
5887
5967
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getOwnPropertyNames,isObject,objectHasOwnProperty,ownKeys,setHas,minEnablements,moderateEnablements,severeEnablements;$h‍_imports([["./commons.js", [["Set", [$h‍_a => (Set = $h‍_a)]],["String", [$h‍_a => (String = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["arrayForEach", [$h‍_a => (arrayForEach = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["getOwnPropertyDescriptors", [$h‍_a => (getOwnPropertyDescriptors = $h‍_a)]],["getOwnPropertyNames", [$h‍_a => (getOwnPropertyNames = $h‍_a)]],["isObject", [$h‍_a => (isObject = $h‍_a)]],["objectHasOwnProperty", [$h‍_a => (objectHasOwnProperty = $h‍_a)]],["ownKeys", [$h‍_a => (ownKeys = $h‍_a)]],["setHas", [$h‍_a => (setHas = $h‍_a)]]]],["./enablements.js", [["minEnablements", [$h‍_a => (minEnablements = $h‍_a)]],["moderateEnablements", [$h‍_a => (moderateEnablements = $h‍_a)]],["severeEnablements", [$h‍_a => (severeEnablements = $h‍_a)]]]]]);
5888
5968
 
5889
5969
 
@@ -6090,7 +6170,7 @@ function enablePropertyOverrides(
6090
6170
  }$h‍_once.default( enablePropertyOverrides);
6091
6171
  })
6092
6172
  ,
6093
- // === functors[24] ===
6173
+ // === functors[26] ===
6094
6174
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let arrayPush,freeze,assert;$h‍_imports([["./commons.js", [["arrayPush", [$h‍_a => (arrayPush = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
6095
6175
 
6096
6176
 
@@ -6222,7 +6302,7 @@ const makeEnvironmentCaptor= (aGlobal)=>{
6222
6302
  freeze(makeEnvironmentCaptor);
6223
6303
  })
6224
6304
  ,
6225
- // === functors[25] ===
6305
+ // === functors[27] ===
6226
6306
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let WeakSet,arrayFilter,arrayMap,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,weaksetAdd,weaksetHas;$h‍_imports([["../commons.js", [["WeakSet", [$h‍_a => (WeakSet = $h‍_a)]],["arrayFilter", [$h‍_a => (arrayFilter = $h‍_a)]],["arrayMap", [$h‍_a => (arrayMap = $h‍_a)]],["arrayPush", [$h‍_a => (arrayPush = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["fromEntries", [$h‍_a => (fromEntries = $h‍_a)]],["isError", [$h‍_a => (isError = $h‍_a)]],["stringEndsWith", [$h‍_a => (stringEndsWith = $h‍_a)]],["weaksetAdd", [$h‍_a => (weaksetAdd = $h‍_a)]],["weaksetHas", [$h‍_a => (weaksetHas = $h‍_a)]]]],["./types.js", []],["./internal-types.js", []]]);
6227
6307
 
6228
6308
 
@@ -6608,7 +6688,7 @@ const filterConsole= (baseConsole, filter, _topic= undefined)=> {
6608
6688
  freeze(filterConsole);
6609
6689
  })
6610
6690
  ,
6611
- // === functors[26] ===
6691
+ // === functors[28] ===
6612
6692
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FinalizationRegistry,Map,mapGet,mapDelete,WeakMap,mapSet,finalizationRegistryRegister,weakmapSet,weakmapGet,mapEntries,mapHas;$h‍_imports([["../commons.js", [["FinalizationRegistry", [$h‍_a => (FinalizationRegistry = $h‍_a)]],["Map", [$h‍_a => (Map = $h‍_a)]],["mapGet", [$h‍_a => (mapGet = $h‍_a)]],["mapDelete", [$h‍_a => (mapDelete = $h‍_a)]],["WeakMap", [$h‍_a => (WeakMap = $h‍_a)]],["mapSet", [$h‍_a => (mapSet = $h‍_a)]],["finalizationRegistryRegister", [$h‍_a => (finalizationRegistryRegister = $h‍_a)]],["weakmapSet", [$h‍_a => (weakmapSet = $h‍_a)]],["weakmapGet", [$h‍_a => (weakmapGet = $h‍_a)]],["mapEntries", [$h‍_a => (mapEntries = $h‍_a)]],["mapHas", [$h‍_a => (mapHas = $h‍_a)]]]]]);
6613
6693
 
6614
6694
 
@@ -6733,7 +6813,7 @@ const makeRejectionHandlers= (reportReason)=>{
6733
6813
  };$h‍_once.makeRejectionHandlers(makeRejectionHandlers);
6734
6814
  })
6735
6815
  ,
6736
- // === functors[27] ===
6816
+ // === functors[29] ===
6737
6817
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let TypeError,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h‍_imports([["../commons.js", [["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["globalThis", [$h‍_a => (globalThis = $h‍_a)]]]],["./assert.js", [["loggedErrorHandler", [$h‍_a => (defaultHandler = $h‍_a)]]]],["./console.js", [["makeCausalConsole", [$h‍_a => (makeCausalConsole = $h‍_a)]]]],["./unhandled-rejection.js", [["makeRejectionHandlers", [$h‍_a => (makeRejectionHandlers = $h‍_a)]]]],["./types.js", []],["./internal-types.js", []]]);
6738
6818
 
6739
6819
 
@@ -6876,7 +6956,7 @@ const tameConsole= (
6876
6956
  };$h‍_once.tameConsole(tameConsole);
6877
6957
  })
6878
6958
  ,
6879
- // === functors[28] ===
6959
+ // === functors[30] ===
6880
6960
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,regexpTest,weakmapGet,weakmapSet,weaksetAdd,weaksetHas;$h‍_imports([["../commons.js", [["WeakMap", [$h‍_a => (WeakMap = $h‍_a)]],["WeakSet", [$h‍_a => (WeakSet = $h‍_a)]],["apply", [$h‍_a => (apply = $h‍_a)]],["arrayFilter", [$h‍_a => (arrayFilter = $h‍_a)]],["arrayJoin", [$h‍_a => (arrayJoin = $h‍_a)]],["arrayMap", [$h‍_a => (arrayMap = $h‍_a)]],["arraySlice", [$h‍_a => (arraySlice = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["fromEntries", [$h‍_a => (fromEntries = $h‍_a)]],["reflectSet", [$h‍_a => (reflectSet = $h‍_a)]],["regexpExec", [$h‍_a => (regexpExec = $h‍_a)]],["regexpTest", [$h‍_a => (regexpTest = $h‍_a)]],["weakmapGet", [$h‍_a => (weakmapGet = $h‍_a)]],["weakmapSet", [$h‍_a => (weakmapSet = $h‍_a)]],["weaksetAdd", [$h‍_a => (weaksetAdd = $h‍_a)]],["weaksetHas", [$h‍_a => (weaksetHas = $h‍_a)]]]]]);
6881
6961
 
6882
6962
 
@@ -7216,7 +7296,7 @@ const tameV8ErrorConstructor= (
7216
7296
  };$h‍_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
7217
7297
  })
7218
7298
  ,
7219
- // === functors[29] ===
7299
+ // === functors[31] ===
7220
7300
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_ERROR,TypeError,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,NativeErrors,tameV8ErrorConstructor;$h‍_imports([["../commons.js", [["FERAL_ERROR", [$h‍_a => (FERAL_ERROR = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["apply", [$h‍_a => (apply = $h‍_a)]],["construct", [$h‍_a => (construct = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["setPrototypeOf", [$h‍_a => (setPrototypeOf = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]]]],["../whitelist.js", [["NativeErrors", [$h‍_a => (NativeErrors = $h‍_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor", [$h‍_a => (tameV8ErrorConstructor = $h‍_a)]]]]]);
7221
7301
 
7222
7302
 
@@ -7470,7 +7550,7 @@ function tameErrorConstructor(
7470
7550
  }$h‍_once.default( tameErrorConstructor);
7471
7551
  })
7472
7552
  ,
7473
- // === functors[30] ===
7553
+ // === functors[32] ===
7474
7554
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,InertCompartment;$h‍_imports([["./commons.js", [["FERAL_FUNCTION", [$h‍_a => (FERAL_FUNCTION = $h‍_a)]],["Float32Array", [$h‍_a => (Float32Array = $h‍_a)]],["Map", [$h‍_a => (Map = $h‍_a)]],["Set", [$h‍_a => (Set = $h‍_a)]],["String", [$h‍_a => (String = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["getPrototypeOf", [$h‍_a => (getPrototypeOf = $h‍_a)]],["iterateArray", [$h‍_a => (iterateArray = $h‍_a)]],["iterateMap", [$h‍_a => (iterateMap = $h‍_a)]],["iterateSet", [$h‍_a => (iterateSet = $h‍_a)]],["iterateString", [$h‍_a => (iterateString = $h‍_a)]],["matchAllRegExp", [$h‍_a => (matchAllRegExp = $h‍_a)]],["matchAllSymbol", [$h‍_a => (matchAllSymbol = $h‍_a)]],["regexpPrototype", [$h‍_a => (regexpPrototype = $h‍_a)]]]],["./compartment-shim.js", [["InertCompartment", [$h‍_a => (InertCompartment = $h‍_a)]]]]]);
7475
7555
 
7476
7556
 
@@ -7611,7 +7691,7 @@ const getAnonymousIntrinsics= ()=> {
7611
7691
  };$h‍_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
7612
7692
  })
7613
7693
  ,
7614
- // === functors[31] ===
7694
+ // === functors[33] ===
7615
7695
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Set,String,TypeError,WeakMap,WeakSet,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isObject,objectHasOwnProperty,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,assert;$h‍_imports([["./commons.js", [["Set", [$h‍_a => (Set = $h‍_a)]],["String", [$h‍_a => (String = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["WeakMap", [$h‍_a => (WeakMap = $h‍_a)]],["WeakSet", [$h‍_a => (WeakSet = $h‍_a)]],["apply", [$h‍_a => (apply = $h‍_a)]],["arrayForEach", [$h‍_a => (arrayForEach = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["getOwnPropertyDescriptors", [$h‍_a => (getOwnPropertyDescriptors = $h‍_a)]],["getPrototypeOf", [$h‍_a => (getPrototypeOf = $h‍_a)]],["isInteger", [$h‍_a => (isInteger = $h‍_a)]],["isObject", [$h‍_a => (isObject = $h‍_a)]],["objectHasOwnProperty", [$h‍_a => (objectHasOwnProperty = $h‍_a)]],["ownKeys", [$h‍_a => (ownKeys = $h‍_a)]],["preventExtensions", [$h‍_a => (preventExtensions = $h‍_a)]],["setAdd", [$h‍_a => (setAdd = $h‍_a)]],["setForEach", [$h‍_a => (setForEach = $h‍_a)]],["setHas", [$h‍_a => (setHas = $h‍_a)]],["toStringTagSymbol", [$h‍_a => (toStringTagSymbol = $h‍_a)]],["typedArrayPrototype", [$h‍_a => (typedArrayPrototype = $h‍_a)]],["weakmapGet", [$h‍_a => (weakmapGet = $h‍_a)]],["weakmapSet", [$h‍_a => (weakmapSet = $h‍_a)]],["weaksetAdd", [$h‍_a => (weaksetAdd = $h‍_a)]],["weaksetHas", [$h‍_a => (weaksetHas = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
7616
7696
 
7617
7697
 
@@ -7680,40 +7760,52 @@ const getTypedArrayToStringTag= typedArrayToStringTag.get;
7680
7760
  assert(getTypedArrayToStringTag);
7681
7761
 
7682
7762
  // Exported for tests.
7683
- /** @param {unknown} object */
7763
+ /**
7764
+ * Duplicates packages/marshal/src/helpers/passStyle-helpers.js to avoid a dependency.
7765
+ *
7766
+ * @param {unknown} object
7767
+ */
7684
7768
  const isTypedArray= (object)=>{
7685
7769
  // The object must pass a brand check or toStringTag will return undefined.
7686
7770
  const tag= apply(getTypedArrayToStringTag, object, []);
7687
7771
  return tag!== undefined;
7688
7772
  };
7689
7773
 
7774
+ /**
7775
+ * Tests if a property key is an integer-valued canonical numeric index.
7776
+ * https://tc39.es/ecma262/#sec-canonicalnumericindexstring
7777
+ *
7778
+ * @param {string | symbol} propertyKey
7779
+ */$h‍_once.isTypedArray(isTypedArray);
7780
+ const isCanonicalIntegerIndexString= (propertyKey)=>{
7781
+ const n= +String(propertyKey);
7782
+ return isInteger(n)&& String(n)=== propertyKey;
7783
+ };
7784
+
7690
7785
  /**
7691
7786
  * @template T
7692
7787
  * @param {ArrayLike<T>} array
7693
- */$h‍_once.isTypedArray(isTypedArray);
7788
+ */
7694
7789
  const freezeTypedArray= (array)=>{
7695
- const descs= getOwnPropertyDescriptors(array);
7696
-
7697
7790
  preventExtensions(array);
7698
7791
 
7699
7792
  // Downgrade writable expandos to readonly, even if non-configurable.
7700
- arrayForEach(ownKeys(descs), (/** @type {string | symbol} */ name)=> {
7701
- const desc= descs[/** @type {string} */ name];
7702
- // The numbered properties are writable and non-configurable,
7703
- // and cannot be made non-writable by defineProperty.
7704
- // This is a strange behavior intrinsic to TypedArrays, but no more harmful
7705
- // than the mutability of properties of a hardened Map or Set,
7706
- // so we carve out this exceptional behavior.
7707
- //
7708
- // TypedArrays are integer-indexed exotic objects, so indexed properties
7709
- // outside the range of 0 to the typed array's length are disallowed.
7710
- // Assignment to these indexes silently fails and defining an indexed
7711
- // property throws an error.
7712
- // So, we only need to make non-index properties non-writable and
7713
- // non-configurable.
7793
+ // We get each descriptor individually rather than using
7794
+ // getOwnPropertyDescriptors in order to fail safe when encountering
7795
+ // an obscure GraalJS issue where getOwnPropertyDescriptor returns
7796
+ // undefined for a property that does exist.
7797
+ arrayForEach(ownKeys(array), (/** @type {string | symbol} */ name)=> {
7798
+ const desc= getOwnPropertyDescriptor(array, name);
7799
+ assert(desc);
7800
+ // TypedArrays are integer-indexed exotic objects, which define special
7801
+ // treatment for property names in canonical numeric form:
7802
+ // integers in range are permanently writable and non-configurable.
7714
7803
  // https://tc39.es/ecma262/#sec-integer-indexed-exotic-objects
7715
- const number= +String(name);
7716
- if( !isInteger(number)) {
7804
+ //
7805
+ // This is analogous to the data of a hardened Map or Set,
7806
+ // so we carve out this exceptional behavior but make all other
7807
+ // properties non-configurable.
7808
+ if( !isCanonicalIntegerIndexString(name)) {
7717
7809
  defineProperty(array, name, {
7718
7810
  ...desc,
7719
7811
  writable: false,
@@ -7842,7 +7934,7 @@ const makeHardener= ()=> {
7842
7934
  };$h‍_once.makeHardener(makeHardener);
7843
7935
  })
7844
7936
  ,
7845
- // === functors[32] ===
7937
+ // === functors[34] ===
7846
7938
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Date,TypeError,apply,construct,defineProperties;$h‍_imports([["./commons.js", [["Date", [$h‍_a => (Date = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["apply", [$h‍_a => (apply = $h‍_a)]],["construct", [$h‍_a => (construct = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]]]]]);
7847
7939
 
7848
7940
 
@@ -7959,7 +8051,7 @@ function tameDateConstructor(dateTaming= 'safe') {
7959
8051
  }$h‍_once.default( tameDateConstructor);
7960
8052
  })
7961
8053
  ,
7962
- // === functors[33] ===
8054
+ // === functors[35] ===
7963
8055
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let TypeError,globalThis,getOwnPropertyDescriptor,defineProperty;$h‍_imports([["./commons.js", [["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["globalThis", [$h‍_a => (globalThis = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]]]]]);Object.defineProperty(tameDomains, 'name', {value: "tameDomains"});$h‍_once.tameDomains(tameDomains);
7964
8056
 
7965
8057
 
@@ -8008,7 +8100,7 @@ function tameDomains(domainTaming= 'safe') {
8008
8100
  }
8009
8101
  })
8010
8102
  ,
8011
- // === functors[34] ===
8103
+ // === functors[36] ===
8012
8104
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_FUNCTION,SyntaxError,TypeError,defineProperties,getPrototypeOf,setPrototypeOf;$h‍_imports([["./commons.js", [["FERAL_FUNCTION", [$h‍_a => (FERAL_FUNCTION = $h‍_a)]],["SyntaxError", [$h‍_a => (SyntaxError = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["getPrototypeOf", [$h‍_a => (getPrototypeOf = $h‍_a)]],["setPrototypeOf", [$h‍_a => (setPrototypeOf = $h‍_a)]]]]]);
8013
8105
 
8014
8106
 
@@ -8146,7 +8238,7 @@ function tameFunctionConstructors() {
8146
8238
  }$h‍_once.default( tameFunctionConstructors);
8147
8239
  })
8148
8240
  ,
8149
- // === functors[35] ===
8241
+ // === functors[37] ===
8150
8242
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let WeakSet,defineProperty,freeze,functionPrototype,functionToString,stringEndsWith,weaksetAdd,weaksetHas;$h‍_imports([["./commons.js", [["WeakSet", [$h‍_a => (WeakSet = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["freeze", [$h‍_a => (freeze = $h‍_a)]],["functionPrototype", [$h‍_a => (functionPrototype = $h‍_a)]],["functionToString", [$h‍_a => (functionToString = $h‍_a)]],["stringEndsWith", [$h‍_a => (stringEndsWith = $h‍_a)]],["weaksetAdd", [$h‍_a => (weaksetAdd = $h‍_a)]],["weaksetHas", [$h‍_a => (weaksetHas = $h‍_a)]]]]]);
8151
8243
 
8152
8244
 
@@ -8199,7 +8291,7 @@ const tameFunctionToString= ()=> {
8199
8291
  };$h‍_once.tameFunctionToString(tameFunctionToString);
8200
8292
  })
8201
8293
  ,
8202
- // === functors[36] ===
8294
+ // === functors[38] ===
8203
8295
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Number,String,TypeError,defineProperty,getOwnPropertyNames,isObject,regexpExec,assert;$h‍_imports([["./commons.js", [["Number", [$h‍_a => (Number = $h‍_a)]],["String", [$h‍_a => (String = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["defineProperty", [$h‍_a => (defineProperty = $h‍_a)]],["getOwnPropertyNames", [$h‍_a => (getOwnPropertyNames = $h‍_a)]],["isObject", [$h‍_a => (isObject = $h‍_a)]],["regexpExec", [$h‍_a => (regexpExec = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
8204
8296
 
8205
8297
 
@@ -8287,7 +8379,7 @@ function tameLocaleMethods(intrinsics, localeTaming= 'safe') {
8287
8379
  }$h‍_once.default( tameLocaleMethods);
8288
8380
  })
8289
8381
  ,
8290
- // === functors[37] ===
8382
+ // === functors[39] ===
8291
8383
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let Math,TypeError,create,getOwnPropertyDescriptors,objectPrototype;$h‍_imports([["./commons.js", [["Math", [$h‍_a => (Math = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["create", [$h‍_a => (create = $h‍_a)]],["getOwnPropertyDescriptors", [$h‍_a => (getOwnPropertyDescriptors = $h‍_a)]],["objectPrototype", [$h‍_a => (objectPrototype = $h‍_a)]]]]]);
8292
8384
 
8293
8385
 
@@ -8316,7 +8408,7 @@ function tameMathObject(mathTaming= 'safe') {
8316
8408
  }$h‍_once.default( tameMathObject);
8317
8409
  })
8318
8410
  ,
8319
- // === functors[38] ===
8411
+ // === functors[40] ===
8320
8412
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_REG_EXP,TypeError,construct,defineProperties,getOwnPropertyDescriptor,speciesSymbol;$h‍_imports([["./commons.js", [["FERAL_REG_EXP", [$h‍_a => (FERAL_REG_EXP = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["construct", [$h‍_a => (construct = $h‍_a)]],["defineProperties", [$h‍_a => (defineProperties = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["speciesSymbol", [$h‍_a => (speciesSymbol = $h‍_a)]]]]]);
8321
8413
 
8322
8414
 
@@ -8371,7 +8463,7 @@ function tameRegExpConstructor(regExpTaming= 'safe') {
8371
8463
  }$h‍_once.default( tameRegExpConstructor);
8372
8464
  })
8373
8465
  ,
8374
- // === functors[39] ===
8466
+ // === functors[41] ===
8375
8467
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let whitelist,FunctionInstance,isAccessorPermit,Map,String,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isObject,mapGet,objectHasOwnProperty,ownKeys,symbolKeyFor;$h‍_imports([["./whitelist.js", [["whitelist", [$h‍_a => (whitelist = $h‍_a)]],["FunctionInstance", [$h‍_a => (FunctionInstance = $h‍_a)]],["isAccessorPermit", [$h‍_a => (isAccessorPermit = $h‍_a)]]]],["./commons.js", [["Map", [$h‍_a => (Map = $h‍_a)]],["String", [$h‍_a => (String = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["arrayFilter", [$h‍_a => (arrayFilter = $h‍_a)]],["arrayIncludes", [$h‍_a => (arrayIncludes = $h‍_a)]],["arrayMap", [$h‍_a => (arrayMap = $h‍_a)]],["entries", [$h‍_a => (entries = $h‍_a)]],["getOwnPropertyDescriptor", [$h‍_a => (getOwnPropertyDescriptor = $h‍_a)]],["getPrototypeOf", [$h‍_a => (getPrototypeOf = $h‍_a)]],["isObject", [$h‍_a => (isObject = $h‍_a)]],["mapGet", [$h‍_a => (mapGet = $h‍_a)]],["objectHasOwnProperty", [$h‍_a => (objectHasOwnProperty = $h‍_a)]],["ownKeys", [$h‍_a => (ownKeys = $h‍_a)]],["symbolKeyFor", [$h‍_a => (symbolKeyFor = $h‍_a)]]]]]);
8376
8468
 
8377
8469
 
@@ -8686,7 +8778,7 @@ function whitelistIntrinsics(
8686
8778
  }$h‍_once.default( whitelistIntrinsics);
8687
8779
  })
8688
8780
  ,
8689
- // === functors[40] ===
8781
+ // === functors[42] ===
8690
8782
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,arrayMap,globalThis,is,ownKeys,stringSplit,noEvalEvaluate,enJoin,makeHardener,makeIntrinsicsCollector,whitelistIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameConsole,tameErrorConstructor,assert,makeAssert,makeEnvironmentCaptor,getAnonymousIntrinsics,makeCompartmentConstructor;$h‍_imports([["./commons.js", [["FERAL_FUNCTION", [$h‍_a => (FERAL_FUNCTION = $h‍_a)]],["FERAL_EVAL", [$h‍_a => (FERAL_EVAL = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["arrayFilter", [$h‍_a => (arrayFilter = $h‍_a)]],["arrayMap", [$h‍_a => (arrayMap = $h‍_a)]],["globalThis", [$h‍_a => (globalThis = $h‍_a)]],["is", [$h‍_a => (is = $h‍_a)]],["ownKeys", [$h‍_a => (ownKeys = $h‍_a)]],["stringSplit", [$h‍_a => (stringSplit = $h‍_a)]],["noEvalEvaluate", [$h‍_a => (noEvalEvaluate = $h‍_a)]]]],["./error/stringify-utils.js", [["enJoin", [$h‍_a => (enJoin = $h‍_a)]]]],["./make-hardener.js", [["makeHardener", [$h‍_a => (makeHardener = $h‍_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector", [$h‍_a => (makeIntrinsicsCollector = $h‍_a)]]]],["./whitelist-intrinsics.js", [["default", [$h‍_a => (whitelistIntrinsics = $h‍_a)]]]],["./tame-function-constructors.js", [["default", [$h‍_a => (tameFunctionConstructors = $h‍_a)]]]],["./tame-date-constructor.js", [["default", [$h‍_a => (tameDateConstructor = $h‍_a)]]]],["./tame-math-object.js", [["default", [$h‍_a => (tameMathObject = $h‍_a)]]]],["./tame-regexp-constructor.js", [["default", [$h‍_a => (tameRegExpConstructor = $h‍_a)]]]],["./enable-property-overrides.js", [["default", [$h‍_a => (enablePropertyOverrides = $h‍_a)]]]],["./tame-locale-methods.js", [["default", [$h‍_a => (tameLocaleMethods = $h‍_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties", [$h‍_a => (setGlobalObjectConstantProperties = $h‍_a)]],["setGlobalObjectMutableProperties", [$h‍_a => (setGlobalObjectMutableProperties = $h‍_a)]],["setGlobalObjectEvaluators", [$h‍_a => (setGlobalObjectEvaluators = $h‍_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h‍_a => (makeSafeEvaluator = $h‍_a)]]]],["./whitelist.js", [["initialGlobalPropertyNames", [$h‍_a => (initialGlobalPropertyNames = $h‍_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString", [$h‍_a => (tameFunctionToString = $h‍_a)]]]],["./tame-domains.js", [["tameDomains", [$h‍_a => (tameDomains = $h‍_a)]]]],["./error/tame-console.js", [["tameConsole", [$h‍_a => (tameConsole = $h‍_a)]]]],["./error/tame-error-constructor.js", [["default", [$h‍_a => (tameErrorConstructor = $h‍_a)]]]],["./error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]],["makeAssert", [$h‍_a => (makeAssert = $h‍_a)]]]],["./environment-options.js", [["makeEnvironmentCaptor", [$h‍_a => (makeEnvironmentCaptor = $h‍_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics", [$h‍_a => (getAnonymousIntrinsics = $h‍_a)]]]],["./compartment-shim.js", [["makeCompartmentConstructor", [$h‍_a => (makeCompartmentConstructor = $h‍_a)]]]]]);
8691
8783
 
8692
8784
 
@@ -9101,7 +9193,7 @@ const lockdown= (options= {})=> {
9101
9193
  };$h‍_once.lockdown(lockdown);
9102
9194
  })
9103
9195
  ,
9104
- // === functors[41] ===
9196
+ // === functors[43] ===
9105
9197
  (({ imports: $h‍_imports, liveVar: $h‍_live, onceVar: $h‍_once, importMeta: $h‍____meta, }) => { let globalThis,TypeError,assign,tameFunctionToString,getGlobalIntrinsics,lockdown,makeCompartmentConstructor,assert;$h‍_imports([["./src/commons.js", [["globalThis", [$h‍_a => (globalThis = $h‍_a)]],["TypeError", [$h‍_a => (TypeError = $h‍_a)]],["assign", [$h‍_a => (assign = $h‍_a)]]]],["./src/tame-function-tostring.js", [["tameFunctionToString", [$h‍_a => (tameFunctionToString = $h‍_a)]]]],["./src/intrinsics.js", [["getGlobalIntrinsics", [$h‍_a => (getGlobalIntrinsics = $h‍_a)]]]],["./src/lockdown-shim.js", [["lockdown", [$h‍_a => (lockdown = $h‍_a)]]]],["./src/compartment-shim.js", [["makeCompartmentConstructor", [$h‍_a => (makeCompartmentConstructor = $h‍_a)]]]],["./src/error/assert.js", [["assert", [$h‍_a => (assert = $h‍_a)]]]]]);
9106
9198
 
9107
9199
 
@@ -9209,15 +9301,16 @@ assign(globalThis, {
9209
9301
  preventExtensions: cell("preventExtensions"),
9210
9302
  setPrototypeOf: cell("setPrototypeOf"),
9211
9303
  values: cell("values"),
9304
+ fromEntries: cell("fromEntries"),
9212
9305
  speciesSymbol: cell("speciesSymbol"),
9213
9306
  toStringTagSymbol: cell("toStringTagSymbol"),
9214
9307
  iteratorSymbol: cell("iteratorSymbol"),
9215
9308
  matchAllSymbol: cell("matchAllSymbol"),
9309
+ unscopablesSymbol: cell("unscopablesSymbol"),
9216
9310
  symbolKeyFor: cell("symbolKeyFor"),
9217
9311
  symbolFor: cell("symbolFor"),
9218
9312
  isInteger: cell("isInteger"),
9219
9313
  stringifyJson: cell("stringifyJson"),
9220
- fromEntries: cell("fromEntries"),
9221
9314
  defineProperty: cell("defineProperty"),
9222
9315
  apply: cell("apply"),
9223
9316
  construct: cell("construct"),
@@ -9314,14 +9407,22 @@ assign(globalThis, {
9314
9407
  assert: cell("assert"),
9315
9408
  },
9316
9409
  {
9317
- makeEvaluateFactory: cell("makeEvaluateFactory"),
9410
+ makeEvalScopeKit: cell("makeEvalScopeKit"),
9318
9411
  },
9319
9412
  {
9320
9413
  isValidIdentifierName: cell("isValidIdentifierName"),
9321
9414
  getScopeConstants: cell("getScopeConstants"),
9322
9415
  },
9323
9416
  {
9324
- createScopeHandler: cell("createScopeHandler"),
9417
+ makeEvaluate: cell("makeEvaluate"),
9418
+ },
9419
+ {
9420
+ alwaysThrowHandler: cell("alwaysThrowHandler"),
9421
+ strictScopeTerminatorHandler: cell("strictScopeTerminatorHandler"),
9422
+ strictScopeTerminator: cell("strictScopeTerminator"),
9423
+ },
9424
+ {
9425
+ createSloppyGlobalsScopeTerminator: cell("createSloppyGlobalsScopeTerminator"),
9325
9426
  },
9326
9427
  {
9327
9428
  getSourceURL: cell("getSourceURL"),
@@ -9360,6 +9461,7 @@ assign(globalThis, {
9360
9461
  whitelist: cell("whitelist"),
9361
9462
  },
9362
9463
  {
9464
+ setGlobalObjectSymbolUnscopables: cell("setGlobalObjectSymbolUnscopables"),
9363
9465
  setGlobalObjectConstantProperties: cell("setGlobalObjectConstantProperties"),
9364
9466
  setGlobalObjectMutableProperties: cell("setGlobalObjectMutableProperties"),
9365
9467
  setGlobalObjectEvaluators: cell("setGlobalObjectEvaluators"),
@@ -9525,15 +9627,16 @@ assign(globalThis, {
9525
9627
  preventExtensions: cells[0].preventExtensions.set,
9526
9628
  setPrototypeOf: cells[0].setPrototypeOf.set,
9527
9629
  values: cells[0].values.set,
9630
+ fromEntries: cells[0].fromEntries.set,
9528
9631
  speciesSymbol: cells[0].speciesSymbol.set,
9529
9632
  toStringTagSymbol: cells[0].toStringTagSymbol.set,
9530
9633
  iteratorSymbol: cells[0].iteratorSymbol.set,
9531
9634
  matchAllSymbol: cells[0].matchAllSymbol.set,
9635
+ unscopablesSymbol: cells[0].unscopablesSymbol.set,
9532
9636
  symbolKeyFor: cells[0].symbolKeyFor.set,
9533
9637
  symbolFor: cells[0].symbolFor.set,
9534
9638
  isInteger: cells[0].isInteger.set,
9535
9639
  stringifyJson: cells[0].stringifyJson.set,
9536
- fromEntries: cells[0].fromEntries.set,
9537
9640
  defineProperty: cells[0].defineProperty.set,
9538
9641
  apply: cells[0].apply.set,
9539
9642
  construct: cells[0].construct.set,
@@ -9672,11 +9775,12 @@ assign(globalThis, {
9672
9775
  imports(entries) {
9673
9776
  const map = new Map(entries);
9674
9777
  observeImports(map, "./commons.js", 0);
9778
+ observeImports(map, "./error/assert.js", 4);
9675
9779
  },
9676
9780
  liveVar: {
9677
9781
  },
9678
9782
  onceVar: {
9679
- makeEvaluateFactory: cells[5].makeEvaluateFactory.set,
9783
+ makeEvalScopeKit: cells[5].makeEvalScopeKit.set,
9680
9784
  },
9681
9785
  importMeta: {},
9682
9786
  });
@@ -9697,12 +9801,12 @@ assign(globalThis, {
9697
9801
  imports(entries) {
9698
9802
  const map = new Map(entries);
9699
9803
  observeImports(map, "./commons.js", 0);
9700
- observeImports(map, "./error/assert.js", 4);
9804
+ observeImports(map, "./scope-constants.js", 6);
9701
9805
  },
9702
9806
  liveVar: {
9703
9807
  },
9704
9808
  onceVar: {
9705
- createScopeHandler: cells[7].createScopeHandler.set,
9809
+ makeEvaluate: cells[7].makeEvaluate.set,
9706
9810
  },
9707
9811
  importMeta: {},
9708
9812
  });
@@ -9710,11 +9814,14 @@ assign(globalThis, {
9710
9814
  imports(entries) {
9711
9815
  const map = new Map(entries);
9712
9816
  observeImports(map, "./commons.js", 0);
9817
+ observeImports(map, "./error/assert.js", 4);
9713
9818
  },
9714
9819
  liveVar: {
9715
9820
  },
9716
9821
  onceVar: {
9717
- getSourceURL: cells[8].getSourceURL.set,
9822
+ alwaysThrowHandler: cells[8].alwaysThrowHandler.set,
9823
+ strictScopeTerminatorHandler: cells[8].strictScopeTerminatorHandler.set,
9824
+ strictScopeTerminator: cells[8].strictScopeTerminator.set,
9718
9825
  },
9719
9826
  importMeta: {},
9720
9827
  });
@@ -9722,18 +9829,12 @@ assign(globalThis, {
9722
9829
  imports(entries) {
9723
9830
  const map = new Map(entries);
9724
9831
  observeImports(map, "./commons.js", 0);
9725
- observeImports(map, "./get-source-url.js", 8);
9832
+ observeImports(map, "./strict-scope-terminator.js", 8);
9726
9833
  },
9727
9834
  liveVar: {
9728
9835
  },
9729
9836
  onceVar: {
9730
- rejectHtmlComments: cells[9].rejectHtmlComments.set,
9731
- evadeHtmlCommentTest: cells[9].evadeHtmlCommentTest.set,
9732
- rejectImportExpressions: cells[9].rejectImportExpressions.set,
9733
- evadeImportExpressionTest: cells[9].evadeImportExpressionTest.set,
9734
- rejectSomeDirectEvalExpressions: cells[9].rejectSomeDirectEvalExpressions.set,
9735
- mandatoryTransforms: cells[9].mandatoryTransforms.set,
9736
- applyTransforms: cells[9].applyTransforms.set,
9837
+ createSloppyGlobalsScopeTerminator: cells[9].createSloppyGlobalsScopeTerminator.set,
9737
9838
  },
9738
9839
  importMeta: {},
9739
9840
  });
@@ -9741,16 +9842,11 @@ assign(globalThis, {
9741
9842
  imports(entries) {
9742
9843
  const map = new Map(entries);
9743
9844
  observeImports(map, "./commons.js", 0);
9744
- observeImports(map, "./error/assert.js", 4);
9745
- observeImports(map, "./make-evaluate-factory.js", 5);
9746
- observeImports(map, "./scope-constants.js", 6);
9747
- observeImports(map, "./scope-handler.js", 7);
9748
- observeImports(map, "./transforms.js", 9);
9749
9845
  },
9750
9846
  liveVar: {
9751
9847
  },
9752
9848
  onceVar: {
9753
- makeSafeEvaluator: cells[10].makeSafeEvaluator.set,
9849
+ getSourceURL: cells[10].getSourceURL.set,
9754
9850
  },
9755
9851
  importMeta: {},
9756
9852
  });
@@ -9758,25 +9854,36 @@ assign(globalThis, {
9758
9854
  imports(entries) {
9759
9855
  const map = new Map(entries);
9760
9856
  observeImports(map, "./commons.js", 0);
9761
- observeImports(map, "./make-safe-evaluator.js", 10);
9762
- observeImports(map, "./transforms.js", 9);
9857
+ observeImports(map, "./get-source-url.js", 10);
9763
9858
  },
9764
9859
  liveVar: {
9765
9860
  },
9766
9861
  onceVar: {
9767
- provideCompartmentEvaluator: cells[11].provideCompartmentEvaluator.set,
9768
- compartmentEvaluate: cells[11].compartmentEvaluate.set,
9862
+ rejectHtmlComments: cells[11].rejectHtmlComments.set,
9863
+ evadeHtmlCommentTest: cells[11].evadeHtmlCommentTest.set,
9864
+ rejectImportExpressions: cells[11].rejectImportExpressions.set,
9865
+ evadeImportExpressionTest: cells[11].evadeImportExpressionTest.set,
9866
+ rejectSomeDirectEvalExpressions: cells[11].rejectSomeDirectEvalExpressions.set,
9867
+ mandatoryTransforms: cells[11].mandatoryTransforms.set,
9868
+ applyTransforms: cells[11].applyTransforms.set,
9769
9869
  },
9770
9870
  importMeta: {},
9771
9871
  });
9772
9872
  functors[12]({
9773
9873
  imports(entries) {
9774
9874
  const map = new Map(entries);
9875
+ observeImports(map, "./commons.js", 0);
9876
+ observeImports(map, "./error/assert.js", 4);
9877
+ observeImports(map, "./eval-scope.js", 5);
9878
+ observeImports(map, "./make-evaluate.js", 7);
9879
+ observeImports(map, "./sloppy-globals-scope-terminator.js", 9);
9880
+ observeImports(map, "./strict-scope-terminator.js", 8);
9881
+ observeImports(map, "./transforms.js", 11);
9775
9882
  },
9776
9883
  liveVar: {
9777
9884
  },
9778
9885
  onceVar: {
9779
- makeEvalFunction: cells[12].makeEvalFunction.set,
9886
+ makeSafeEvaluator: cells[12].makeSafeEvaluator.set,
9780
9887
  },
9781
9888
  importMeta: {},
9782
9889
  });
@@ -9784,12 +9891,14 @@ assign(globalThis, {
9784
9891
  imports(entries) {
9785
9892
  const map = new Map(entries);
9786
9893
  observeImports(map, "./commons.js", 0);
9787
- observeImports(map, "./error/assert.js", 4);
9894
+ observeImports(map, "./make-safe-evaluator.js", 12);
9895
+ observeImports(map, "./transforms.js", 11);
9788
9896
  },
9789
9897
  liveVar: {
9790
9898
  },
9791
9899
  onceVar: {
9792
- makeFunctionConstructor: cells[13].makeFunctionConstructor.set,
9900
+ provideCompartmentEvaluator: cells[13].provideCompartmentEvaluator.set,
9901
+ compartmentEvaluate: cells[13].compartmentEvaluate.set,
9793
9902
  },
9794
9903
  importMeta: {},
9795
9904
  });
@@ -9800,15 +9909,7 @@ assign(globalThis, {
9800
9909
  liveVar: {
9801
9910
  },
9802
9911
  onceVar: {
9803
- constantProperties: cells[14].constantProperties.set,
9804
- universalPropertyNames: cells[14].universalPropertyNames.set,
9805
- initialGlobalPropertyNames: cells[14].initialGlobalPropertyNames.set,
9806
- sharedGlobalPropertyNames: cells[14].sharedGlobalPropertyNames.set,
9807
- uniqueGlobalPropertyNames: cells[14].uniqueGlobalPropertyNames.set,
9808
- NativeErrors: cells[14].NativeErrors.set,
9809
- FunctionInstance: cells[14].FunctionInstance.set,
9810
- isAccessorPermit: cells[14].isAccessorPermit.set,
9811
- whitelist: cells[14].whitelist.set,
9912
+ makeEvalFunction: cells[14].makeEvalFunction.set,
9812
9913
  },
9813
9914
  importMeta: {},
9814
9915
  });
@@ -9816,30 +9917,31 @@ assign(globalThis, {
9816
9917
  imports(entries) {
9817
9918
  const map = new Map(entries);
9818
9919
  observeImports(map, "./commons.js", 0);
9819
- observeImports(map, "./make-eval-function.js", 12);
9820
- observeImports(map, "./make-function-constructor.js", 13);
9821
- observeImports(map, "./whitelist.js", 14);
9920
+ observeImports(map, "./error/assert.js", 4);
9822
9921
  },
9823
9922
  liveVar: {
9824
9923
  },
9825
9924
  onceVar: {
9826
- setGlobalObjectConstantProperties: cells[15].setGlobalObjectConstantProperties.set,
9827
- setGlobalObjectMutableProperties: cells[15].setGlobalObjectMutableProperties.set,
9828
- setGlobalObjectEvaluators: cells[15].setGlobalObjectEvaluators.set,
9925
+ makeFunctionConstructor: cells[15].makeFunctionConstructor.set,
9829
9926
  },
9830
9927
  importMeta: {},
9831
9928
  });
9832
9929
  functors[16]({
9833
9930
  imports(entries) {
9834
9931
  const map = new Map(entries);
9835
- observeImports(map, "./commons.js", 0);
9836
- observeImports(map, "./error/assert.js", 4);
9837
9932
  },
9838
9933
  liveVar: {
9839
9934
  },
9840
9935
  onceVar: {
9841
- makeAlias: cells[16].makeAlias.set,
9842
- load: cells[16].load.set,
9936
+ constantProperties: cells[16].constantProperties.set,
9937
+ universalPropertyNames: cells[16].universalPropertyNames.set,
9938
+ initialGlobalPropertyNames: cells[16].initialGlobalPropertyNames.set,
9939
+ sharedGlobalPropertyNames: cells[16].sharedGlobalPropertyNames.set,
9940
+ uniqueGlobalPropertyNames: cells[16].uniqueGlobalPropertyNames.set,
9941
+ NativeErrors: cells[16].NativeErrors.set,
9942
+ FunctionInstance: cells[16].FunctionInstance.set,
9943
+ isAccessorPermit: cells[16].isAccessorPermit.set,
9944
+ whitelist: cells[16].whitelist.set,
9843
9945
  },
9844
9946
  importMeta: {},
9845
9947
  });
@@ -9847,14 +9949,17 @@ assign(globalThis, {
9847
9949
  imports(entries) {
9848
9950
  const map = new Map(entries);
9849
9951
  observeImports(map, "./commons.js", 0);
9850
- observeImports(map, "./error/assert.js", 4);
9851
- observeImports(map, "./module-load.js", 16);
9952
+ observeImports(map, "./make-eval-function.js", 14);
9953
+ observeImports(map, "./make-function-constructor.js", 15);
9954
+ observeImports(map, "./whitelist.js", 16);
9852
9955
  },
9853
9956
  liveVar: {
9854
9957
  },
9855
9958
  onceVar: {
9856
- deferExports: cells[17].deferExports.set,
9857
- getDeferredExports: cells[17].getDeferredExports.set,
9959
+ setGlobalObjectSymbolUnscopables: cells[17].setGlobalObjectSymbolUnscopables.set,
9960
+ setGlobalObjectConstantProperties: cells[17].setGlobalObjectConstantProperties.set,
9961
+ setGlobalObjectMutableProperties: cells[17].setGlobalObjectMutableProperties.set,
9962
+ setGlobalObjectEvaluators: cells[17].setGlobalObjectEvaluators.set,
9858
9963
  },
9859
9964
  importMeta: {},
9860
9965
  });
@@ -9862,15 +9967,13 @@ assign(globalThis, {
9862
9967
  imports(entries) {
9863
9968
  const map = new Map(entries);
9864
9969
  observeImports(map, "./commons.js", 0);
9865
- observeImports(map, "./compartment-evaluate.js", 11);
9866
9970
  observeImports(map, "./error/assert.js", 4);
9867
- observeImports(map, "./module-proxy.js", 17);
9868
9971
  },
9869
9972
  liveVar: {
9870
9973
  },
9871
9974
  onceVar: {
9872
- makeThirdPartyModuleInstance: cells[18].makeThirdPartyModuleInstance.set,
9873
- makeModuleInstance: cells[18].makeModuleInstance.set,
9975
+ makeAlias: cells[18].makeAlias.set,
9976
+ load: cells[18].load.set,
9874
9977
  },
9875
9978
  importMeta: {},
9876
9979
  });
@@ -9879,13 +9982,13 @@ assign(globalThis, {
9879
9982
  const map = new Map(entries);
9880
9983
  observeImports(map, "./commons.js", 0);
9881
9984
  observeImports(map, "./error/assert.js", 4);
9882
- observeImports(map, "./module-instance.js", 18);
9985
+ observeImports(map, "./module-load.js", 18);
9883
9986
  },
9884
9987
  liveVar: {
9885
9988
  },
9886
9989
  onceVar: {
9887
- link: cells[19].link.set,
9888
- instantiate: cells[19].instantiate.set,
9990
+ deferExports: cells[19].deferExports.set,
9991
+ getDeferredExports: cells[19].getDeferredExports.set,
9889
9992
  },
9890
9993
  importMeta: {},
9891
9994
  });
@@ -9893,22 +9996,15 @@ assign(globalThis, {
9893
9996
  imports(entries) {
9894
9997
  const map = new Map(entries);
9895
9998
  observeImports(map, "./commons.js", 0);
9896
- observeImports(map, "./compartment-evaluate.js", 11);
9999
+ observeImports(map, "./compartment-evaluate.js", 13);
9897
10000
  observeImports(map, "./error/assert.js", 4);
9898
- observeImports(map, "./global-object.js", 15);
9899
- observeImports(map, "./make-safe-evaluator.js", 10);
9900
- observeImports(map, "./module-link.js", 19);
9901
- observeImports(map, "./module-load.js", 16);
9902
- observeImports(map, "./module-proxy.js", 17);
9903
- observeImports(map, "./scope-constants.js", 6);
9904
- observeImports(map, "./whitelist.js", 14);
10001
+ observeImports(map, "./module-proxy.js", 19);
9905
10002
  },
9906
10003
  liveVar: {
9907
10004
  },
9908
10005
  onceVar: {
9909
- InertCompartment: cells[20].InertCompartment.set,
9910
- CompartmentPrototype: cells[20].CompartmentPrototype.set,
9911
- makeCompartmentConstructor: cells[20].makeCompartmentConstructor.set,
10006
+ makeThirdPartyModuleInstance: cells[20].makeThirdPartyModuleInstance.set,
10007
+ makeModuleInstance: cells[20].makeModuleInstance.set,
9912
10008
  },
9913
10009
  importMeta: {},
9914
10010
  });
@@ -9916,26 +10012,37 @@ assign(globalThis, {
9916
10012
  imports(entries) {
9917
10013
  const map = new Map(entries);
9918
10014
  observeImports(map, "./commons.js", 0);
9919
- observeImports(map, "./whitelist.js", 14);
10015
+ observeImports(map, "./error/assert.js", 4);
10016
+ observeImports(map, "./module-instance.js", 20);
9920
10017
  },
9921
10018
  liveVar: {
9922
10019
  },
9923
10020
  onceVar: {
9924
- makeIntrinsicsCollector: cells[21].makeIntrinsicsCollector.set,
9925
- getGlobalIntrinsics: cells[21].getGlobalIntrinsics.set,
10021
+ link: cells[21].link.set,
10022
+ instantiate: cells[21].instantiate.set,
9926
10023
  },
9927
10024
  importMeta: {},
9928
10025
  });
9929
10026
  functors[22]({
9930
10027
  imports(entries) {
9931
10028
  const map = new Map(entries);
10029
+ observeImports(map, "./commons.js", 0);
10030
+ observeImports(map, "./compartment-evaluate.js", 13);
10031
+ observeImports(map, "./error/assert.js", 4);
10032
+ observeImports(map, "./global-object.js", 17);
10033
+ observeImports(map, "./make-safe-evaluator.js", 12);
10034
+ observeImports(map, "./module-link.js", 21);
10035
+ observeImports(map, "./module-load.js", 18);
10036
+ observeImports(map, "./module-proxy.js", 19);
10037
+ observeImports(map, "./scope-constants.js", 6);
10038
+ observeImports(map, "./whitelist.js", 16);
9932
10039
  },
9933
10040
  liveVar: {
9934
10041
  },
9935
10042
  onceVar: {
9936
- minEnablements: cells[22].minEnablements.set,
9937
- moderateEnablements: cells[22].moderateEnablements.set,
9938
- severeEnablements: cells[22].severeEnablements.set,
10043
+ InertCompartment: cells[22].InertCompartment.set,
10044
+ CompartmentPrototype: cells[22].CompartmentPrototype.set,
10045
+ makeCompartmentConstructor: cells[22].makeCompartmentConstructor.set,
9939
10046
  },
9940
10047
  importMeta: {},
9941
10048
  });
@@ -9943,54 +10050,52 @@ assign(globalThis, {
9943
10050
  imports(entries) {
9944
10051
  const map = new Map(entries);
9945
10052
  observeImports(map, "./commons.js", 0);
9946
- observeImports(map, "./enablements.js", 22);
10053
+ observeImports(map, "./whitelist.js", 16);
9947
10054
  },
9948
10055
  liveVar: {
9949
10056
  },
9950
10057
  onceVar: {
9951
- default: cells[23].default.set,
10058
+ makeIntrinsicsCollector: cells[23].makeIntrinsicsCollector.set,
10059
+ getGlobalIntrinsics: cells[23].getGlobalIntrinsics.set,
9952
10060
  },
9953
10061
  importMeta: {},
9954
10062
  });
9955
10063
  functors[24]({
9956
10064
  imports(entries) {
9957
10065
  const map = new Map(entries);
9958
- observeImports(map, "./commons.js", 0);
9959
- observeImports(map, "./error/assert.js", 4);
9960
10066
  },
9961
10067
  liveVar: {
9962
10068
  },
9963
10069
  onceVar: {
9964
- makeEnvironmentCaptor: cells[24].makeEnvironmentCaptor.set,
10070
+ minEnablements: cells[24].minEnablements.set,
10071
+ moderateEnablements: cells[24].moderateEnablements.set,
10072
+ severeEnablements: cells[24].severeEnablements.set,
9965
10073
  },
9966
10074
  importMeta: {},
9967
10075
  });
9968
10076
  functors[25]({
9969
10077
  imports(entries) {
9970
10078
  const map = new Map(entries);
9971
- observeImports(map, "../commons.js", 0);
9972
- observeImports(map, "./internal-types.js", 1);
9973
- observeImports(map, "./types.js", 3);
10079
+ observeImports(map, "./commons.js", 0);
10080
+ observeImports(map, "./enablements.js", 24);
9974
10081
  },
9975
10082
  liveVar: {
9976
10083
  },
9977
10084
  onceVar: {
9978
- makeLoggingConsoleKit: cells[25].makeLoggingConsoleKit.set,
9979
- makeCausalConsole: cells[25].makeCausalConsole.set,
9980
- filterConsole: cells[25].filterConsole.set,
9981
- consoleWhitelist: cells[25].consoleWhitelist.set,
10085
+ default: cells[25].default.set,
9982
10086
  },
9983
10087
  importMeta: {},
9984
10088
  });
9985
10089
  functors[26]({
9986
10090
  imports(entries) {
9987
10091
  const map = new Map(entries);
9988
- observeImports(map, "../commons.js", 0);
10092
+ observeImports(map, "./commons.js", 0);
10093
+ observeImports(map, "./error/assert.js", 4);
9989
10094
  },
9990
10095
  liveVar: {
9991
10096
  },
9992
10097
  onceVar: {
9993
- makeRejectionHandlers: cells[26].makeRejectionHandlers.set,
10098
+ makeEnvironmentCaptor: cells[26].makeEnvironmentCaptor.set,
9994
10099
  },
9995
10100
  importMeta: {},
9996
10101
  });
@@ -9998,16 +10103,16 @@ assign(globalThis, {
9998
10103
  imports(entries) {
9999
10104
  const map = new Map(entries);
10000
10105
  observeImports(map, "../commons.js", 0);
10001
- observeImports(map, "./assert.js", 4);
10002
- observeImports(map, "./console.js", 25);
10003
10106
  observeImports(map, "./internal-types.js", 1);
10004
10107
  observeImports(map, "./types.js", 3);
10005
- observeImports(map, "./unhandled-rejection.js", 26);
10006
10108
  },
10007
10109
  liveVar: {
10008
10110
  },
10009
10111
  onceVar: {
10010
- tameConsole: cells[27].tameConsole.set,
10112
+ makeLoggingConsoleKit: cells[27].makeLoggingConsoleKit.set,
10113
+ makeCausalConsole: cells[27].makeCausalConsole.set,
10114
+ filterConsole: cells[27].filterConsole.set,
10115
+ consoleWhitelist: cells[27].consoleWhitelist.set,
10011
10116
  },
10012
10117
  importMeta: {},
10013
10118
  });
@@ -10019,9 +10124,7 @@ assign(globalThis, {
10019
10124
  liveVar: {
10020
10125
  },
10021
10126
  onceVar: {
10022
- filterFileName: cells[28].filterFileName.set,
10023
- shortenCallSiteString: cells[28].shortenCallSiteString.set,
10024
- tameV8ErrorConstructor: cells[28].tameV8ErrorConstructor.set,
10127
+ makeRejectionHandlers: cells[28].makeRejectionHandlers.set,
10025
10128
  },
10026
10129
  importMeta: {},
10027
10130
  });
@@ -10029,40 +10132,44 @@ assign(globalThis, {
10029
10132
  imports(entries) {
10030
10133
  const map = new Map(entries);
10031
10134
  observeImports(map, "../commons.js", 0);
10032
- observeImports(map, "../whitelist.js", 14);
10033
- observeImports(map, "./tame-v8-error-constructor.js", 28);
10135
+ observeImports(map, "./assert.js", 4);
10136
+ observeImports(map, "./console.js", 27);
10137
+ observeImports(map, "./internal-types.js", 1);
10138
+ observeImports(map, "./types.js", 3);
10139
+ observeImports(map, "./unhandled-rejection.js", 28);
10034
10140
  },
10035
10141
  liveVar: {
10036
10142
  },
10037
10143
  onceVar: {
10038
- default: cells[29].default.set,
10144
+ tameConsole: cells[29].tameConsole.set,
10039
10145
  },
10040
10146
  importMeta: {},
10041
10147
  });
10042
10148
  functors[30]({
10043
10149
  imports(entries) {
10044
10150
  const map = new Map(entries);
10045
- observeImports(map, "./commons.js", 0);
10046
- observeImports(map, "./compartment-shim.js", 20);
10151
+ observeImports(map, "../commons.js", 0);
10047
10152
  },
10048
10153
  liveVar: {
10049
10154
  },
10050
10155
  onceVar: {
10051
- getAnonymousIntrinsics: cells[30].getAnonymousIntrinsics.set,
10156
+ filterFileName: cells[30].filterFileName.set,
10157
+ shortenCallSiteString: cells[30].shortenCallSiteString.set,
10158
+ tameV8ErrorConstructor: cells[30].tameV8ErrorConstructor.set,
10052
10159
  },
10053
10160
  importMeta: {},
10054
10161
  });
10055
10162
  functors[31]({
10056
10163
  imports(entries) {
10057
10164
  const map = new Map(entries);
10058
- observeImports(map, "./commons.js", 0);
10059
- observeImports(map, "./error/assert.js", 4);
10165
+ observeImports(map, "../commons.js", 0);
10166
+ observeImports(map, "../whitelist.js", 16);
10167
+ observeImports(map, "./tame-v8-error-constructor.js", 30);
10060
10168
  },
10061
10169
  liveVar: {
10062
10170
  },
10063
10171
  onceVar: {
10064
- isTypedArray: cells[31].isTypedArray.set,
10065
- makeHardener: cells[31].makeHardener.set,
10172
+ default: cells[31].default.set,
10066
10173
  },
10067
10174
  importMeta: {},
10068
10175
  });
@@ -10070,11 +10177,12 @@ assign(globalThis, {
10070
10177
  imports(entries) {
10071
10178
  const map = new Map(entries);
10072
10179
  observeImports(map, "./commons.js", 0);
10180
+ observeImports(map, "./compartment-shim.js", 22);
10073
10181
  },
10074
10182
  liveVar: {
10075
10183
  },
10076
10184
  onceVar: {
10077
- default: cells[32].default.set,
10185
+ getAnonymousIntrinsics: cells[32].getAnonymousIntrinsics.set,
10078
10186
  },
10079
10187
  importMeta: {},
10080
10188
  });
@@ -10082,11 +10190,13 @@ assign(globalThis, {
10082
10190
  imports(entries) {
10083
10191
  const map = new Map(entries);
10084
10192
  observeImports(map, "./commons.js", 0);
10193
+ observeImports(map, "./error/assert.js", 4);
10085
10194
  },
10086
10195
  liveVar: {
10087
10196
  },
10088
10197
  onceVar: {
10089
- tameDomains: cells[33].tameDomains.set,
10198
+ isTypedArray: cells[33].isTypedArray.set,
10199
+ makeHardener: cells[33].makeHardener.set,
10090
10200
  },
10091
10201
  importMeta: {},
10092
10202
  });
@@ -10110,7 +10220,7 @@ assign(globalThis, {
10110
10220
  liveVar: {
10111
10221
  },
10112
10222
  onceVar: {
10113
- tameFunctionToString: cells[35].tameFunctionToString.set,
10223
+ tameDomains: cells[35].tameDomains.set,
10114
10224
  },
10115
10225
  importMeta: {},
10116
10226
  });
@@ -10118,7 +10228,6 @@ assign(globalThis, {
10118
10228
  imports(entries) {
10119
10229
  const map = new Map(entries);
10120
10230
  observeImports(map, "./commons.js", 0);
10121
- observeImports(map, "./error/assert.js", 4);
10122
10231
  },
10123
10232
  liveVar: {
10124
10233
  },
@@ -10135,7 +10244,7 @@ assign(globalThis, {
10135
10244
  liveVar: {
10136
10245
  },
10137
10246
  onceVar: {
10138
- default: cells[37].default.set,
10247
+ tameFunctionToString: cells[37].tameFunctionToString.set,
10139
10248
  },
10140
10249
  importMeta: {},
10141
10250
  });
@@ -10143,6 +10252,7 @@ assign(globalThis, {
10143
10252
  imports(entries) {
10144
10253
  const map = new Map(entries);
10145
10254
  observeImports(map, "./commons.js", 0);
10255
+ observeImports(map, "./error/assert.js", 4);
10146
10256
  },
10147
10257
  liveVar: {
10148
10258
  },
@@ -10155,7 +10265,6 @@ assign(globalThis, {
10155
10265
  imports(entries) {
10156
10266
  const map = new Map(entries);
10157
10267
  observeImports(map, "./commons.js", 0);
10158
- observeImports(map, "./whitelist.js", 14);
10159
10268
  },
10160
10269
  liveVar: {
10161
10270
  },
@@ -10168,45 +10277,70 @@ assign(globalThis, {
10168
10277
  imports(entries) {
10169
10278
  const map = new Map(entries);
10170
10279
  observeImports(map, "./commons.js", 0);
10171
- observeImports(map, "./compartment-shim.js", 20);
10172
- observeImports(map, "./enable-property-overrides.js", 23);
10173
- observeImports(map, "./environment-options.js", 24);
10280
+ },
10281
+ liveVar: {
10282
+ },
10283
+ onceVar: {
10284
+ default: cells[40].default.set,
10285
+ },
10286
+ importMeta: {},
10287
+ });
10288
+ functors[41]({
10289
+ imports(entries) {
10290
+ const map = new Map(entries);
10291
+ observeImports(map, "./commons.js", 0);
10292
+ observeImports(map, "./whitelist.js", 16);
10293
+ },
10294
+ liveVar: {
10295
+ },
10296
+ onceVar: {
10297
+ default: cells[41].default.set,
10298
+ },
10299
+ importMeta: {},
10300
+ });
10301
+ functors[42]({
10302
+ imports(entries) {
10303
+ const map = new Map(entries);
10304
+ observeImports(map, "./commons.js", 0);
10305
+ observeImports(map, "./compartment-shim.js", 22);
10306
+ observeImports(map, "./enable-property-overrides.js", 25);
10307
+ observeImports(map, "./environment-options.js", 26);
10174
10308
  observeImports(map, "./error/assert.js", 4);
10175
10309
  observeImports(map, "./error/stringify-utils.js", 2);
10176
- observeImports(map, "./error/tame-console.js", 27);
10177
- observeImports(map, "./error/tame-error-constructor.js", 29);
10178
- observeImports(map, "./get-anonymous-intrinsics.js", 30);
10179
- observeImports(map, "./global-object.js", 15);
10180
- observeImports(map, "./intrinsics.js", 21);
10181
- observeImports(map, "./make-hardener.js", 31);
10182
- observeImports(map, "./make-safe-evaluator.js", 10);
10183
- observeImports(map, "./tame-date-constructor.js", 32);
10184
- observeImports(map, "./tame-domains.js", 33);
10185
- observeImports(map, "./tame-function-constructors.js", 34);
10186
- observeImports(map, "./tame-function-tostring.js", 35);
10187
- observeImports(map, "./tame-locale-methods.js", 36);
10188
- observeImports(map, "./tame-math-object.js", 37);
10189
- observeImports(map, "./tame-regexp-constructor.js", 38);
10190
- observeImports(map, "./whitelist-intrinsics.js", 39);
10191
- observeImports(map, "./whitelist.js", 14);
10310
+ observeImports(map, "./error/tame-console.js", 29);
10311
+ observeImports(map, "./error/tame-error-constructor.js", 31);
10312
+ observeImports(map, "./get-anonymous-intrinsics.js", 32);
10313
+ observeImports(map, "./global-object.js", 17);
10314
+ observeImports(map, "./intrinsics.js", 23);
10315
+ observeImports(map, "./make-hardener.js", 33);
10316
+ observeImports(map, "./make-safe-evaluator.js", 12);
10317
+ observeImports(map, "./tame-date-constructor.js", 34);
10318
+ observeImports(map, "./tame-domains.js", 35);
10319
+ observeImports(map, "./tame-function-constructors.js", 36);
10320
+ observeImports(map, "./tame-function-tostring.js", 37);
10321
+ observeImports(map, "./tame-locale-methods.js", 38);
10322
+ observeImports(map, "./tame-math-object.js", 39);
10323
+ observeImports(map, "./tame-regexp-constructor.js", 40);
10324
+ observeImports(map, "./whitelist-intrinsics.js", 41);
10325
+ observeImports(map, "./whitelist.js", 16);
10192
10326
  },
10193
10327
  liveVar: {
10194
10328
  },
10195
10329
  onceVar: {
10196
- repairIntrinsics: cells[40].repairIntrinsics.set,
10197
- lockdown: cells[40].lockdown.set,
10330
+ repairIntrinsics: cells[42].repairIntrinsics.set,
10331
+ lockdown: cells[42].lockdown.set,
10198
10332
  },
10199
10333
  importMeta: {},
10200
10334
  });
10201
- functors[41]({
10335
+ functors[43]({
10202
10336
  imports(entries) {
10203
10337
  const map = new Map(entries);
10204
10338
  observeImports(map, "./src/commons.js", 0);
10205
- observeImports(map, "./src/compartment-shim.js", 20);
10339
+ observeImports(map, "./src/compartment-shim.js", 22);
10206
10340
  observeImports(map, "./src/error/assert.js", 4);
10207
- observeImports(map, "./src/intrinsics.js", 21);
10208
- observeImports(map, "./src/lockdown-shim.js", 40);
10209
- observeImports(map, "./src/tame-function-tostring.js", 35);
10341
+ observeImports(map, "./src/intrinsics.js", 23);
10342
+ observeImports(map, "./src/lockdown-shim.js", 42);
10343
+ observeImports(map, "./src/tame-function-tostring.js", 37);
10210
10344
  },
10211
10345
  liveVar: {
10212
10346
  },