ses 1.10.0 → 1.11.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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // ses@1.10.0
1
+ // ses@1.11.0
2
2
  'use strict';
3
3
  (functors => {
4
4
 
@@ -162,9 +162,9 @@
162
162
  finalizationRegistryRegister: cell("finalizationRegistryRegister"),
163
163
  finalizationRegistryUnregister: cell("finalizationRegistryUnregister"),
164
164
  getConstructorOf: cell("getConstructorOf"),
165
- immutableObject: cell("immutableObject"),
166
165
  isObject: cell("isObject"),
167
166
  isError: cell("isError"),
167
+ identity: cell("identity"),
168
168
  FERAL_EVAL: cell("FERAL_EVAL"),
169
169
  FERAL_FUNCTION: cell("FERAL_FUNCTION"),
170
170
  noEvalEvaluate: cell("noEvalEvaluate"),
@@ -360,6 +360,7 @@
360
360
  {
361
361
  InertCompartment: cell("InertCompartment"),
362
362
  CompartmentPrototype: cell("CompartmentPrototype"),
363
+ compartmentOptions: cell("compartmentOptions"),
363
364
  makeCompartmentConstructor: cell("makeCompartmentConstructor"),
364
365
  },
365
366
  {
@@ -575,9 +576,9 @@ function observeImports(map, importName, importIndex) {
575
576
  finalizationRegistryRegister: cells[0].finalizationRegistryRegister.set,
576
577
  finalizationRegistryUnregister: cells[0].finalizationRegistryUnregister.set,
577
578
  getConstructorOf: cells[0].getConstructorOf.set,
578
- immutableObject: cells[0].immutableObject.set,
579
579
  isObject: cells[0].isObject.set,
580
580
  isError: cells[0].isError.set,
581
+ identity: cells[0].identity.set,
581
582
  FERAL_EVAL: cells[0].FERAL_EVAL.set,
582
583
  FERAL_FUNCTION: cells[0].FERAL_FUNCTION.set,
583
584
  noEvalEvaluate: cells[0].noEvalEvaluate.set,
@@ -1232,6 +1233,7 @@ function observeImports(map, importName, importIndex) {
1232
1233
  onceVar: {
1233
1234
  InertCompartment: cells[46].InertCompartment.set,
1234
1235
  CompartmentPrototype: cells[46].CompartmentPrototype.set,
1236
+ compartmentOptions: cells[46].compartmentOptions.set,
1235
1237
  makeCompartmentConstructor: cells[46].makeCompartmentConstructor.set,
1236
1238
  },
1237
1239
  importMeta: {},
@@ -1433,20 +1435,22 @@ function observeImports(map, importName, importIndex) {
1433
1435
 
1434
1436
  return cells[cells.length - 1]['*'].get();
1435
1437
  })([// === functors[0] ===
1436
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); /* global globalThis */
1437
- /* eslint-disable no-restricted-globals */
1438
-
1439
- /**
1440
- * commons.js
1441
- * Declare shorthand functions. Sharing these declarations across modules
1442
- * improves on consistency and minification. Unused declarations are
1443
- * dropped by the tree shaking process.
1444
- *
1445
- * We capture these, not just for brevity, but for security. If any code
1446
- * modifies Object to change what 'assign' points to, the Compartment shim
1447
- * would be corrupted.
1438
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); /**
1439
+ * @module Captures native intrinsics during initialization, so vetted shims
1440
+ * (running between initialization of SES and calling lockdown) are free to
1441
+ * modify the environment without compromising the integrity of SES. For
1442
+ * example, a vetted shim can modify Object.assign because we capture and
1443
+ * export Object and assign here, then never again consult Object to get its
1444
+ * assign property.
1445
+ *
1446
+ * This pattern of use is enforced by eslint rules no-restricted-globals and
1447
+ * no-polymorphic-call.
1448
+ * We maintain the list of restricted globals in ../package.json.
1448
1449
  */
1449
1450
 
1451
+ /* global globalThis */
1452
+ /* eslint-disable no-restricted-globals */
1453
+
1450
1454
  // We cannot use globalThis as the local name since it would capture the
1451
1455
  // lexical name.
1452
1456
  const universalThis= globalThis;$h͏_once.universalThis(universalThis);
@@ -1702,12 +1706,6 @@ const finalizationRegistryUnregister=
1702
1706
  const getConstructorOf= (fn)=>
1703
1707
  reflectGet(getPrototypeOf(fn), 'constructor');
1704
1708
 
1705
- /**
1706
- * immutableObject
1707
- * An immutable (frozen) empty object that is safe to share.
1708
- */$h͏_once.getConstructorOf(getConstructorOf);
1709
- const immutableObject= freeze(create(null));
1710
-
1711
1709
  /**
1712
1710
  * isObject tests whether a value is an object.
1713
1711
  * Today, this is equivalent to:
@@ -1724,7 +1722,7 @@ const immutableObject= freeze(create(null));
1724
1722
  * attempting to box a primitive.
1725
1723
  *
1726
1724
  * @param {any} value
1727
- */$h͏_once.immutableObject(immutableObject);
1725
+ */$h͏_once.getConstructorOf(getConstructorOf);
1728
1726
  const isObject= (value)=>Object(value)=== value;
1729
1727
 
1730
1728
  /**
@@ -1740,11 +1738,17 @@ const isObject= (value)=>Object(value)=== value;
1740
1738
  */$h͏_once.isObject(isObject);
1741
1739
  const isError= (value)=>value instanceof FERAL_ERROR;
1742
1740
 
1741
+ /**
1742
+ * @template T
1743
+ * @param {T} x
1744
+ */$h͏_once.isError(isError);
1745
+ const identity= (x)=>x;
1746
+
1743
1747
  // The original unsafe untamed eval function, which must not escape.
1744
1748
  // Sample at module initialization time, which is before lockdown can
1745
1749
  // repair it. Use it only to build powerless abstractions.
1746
1750
  // eslint-disable-next-line no-eval
1747
- $h͏_once.isError(isError);const FERAL_EVAL=eval;
1751
+ $h͏_once.identity(identity);const FERAL_EVAL=eval;
1748
1752
 
1749
1753
  // The original unsafe untamed Function constructor, which must not escape.
1750
1754
  // Sample at module initialization time, which is before lockdown can
@@ -1816,7 +1820,7 @@ const FERAL_STACK_SETTER= feralStackSetter;$h͏_once.FERAL_STACK_SETTER(
1816
1820
  })()
1817
1821
  ,
1818
1822
  // === functors[1] ===
1819
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError;$h͏_imports([["./commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]]]]]);
1823
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError;$h͏_imports([["./commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]]]]]);
1820
1824
 
1821
1825
  /** getThis returns globalThis in sloppy mode or undefined in strict mode. */
1822
1826
  function getThis() {
@@ -1830,7 +1834,7 @@ if( getThis()) {
1830
1834
  })()
1831
1835
  ,
1832
1836
  // === functors[2] ===
1833
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); /* global globalThis */
1837
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); /* global globalThis */
1834
1838
  // @ts-check
1835
1839
 
1836
1840
  // `@endo/env-options` needs to be imported quite early, and so should
@@ -1970,11 +1974,11 @@ const {
1970
1974
  })()
1971
1975
  ,
1972
1976
  // === functors[3] ===
1973
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([["./src/env-options.js", []]]);
1977
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([["./src/env-options.js", []]]);
1974
1978
  })()
1975
1979
  ,
1976
1980
  // === functors[4] ===
1977
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Set,String,isArray,arrayJoin,arraySlice,arraySort,arrayMap,keys,fromEntries,freeze,is,isError,setAdd,setHas,stringIncludes,stringStartsWith,stringifyJson,toStringTagSymbol;$h͏_imports([["../commons.js", [["Set", [$h͏_a => (Set = $h͏_a)]],["String", [$h͏_a => (String = $h͏_a)]],["isArray", [$h͏_a => (isArray = $h͏_a)]],["arrayJoin", [$h͏_a => (arrayJoin = $h͏_a)]],["arraySlice", [$h͏_a => (arraySlice = $h͏_a)]],["arraySort", [$h͏_a => (arraySort = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["keys", [$h͏_a => (keys = $h͏_a)]],["fromEntries", [$h͏_a => (fromEntries = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]],["is", [$h͏_a => (is = $h͏_a)]],["isError", [$h͏_a => (isError = $h͏_a)]],["setAdd", [$h͏_a => (setAdd = $h͏_a)]],["setHas", [$h͏_a => (setHas = $h͏_a)]],["stringIncludes", [$h͏_a => (stringIncludes = $h͏_a)]],["stringStartsWith", [$h͏_a => (stringStartsWith = $h͏_a)]],["stringifyJson", [$h͏_a => (stringifyJson = $h͏_a)]],["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);
1981
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Set,String,isArray,arrayJoin,arraySlice,arraySort,arrayMap,keys,fromEntries,freeze,is,isError,setAdd,setHas,stringIncludes,stringStartsWith,stringifyJson,toStringTagSymbol;$h͏_imports([["../commons.js", [["Set", [$h͏_a => (Set = $h͏_a)]],["String", [$h͏_a => (String = $h͏_a)]],["isArray", [$h͏_a => (isArray = $h͏_a)]],["arrayJoin", [$h͏_a => (arrayJoin = $h͏_a)]],["arraySlice", [$h͏_a => (arraySlice = $h͏_a)]],["arraySort", [$h͏_a => (arraySort = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["keys", [$h͏_a => (keys = $h͏_a)]],["fromEntries", [$h͏_a => (fromEntries = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]],["is", [$h͏_a => (is = $h͏_a)]],["isError", [$h͏_a => (isError = $h͏_a)]],["setAdd", [$h͏_a => (setAdd = $h͏_a)]],["setHas", [$h͏_a => (setHas = $h͏_a)]],["stringIncludes", [$h͏_a => (stringIncludes = $h͏_a)]],["stringStartsWith", [$h͏_a => (stringStartsWith = $h͏_a)]],["stringifyJson", [$h͏_a => (stringifyJson = $h͏_a)]],["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);
1978
1982
 
1979
1983
 
1980
1984
 
@@ -2171,7 +2175,7 @@ freeze(bestEffortStringify);
2171
2175
  })()
2172
2176
  ,
2173
2177
  // === functors[5] ===
2174
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); // @ts-check
2178
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); // @ts-check
2175
2179
 
2176
2180
  /** @import {GenericErrorConstructor, AssertMakeErrorOptions, DetailsToken, StringablePayload} from '../../types.js' */
2177
2181
 
@@ -2233,7 +2237,7 @@ freeze(bestEffortStringify);
2233
2237
  })()
2234
2238
  ,
2235
2239
  // === functors[6] ===
2236
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); // @ts-check
2240
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); // @ts-check
2237
2241
 
2238
2242
  /**
2239
2243
  * @import {VirtualConsole} from './types.js'
@@ -2334,7 +2338,7 @@ freeze(bestEffortStringify);
2334
2338
  })()
2335
2339
  ,
2336
2340
  // === functors[7] ===
2337
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); // @ts-check
2341
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); // @ts-check
2338
2342
  /* eslint-disable @endo/no-polymorphic-call */
2339
2343
 
2340
2344
  // eslint-disable-next-line no-restricted-globals
@@ -2558,7 +2562,7 @@ freeze(makeLRUCacheMap);
2558
2562
  })()
2559
2563
  ,
2560
2564
  // === functors[8] ===
2561
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let makeLRUCacheMap;$h͏_imports([["../make-lru-cachemap.js", [["makeLRUCacheMap", [$h͏_a => (makeLRUCacheMap = $h͏_a)]]]]]);
2565
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let makeLRUCacheMap;$h͏_imports([["../make-lru-cachemap.js", [["makeLRUCacheMap", [$h͏_a => (makeLRUCacheMap = $h͏_a)]]]]]);
2562
2566
 
2563
2567
 
2564
2568
 
@@ -2637,7 +2641,7 @@ freeze(makeNoteLogArgsArrayKit);
2637
2641
  })()
2638
2642
  ,
2639
2643
  // === functors[9] ===
2640
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,globalThis,is,isError,regexpTest,stringIndexOf,stringReplace,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,AggregateError,getOwnPropertyDescriptors,ownKeys,create,objectPrototype,objectHasOwnProperty,an,bestEffortStringify,makeNoteLogArgsArrayKit;$h͏_imports([["../commons.js", [["RangeError", [$h͏_a => (RangeError = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["WeakMap", [$h͏_a => (WeakMap = $h͏_a)]],["arrayJoin", [$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["arrayPop", [$h͏_a => (arrayPop = $h͏_a)]],["arrayPush", [$h͏_a => (arrayPush = $h͏_a)]],["assign", [$h͏_a => (assign = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]],["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]],["is", [$h͏_a => (is = $h͏_a)]],["isError", [$h͏_a => (isError = $h͏_a)]],["regexpTest", [$h͏_a => (regexpTest = $h͏_a)]],["stringIndexOf", [$h͏_a => (stringIndexOf = $h͏_a)]],["stringReplace", [$h͏_a => (stringReplace = $h͏_a)]],["stringSlice", [$h͏_a => (stringSlice = $h͏_a)]],["stringStartsWith", [$h͏_a => (stringStartsWith = $h͏_a)]],["weakmapDelete", [$h͏_a => (weakmapDelete = $h͏_a)]],["weakmapGet", [$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas", [$h͏_a => (weakmapHas = $h͏_a)]],["weakmapSet", [$h͏_a => (weakmapSet = $h͏_a)]],["AggregateError", [$h͏_a => (AggregateError = $h͏_a)]],["getOwnPropertyDescriptors", [$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["ownKeys", [$h͏_a => (ownKeys = $h͏_a)]],["create", [$h͏_a => (create = $h͏_a)]],["objectPrototype", [$h͏_a => (objectPrototype = $h͏_a)]],["objectHasOwnProperty", [$h͏_a => (objectHasOwnProperty = $h͏_a)]]]],["./stringify-utils.js", [["an", [$h͏_a => (an = $h͏_a)]],["bestEffortStringify", [$h͏_a => (bestEffortStringify = $h͏_a)]]]],["./types.js", []],["./internal-types.js", []],["./note-log-args.js", [["makeNoteLogArgsArrayKit", [$h͏_a => (makeNoteLogArgsArrayKit = $h͏_a)]]]]]);
2644
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,globalThis,is,isError,regexpTest,stringIndexOf,stringReplace,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,AggregateError,getOwnPropertyDescriptors,ownKeys,create,objectPrototype,objectHasOwnProperty,an,bestEffortStringify,makeNoteLogArgsArrayKit;$h͏_imports([["../commons.js", [["RangeError", [$h͏_a => (RangeError = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["WeakMap", [$h͏_a => (WeakMap = $h͏_a)]],["arrayJoin", [$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["arrayPop", [$h͏_a => (arrayPop = $h͏_a)]],["arrayPush", [$h͏_a => (arrayPush = $h͏_a)]],["assign", [$h͏_a => (assign = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]],["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]],["is", [$h͏_a => (is = $h͏_a)]],["isError", [$h͏_a => (isError = $h͏_a)]],["regexpTest", [$h͏_a => (regexpTest = $h͏_a)]],["stringIndexOf", [$h͏_a => (stringIndexOf = $h͏_a)]],["stringReplace", [$h͏_a => (stringReplace = $h͏_a)]],["stringSlice", [$h͏_a => (stringSlice = $h͏_a)]],["stringStartsWith", [$h͏_a => (stringStartsWith = $h͏_a)]],["weakmapDelete", [$h͏_a => (weakmapDelete = $h͏_a)]],["weakmapGet", [$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas", [$h͏_a => (weakmapHas = $h͏_a)]],["weakmapSet", [$h͏_a => (weakmapSet = $h͏_a)]],["AggregateError", [$h͏_a => (AggregateError = $h͏_a)]],["getOwnPropertyDescriptors", [$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["ownKeys", [$h͏_a => (ownKeys = $h͏_a)]],["create", [$h͏_a => (create = $h͏_a)]],["objectPrototype", [$h͏_a => (objectPrototype = $h͏_a)]],["objectHasOwnProperty", [$h͏_a => (objectHasOwnProperty = $h͏_a)]]]],["./stringify-utils.js", [["an", [$h͏_a => (an = $h͏_a)]],["bestEffortStringify", [$h͏_a => (bestEffortStringify = $h͏_a)]]]],["./types.js", []],["./internal-types.js", []],["./note-log-args.js", [["makeNoteLogArgsArrayKit", [$h͏_a => (makeNoteLogArgsArrayKit = $h͏_a)]]]]]);
2641
2645
 
2642
2646
 
2643
2647
 
@@ -3215,7 +3219,7 @@ const assertEqual= assert.equal;$h͏_once.assertEqual(assertEqual);
3215
3219
  })()
3216
3220
  ,
3217
3221
  // === functors[10] ===
3218
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Set,String,TypeError,WeakSet,globalThis,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isObject,objectHasOwnProperty,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weaksetAdd,weaksetHas,FERAL_STACK_GETTER,FERAL_STACK_SETTER,isError,assert;$h͏_imports([["./commons.js", [["Set", [$h͏_a => (Set = $h͏_a)]],["String", [$h͏_a => (String = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["WeakSet", [$h͏_a => (WeakSet = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $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)]],["weaksetAdd", [$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas", [$h͏_a => (weaksetHas = $h͏_a)]],["FERAL_STACK_GETTER", [$h͏_a => (FERAL_STACK_GETTER = $h͏_a)]],["FERAL_STACK_SETTER", [$h͏_a => (FERAL_STACK_SETTER = $h͏_a)]],["isError", [$h͏_a => (isError = $h͏_a)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
3222
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Set,String,TypeError,WeakSet,globalThis,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isObject,objectHasOwnProperty,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weaksetAdd,weaksetHas,FERAL_STACK_GETTER,FERAL_STACK_SETTER,isError,assert;$h͏_imports([["./commons.js", [["Set", [$h͏_a => (Set = $h͏_a)]],["String", [$h͏_a => (String = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["WeakSet", [$h͏_a => (WeakSet = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $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)]],["weaksetAdd", [$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas", [$h͏_a => (weaksetHas = $h͏_a)]],["FERAL_STACK_GETTER", [$h͏_a => (FERAL_STACK_GETTER = $h͏_a)]],["FERAL_STACK_SETTER", [$h͏_a => (FERAL_STACK_SETTER = $h͏_a)]],["isError", [$h͏_a => (isError = $h͏_a)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
3219
3223
 
3220
3224
 
3221
3225
 
@@ -3493,7 +3497,7 @@ const makeHardener= ()=> {
3493
3497
  })()
3494
3498
  ,
3495
3499
  // === functors[11] ===
3496
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let objectHasOwnProperty;$h͏_imports([["./commons.js", [["objectHasOwnProperty", [$h͏_a => (objectHasOwnProperty = $h͏_a)]]]]]);
3500
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let objectHasOwnProperty;$h͏_imports([["./commons.js", [["objectHasOwnProperty", [$h͏_a => (objectHasOwnProperty = $h͏_a)]]]]]);
3497
3501
 
3498
3502
  /**
3499
3503
  * @import {Reporter} from './reporting-types.js'
@@ -3565,7 +3569,7 @@ const cauterizeProperty= (
3565
3569
  })()
3566
3570
  ,
3567
3571
  // === functors[12] ===
3568
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let arrayPush;$h͏_imports([["./commons.js", [["arrayPush", [$h͏_a => (arrayPush = $h͏_a)]]]]]);
3572
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let arrayPush,arrayForEach;$h͏_imports([["./commons.js", [["arrayPush", [$h͏_a => (arrayPush = $h͏_a)]],["arrayForEach", [$h͏_a => (arrayForEach = $h͏_a)]]]]]);
3569
3573
 
3570
3574
 
3571
3575
 
@@ -3656,6 +3660,15 @@ const universalPropertyNames= {
3656
3660
  // https://github.com/endojs/endo/issues/550
3657
3661
  AggregateError: 'AggregateError',
3658
3662
 
3663
+ // https://github.com/tc39/proposal-explicit-resource-management
3664
+ // TODO DisposableStack, AsyncDisposableStack
3665
+ // DisposableStack: 'DisposableStack',
3666
+ // AsyncDisposableStack: 'AsyncDisposableStack',
3667
+
3668
+ // https://tc39.es/proposal-shadowrealm/
3669
+ // TODO ShadowRealm
3670
+ // ShadowRealm: 'ShadowRealm',
3671
+
3659
3672
  // *** Other Properties of the Global Object
3660
3673
 
3661
3674
  JSON: 'JSON',
@@ -3710,6 +3723,10 @@ const initialGlobalPropertyNames= {
3710
3723
  // TODO https://github.com/Agoric/SES-shim/issues/551
3711
3724
  // Need initial WeakRef and FinalizationGroup in
3712
3725
  // start compartment only.
3726
+
3727
+ // TODO Temporal
3728
+ // https://github.com/tc39/proposal-temporal
3729
+ // Temporal: '%InitialTemporal%' // with Temporal.Now
3713
3730
  };
3714
3731
 
3715
3732
  /**
@@ -3728,8 +3745,12 @@ const sharedGlobalPropertyNames= {
3728
3745
 
3729
3746
  // *** Other Properties of the Global Object
3730
3747
 
3731
- Math: '%SharedMath%'};
3748
+ Math: '%SharedMath%'
3732
3749
 
3750
+ // TODO Temporal
3751
+ // https://github.com/tc39/proposal-temporal
3752
+ // Temporal: '%SharedTemporal%' // without Temporal.Now
3753
+ };
3733
3754
 
3734
3755
  /**
3735
3756
  * uniqueGlobalPropertyNames
@@ -3866,6 +3887,24 @@ const accessor= {
3866
3887
  set: fn};
3867
3888
 
3868
3889
 
3890
+ // eslint-disable-next-line func-names
3891
+ const strict= function() {
3892
+ 'use strict';
3893
+ };
3894
+
3895
+ // TODO Remove this once we no longer support the Hermes that needed this.
3896
+ arrayForEach(['caller', 'arguments'], (prop)=>{
3897
+ try {
3898
+ strict[prop];
3899
+ }catch( e) {
3900
+ // https://github.com/facebook/hermes/blob/main/test/hermes/function-non-strict.js
3901
+ if( e.message=== 'Restricted in strict mode') {
3902
+ // Fixed in Static Hermes: https://github.com/facebook/hermes/issues/1582
3903
+ FunctionInstance[prop]= accessor;
3904
+ }
3905
+ }
3906
+ });
3907
+
3869
3908
  const isAccessorPermit= (permit)=>{
3870
3909
  return permit=== getter|| permit=== accessor;
3871
3910
  };
@@ -3960,6 +3999,11 @@ const CommonMath= {
3960
3999
  tan: fn,
3961
4000
  tanh: fn,
3962
4001
  trunc: fn,
4002
+ // https://github.com/tc39/proposal-float16array
4003
+ f16round: fn,
4004
+ // https://github.com/tc39/proposal-math-sum
4005
+ sumPrecise: fn,
4006
+
3963
4007
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
3964
4008
  idiv: false,
3965
4009
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
@@ -4022,7 +4066,6 @@ const permitted= {
4022
4066
  getOwnPropertyNames: fn,
4023
4067
  getOwnPropertySymbols: fn,
4024
4068
  getPrototypeOf: fn,
4025
- hasOwn: fn,
4026
4069
  is: fn,
4027
4070
  isExtensible: fn,
4028
4071
  isFrozen: fn,
@@ -4033,6 +4076,8 @@ const permitted= {
4033
4076
  seal: fn,
4034
4077
  setPrototypeOf: fn,
4035
4078
  values: fn,
4079
+ // https://github.com/tc39/proposal-accessible-object-hasownproperty
4080
+ hasOwn: fn,
4036
4081
  // https://github.com/tc39/proposal-array-grouping
4037
4082
  groupBy: fn,
4038
4083
  // Seen on QuickJS
@@ -4104,9 +4149,7 @@ const permitted= {
4104
4149
  '%SharedSymbol%': {
4105
4150
  // Properties of the Symbol Constructor
4106
4151
  '[[Proto]]': '%FunctionPrototype%',
4107
- asyncDispose: 'symbol',
4108
4152
  asyncIterator: 'symbol',
4109
- dispose: 'symbol',
4110
4153
  for: fn,
4111
4154
  hasInstance: 'symbol',
4112
4155
  isConcatSpreadable: 'symbol',
@@ -4122,6 +4165,10 @@ const permitted= {
4122
4165
  toPrimitive: 'symbol',
4123
4166
  toStringTag: 'symbol',
4124
4167
  unscopables: 'symbol',
4168
+ // https://github.com/tc39/proposal-explicit-resource-management
4169
+ asyncDispose: 'symbol',
4170
+ // https://github.com/tc39/proposal-explicit-resource-management
4171
+ dispose: 'symbol',
4125
4172
  // Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
4126
4173
  useSimple: false,
4127
4174
  // Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
@@ -4149,7 +4196,9 @@ const permitted= {
4149
4196
  // Non standard, v8 only, used by tap, tamed to accessor
4150
4197
  stackTraceLimit: accessor,
4151
4198
  // Non standard, v8 only, used by several, tamed to accessor
4152
- prepareStackTrace: accessor},
4199
+ prepareStackTrace: accessor,
4200
+ // https://github.com/tc39/proposal-is-error
4201
+ isError: fn},
4153
4202
 
4154
4203
 
4155
4204
  '%SharedError%': {
@@ -4161,7 +4210,9 @@ const permitted= {
4161
4210
  // Non standard, v8 only, used by tap, tamed to accessor
4162
4211
  stackTraceLimit: accessor,
4163
4212
  // Non standard, v8 only, used by several, tamed to accessor
4164
- prepareStackTrace: accessor},
4213
+ prepareStackTrace: accessor,
4214
+ // https://github.com/tc39/proposal-is-error
4215
+ isError: fn},
4165
4216
 
4166
4217
 
4167
4218
  '%ErrorPrototype%': {
@@ -4190,6 +4241,10 @@ const permitted= {
4190
4241
  // https://github.com/endojs/endo/issues/550
4191
4242
  AggregateError: NativeError('%AggregateErrorPrototype%'),
4192
4243
 
4244
+ // TODO SuppressedError
4245
+ // https://github.com/tc39/proposal-explicit-resource-management
4246
+ // SuppressedError: NativeError('%SuppressedErrorPrototype%'),
4247
+
4193
4248
  '%EvalErrorPrototype%': NativeErrorPrototype('EvalError'),
4194
4249
  '%RangeErrorPrototype%': NativeErrorPrototype('RangeError'),
4195
4250
  '%ReferenceErrorPrototype%': NativeErrorPrototype('ReferenceError'),
@@ -4198,6 +4253,13 @@ const permitted= {
4198
4253
  '%URIErrorPrototype%': NativeErrorPrototype('URIError'),
4199
4254
  // https://github.com/endojs/endo/issues/550
4200
4255
  '%AggregateErrorPrototype%': NativeErrorPrototype('AggregateError'),
4256
+ // TODO AggregateError .errors
4257
+
4258
+ // TODO SuppressedError
4259
+ // https://github.com/tc39/proposal-explicit-resource-management
4260
+ // '%SuppressedErrorPrototype%': NativeErrorPrototype('SuppressedError'),
4261
+ // TODO SuppressedError .error
4262
+ // TODO SuppressedError .suppressed
4201
4263
 
4202
4264
  // *** Numbers and Dates
4203
4265
 
@@ -4376,7 +4438,6 @@ const permitted= {
4376
4438
  '%StringPrototype%': {
4377
4439
  // Properties of the String Prototype Object
4378
4440
  length: 'number',
4379
- at: fn,
4380
4441
  charAt: fn,
4381
4442
  charCodeAt: fn,
4382
4443
  codePointAt: fn,
@@ -4410,6 +4471,13 @@ const permitted= {
4410
4471
  trimStart: fn,
4411
4472
  valueOf: fn,
4412
4473
  '@@iterator': fn,
4474
+ // Failed tc39 proposal
4475
+ // https://github.com/tc39/proposal-relative-indexing-method
4476
+ at: fn,
4477
+ // https://github.com/tc39/proposal-is-usv-string
4478
+ isWellFormed: fn,
4479
+ toWellFormed: fn,
4480
+ unicodeSets: fn,
4413
4481
 
4414
4482
  // Annex B: Additional Properties of the String.prototype Object
4415
4483
  substr: fn,
@@ -4430,10 +4498,6 @@ const permitted= {
4430
4498
  trimRight: fn,
4431
4499
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
4432
4500
  compare: false,
4433
- // https://github.com/tc39/proposal-is-usv-string
4434
- isWellFormed: fn,
4435
- toWellFormed: fn,
4436
- unicodeSets: fn,
4437
4501
  // Seen on QuickJS
4438
4502
  __quote: false},
4439
4503
 
@@ -4449,6 +4513,8 @@ const permitted= {
4449
4513
  '[[Proto]]': '%FunctionPrototype%',
4450
4514
  prototype: '%RegExpPrototype%',
4451
4515
  '@@species': getter,
4516
+ // https://github.com/tc39/proposal-regex-escaping
4517
+ escape: fn,
4452
4518
 
4453
4519
  // The https://github.com/tc39/proposal-regexp-legacy-features
4454
4520
  // are all optional, unsafe, and omitted
@@ -4477,7 +4543,9 @@ const permitted= {
4477
4543
  // Properties of the RegExp Constructor
4478
4544
  '[[Proto]]': '%FunctionPrototype%',
4479
4545
  prototype: '%RegExpPrototype%',
4480
- '@@species': getter},
4546
+ '@@species': getter,
4547
+ // https://github.com/tc39/proposal-regex-escaping
4548
+ escape: fn},
4481
4549
 
4482
4550
 
4483
4551
  '%RegExpPrototype%': {
@@ -4524,7 +4592,7 @@ const permitted= {
4524
4592
  prototype: '%ArrayPrototype%',
4525
4593
  '@@species': getter,
4526
4594
 
4527
- // Stage 3:
4595
+ // Failed tc39 proposal
4528
4596
  // https://tc39.es/proposal-relative-indexing-method/
4529
4597
  at: fn,
4530
4598
  // https://tc39.es/proposal-array-from-async/
@@ -4533,7 +4601,6 @@ const permitted= {
4533
4601
 
4534
4602
  '%ArrayPrototype%': {
4535
4603
  // Properties of the Array Prototype Object
4536
- at: fn,
4537
4604
  length: 'number',
4538
4605
  concat: fn,
4539
4606
  constructor: 'Array',
@@ -4581,6 +4648,7 @@ const permitted= {
4581
4648
  keys: 'boolean',
4582
4649
  values: 'boolean',
4583
4650
  // Failed tc39 proposal
4651
+ // https://tc39.es/proposal-relative-indexing-method/
4584
4652
  // Seen on FF Nightly 88.0a1
4585
4653
  at: 'boolean',
4586
4654
  // See https://github.com/tc39/proposal-array-find-from-last
@@ -4607,7 +4675,10 @@ const permitted= {
4607
4675
  // https://github.com/tc39/proposal-array-grouping
4608
4676
  group: fn, // Not in proposal? Where?
4609
4677
  groupToMap: fn, // Not in proposal? Where?
4610
- groupBy: fn},
4678
+ groupBy: fn,
4679
+ // Failed tc39 proposal
4680
+ // https://tc39.es/proposal-relative-indexing-method/
4681
+ at: fn},
4611
4682
 
4612
4683
 
4613
4684
  '%ArrayIteratorPrototype%': {
@@ -4629,7 +4700,6 @@ const permitted= {
4629
4700
 
4630
4701
 
4631
4702
  '%TypedArrayPrototype%': {
4632
- at: fn,
4633
4703
  buffer: getter,
4634
4704
  byteLength: getter,
4635
4705
  byteOffset: getter,
@@ -4662,6 +4732,9 @@ const permitted= {
4662
4732
  values: fn,
4663
4733
  '@@iterator': fn,
4664
4734
  '@@toStringTag': getter,
4735
+ // Failed tc39 proposal
4736
+ // https://tc39.es/proposal-relative-indexing-method/
4737
+ at: fn,
4665
4738
  // See https://github.com/tc39/proposal-array-find-from-last
4666
4739
  findLast: fn,
4667
4740
  findLastIndex: fn,
@@ -4918,7 +4991,12 @@ const permitted= {
4918
4991
  // Properties of the Iterator Constructor
4919
4992
  '[[Proto]]': '%FunctionPrototype%',
4920
4993
  prototype: '%IteratorPrototype%',
4921
- from: fn},
4994
+ from: fn,
4995
+ // https://github.com/tc39/proposal-joint-iteration
4996
+ zip: fn,
4997
+ zipKeyed: fn,
4998
+ // https://github.com/tc39/proposal-iterator-sequencing
4999
+ concat: fn},
4922
5000
 
4923
5001
 
4924
5002
  '%IteratorPrototype%': {
@@ -4940,6 +5018,7 @@ const permitted= {
4940
5018
  '@@toStringTag': 'string',
4941
5019
  // https://github.com/tc39/proposal-async-iterator-helpers
4942
5020
  toAsync: fn,
5021
+ // https://github.com/tc39/proposal-explicit-resource-management
4943
5022
  // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
4944
5023
  '@@dispose': false},
4945
5024
 
@@ -4984,6 +5063,7 @@ const permitted= {
4984
5063
  every: fn,
4985
5064
  find: fn,
4986
5065
  '@@toStringTag': 'string',
5066
+ // https://github.com/tc39/proposal-explicit-resource-management
4987
5067
  // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
4988
5068
  '@@asyncDispose': false},
4989
5069
 
@@ -5090,7 +5170,11 @@ const permitted= {
5090
5170
  // https://github.com/tc39/proposal-compartments
5091
5171
  bindings: getter,
5092
5172
  needsImport: getter,
5093
- needsImportMeta: getter},
5173
+ needsImportMeta: getter,
5174
+ // @endo/module-source provides a legacy interface
5175
+ imports: getter,
5176
+ exports: getter,
5177
+ reexports: getter},
5094
5178
 
5095
5179
 
5096
5180
  '%AbstractModuleSource%': {
@@ -5217,7 +5301,7 @@ const permitted= {
5217
5301
  })()
5218
5302
  ,
5219
5303
  // === functors[13] ===
5220
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let cauterizeProperty,TypeError,WeakSet,arrayFilter,create,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isObject,objectHasOwnProperty,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,permitted;$h͏_imports([["./cauterize-property.js", [["cauterizeProperty", [$h͏_a => (cauterizeProperty = $h͏_a)]]]],["./commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["WeakSet", [$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter", [$h͏_a => (arrayFilter = $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)]],["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)]]]],["./permits.js", [["constantProperties", [$h͏_a => (constantProperties = $h͏_a)]],["sharedGlobalPropertyNames", [$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]],["universalPropertyNames", [$h͏_a => (universalPropertyNames = $h͏_a)]],["permitted", [$h͏_a => (permitted = $h͏_a)]]]]]);
5304
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let cauterizeProperty,TypeError,WeakSet,arrayFilter,create,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isObject,objectHasOwnProperty,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,permitted;$h͏_imports([["./cauterize-property.js", [["cauterizeProperty", [$h͏_a => (cauterizeProperty = $h͏_a)]]]],["./commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["WeakSet", [$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter", [$h͏_a => (arrayFilter = $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)]],["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)]]]],["./permits.js", [["constantProperties", [$h͏_a => (constantProperties = $h͏_a)]],["sharedGlobalPropertyNames", [$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]],["universalPropertyNames", [$h͏_a => (universalPropertyNames = $h͏_a)]],["permitted", [$h͏_a => (permitted = $h͏_a)]]]]]);
5221
5305
 
5222
5306
 
5223
5307
 
@@ -5412,7 +5496,7 @@ const getGlobalIntrinsics= (globalObject, reporter)=> {
5412
5496
  })()
5413
5497
  ,
5414
5498
  // === functors[14] ===
5415
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let permitted,FunctionInstance,isAccessorPermit,Map,String,Symbol,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isObject,mapGet,objectHasOwnProperty,ownKeys,symbolKeyFor,cauterizeProperty;$h͏_imports([["./permits.js", [["permitted", [$h͏_a => (permitted = $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)]],["Symbol", [$h͏_a => (Symbol = $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)]]]],["./cauterize-property.js", [["cauterizeProperty", [$h͏_a => (cauterizeProperty = $h͏_a)]]]]]);
5499
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let permitted,FunctionInstance,isAccessorPermit,Map,String,Symbol,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isObject,mapGet,objectHasOwnProperty,ownKeys,symbolKeyFor,cauterizeProperty;$h͏_imports([["./permits.js", [["permitted", [$h͏_a => (permitted = $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)]],["Symbol", [$h͏_a => (Symbol = $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)]]]],["./cauterize-property.js", [["cauterizeProperty", [$h͏_a => (cauterizeProperty = $h͏_a)]]]]]);
5416
5500
 
5417
5501
 
5418
5502
 
@@ -5706,7 +5790,7 @@ function removeUnpermittedIntrinsics(
5706
5790
  })()
5707
5791
  ,
5708
5792
  // === functors[15] ===
5709
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let FERAL_FUNCTION,SyntaxError,TypeError,defineProperties,getPrototypeOf,setPrototypeOf,freeze;$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)]],["freeze", [$h͏_a => (freeze = $h͏_a)]]]]]);
5793
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let FERAL_FUNCTION,SyntaxError,TypeError,defineProperties,getPrototypeOf,setPrototypeOf,freeze;$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)]],["freeze", [$h͏_a => (freeze = $h͏_a)]]]]]);
5710
5794
 
5711
5795
 
5712
5796
 
@@ -5845,7 +5929,7 @@ function tameFunctionConstructors() {
5845
5929
  })()
5846
5930
  ,
5847
5931
  // === functors[16] ===
5848
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
5932
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
5849
5933
 
5850
5934
 
5851
5935
 
@@ -5855,10 +5939,7 @@ function tameFunctionConstructors() {
5855
5939
 
5856
5940
 
5857
5941
 
5858
- function tameDateConstructor(dateTaming= 'safe') {
5859
- if( dateTaming!== 'safe'&& dateTaming!== 'unsafe') {
5860
- throw TypeError( `unrecognized dateTaming ${dateTaming}`);
5861
- }
5942
+ function tameDateConstructor() {
5862
5943
  const OriginalDate= Date;
5863
5944
  const DatePrototype= OriginalDate.prototype;
5864
5945
 
@@ -5978,7 +6059,7 @@ function tameDateConstructor(dateTaming= 'safe') {
5978
6059
  })()
5979
6060
  ,
5980
6061
  // === functors[17] ===
5981
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
6062
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
5982
6063
 
5983
6064
 
5984
6065
 
@@ -5986,10 +6067,7 @@ function tameDateConstructor(dateTaming= 'safe') {
5986
6067
 
5987
6068
 
5988
6069
 
5989
- function tameMathObject(mathTaming= 'safe') {
5990
- if( mathTaming!== 'safe'&& mathTaming!== 'unsafe') {
5991
- throw TypeError( `unrecognized mathTaming ${mathTaming}`);
5992
- }
6070
+ function tameMathObject() {
5993
6071
  const originalMath= Math;
5994
6072
  const initialMath= originalMath; // to follow the naming pattern
5995
6073
 
@@ -6025,7 +6103,7 @@ function tameMathObject(mathTaming= 'safe') {
6025
6103
  })()
6026
6104
  ,
6027
6105
  // === functors[18] ===
6028
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
6106
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
6029
6107
 
6030
6108
 
6031
6109
 
@@ -6096,7 +6174,7 @@ function tameRegExpConstructor(regExpTaming= 'safe') {
6096
6174
  })()
6097
6175
  ,
6098
6176
  // === functors[19] ===
6099
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let toStringTagSymbol,iteratorSymbol;$h͏_imports([["./commons.js", [["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $h͏_a)]],["iteratorSymbol", [$h͏_a => (iteratorSymbol = $h͏_a)]]]]]);
6177
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let toStringTagSymbol,iteratorSymbol;$h͏_imports([["./commons.js", [["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $h͏_a)]],["iteratorSymbol", [$h͏_a => (iteratorSymbol = $h͏_a)]]]]]);
6100
6178
 
6101
6179
  /**
6102
6180
  * @module Exports {@code enablements}, a recursively defined
@@ -6340,7 +6418,7 @@ const severeEnablements= {
6340
6418
  })()
6341
6419
  ,
6342
6420
  // === functors[20] ===
6343
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,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)]],["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)]]]]]);
6421
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,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)]],["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)]]]]]);
6344
6422
 
6345
6423
 
6346
6424
 
@@ -6554,7 +6632,7 @@ function enablePropertyOverrides(
6554
6632
  })()
6555
6633
  ,
6556
6634
  // === functors[21] ===
6557
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
6635
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
6558
6636
 
6559
6637
 
6560
6638
 
@@ -6638,7 +6716,7 @@ function tameLocaleMethods(intrinsics, localeTaming= 'safe') {
6638
6716
  })()
6639
6717
  ,
6640
6718
  // === functors[22] ===
6641
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); /**
6719
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([]); /**
6642
6720
  * makeEvalFunction()
6643
6721
  * A safe version of the native eval function which relies on
6644
6722
  * the safety of safeEvaluate for confinement.
@@ -6668,7 +6746,7 @@ const makeEvalFunction= (safeEvaluate)=>{
6668
6746
  })()
6669
6747
  ,
6670
6748
  // === functors[23] ===
6671
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
6749
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
6672
6750
 
6673
6751
 
6674
6752
 
@@ -6749,7 +6827,7 @@ const makeFunctionConstructor= (safeEvaluate)=>{
6749
6827
  })()
6750
6828
  ,
6751
6829
  // === functors[24] ===
6752
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]],["./permits.js", [["constantProperties", [$h͏_a => (constantProperties = $h͏_a)]],["universalPropertyNames", [$h͏_a => (universalPropertyNames = $h͏_a)]]]]]);
6830
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]],["./permits.js", [["constantProperties", [$h͏_a => (constantProperties = $h͏_a)]],["universalPropertyNames", [$h͏_a => (universalPropertyNames = $h͏_a)]]]]]);
6753
6831
 
6754
6832
 
6755
6833
 
@@ -6868,7 +6946,10 @@ const setGlobalObjectMutableProperties= (
6868
6946
  makeCompartmentConstructor,
6869
6947
  intrinsics,
6870
6948
  markVirtualizedNativeFunction,
6871
- parentCompartment));
6949
+ {
6950
+ parentCompartment,
6951
+ enforceNew: true}));
6952
+
6872
6953
 
6873
6954
 
6874
6955
 
@@ -6924,8 +7005,7 @@ const setGlobalObjectEvaluators= (
6924
7005
  })()
6925
7006
  ,
6926
7007
  // === functors[25] ===
6927
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
6928
-
7008
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,globalThis,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)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
6929
7009
 
6930
7010
 
6931
7011
 
@@ -6939,6 +7019,14 @@ const setGlobalObjectEvaluators= (
6939
7019
 
6940
7020
  const { Fail, quote: q}= assert;
6941
7021
 
7022
+ /**
7023
+ * `freeze` but not `harden` the proxy target so it remains trapping.
7024
+ * Thus, it should not be shared outside this module.
7025
+ *
7026
+ * @see https://github.com/endojs/endo/blob/master/packages/ses/docs/preparing-for-stabilize.md
7027
+ */
7028
+ const objTarget= freeze({ __proto__: null});
7029
+
6942
7030
  /**
6943
7031
  * alwaysThrowHandler
6944
7032
  * This is an object that throws if any property is called. It's used as
@@ -6947,7 +7035,7 @@ const { Fail, quote: q}= assert;
6947
7035
  * create one and share it between all Proxy handlers.
6948
7036
  */
6949
7037
  const alwaysThrowHandler= new Proxy(
6950
- immutableObject,
7038
+ objTarget,
6951
7039
  freeze({
6952
7040
  get(_shadow, prop) {
6953
7041
  Fail `Please report unexpected scope handler trap: ${q(String(prop))}`;
@@ -7014,12 +7102,12 @@ const strictScopeTerminatorHandler= freeze(
7014
7102
 
7015
7103
 
7016
7104
  const strictScopeTerminator= new Proxy(
7017
- immutableObject,
7105
+ objTarget,
7018
7106
  strictScopeTerminatorHandler);$h͏_once.strictScopeTerminator(strictScopeTerminator);
7019
7107
  })()
7020
7108
  ,
7021
7109
  // === functors[26] ===
7022
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7110
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Proxy,create,freeze,getOwnPropertyDescriptors,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)]],["reflectSet", [$h͏_a => (reflectSet = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler", [$h͏_a => (strictScopeTerminatorHandler = $h͏_a)]],["alwaysThrowHandler", [$h͏_a => (alwaysThrowHandler = $h͏_a)]]]]]);
7023
7111
 
7024
7112
 
7025
7113
 
@@ -7031,6 +7119,13 @@ const strictScopeTerminator= new Proxy(
7031
7119
 
7032
7120
 
7033
7121
 
7122
+ /**
7123
+ * `freeze` but not `harden` the proxy target so it remains trapping.
7124
+ * Thus, it should not be shared outside this module.
7125
+ *
7126
+ * @see https://github.com/endojs/endo/blob/master/packages/ses/docs/preparing-for-stabilize.md
7127
+ */
7128
+ const objTarget= freeze({ __proto__: null});
7034
7129
 
7035
7130
  /*
7036
7131
  * createSloppyGlobalsScopeTerminator()
@@ -7066,7 +7161,7 @@ const createSloppyGlobalsScopeTerminator= (globalObject)=>{
7066
7161
 
7067
7162
 
7068
7163
  const sloppyGlobalsScopeTerminator= new Proxy(
7069
- immutableObject,
7164
+ objTarget,
7070
7165
  sloppyGlobalsScopeTerminatorHandler);
7071
7166
 
7072
7167
 
@@ -7076,7 +7171,7 @@ freeze(createSloppyGlobalsScopeTerminator);
7076
7171
  })()
7077
7172
  ,
7078
7173
  // === functors[27] ===
7079
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7174
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7080
7175
 
7081
7176
 
7082
7177
 
@@ -7168,7 +7263,7 @@ const makeEvalScopeKit= ()=> {
7168
7263
  })()
7169
7264
  ,
7170
7265
  // === functors[28] ===
7171
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7266
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7172
7267
 
7173
7268
  // Captures a key and value of the form #key=value or @key=value
7174
7269
  const sourceMetaEntryRegExp=
@@ -7221,7 +7316,7 @@ const getSourceURL= (src)=>{
7221
7316
  })()
7222
7317
  ,
7223
7318
  // === functors[29] ===
7224
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let FERAL_REG_EXP,SyntaxError,stringReplace,stringSearch,stringSlice,stringSplit,freeze,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)]],["freeze", [$h͏_a => (freeze = $h͏_a)]]]],["./get-source-url.js", [["getSourceURL", [$h͏_a => (getSourceURL = $h͏_a)]]]]]);
7319
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let FERAL_REG_EXP,SyntaxError,stringReplace,stringSearch,stringSlice,stringSplit,freeze,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)]],["freeze", [$h͏_a => (freeze = $h͏_a)]]]],["./get-source-url.js", [["getSourceURL", [$h͏_a => (getSourceURL = $h͏_a)]]]]]);
7225
7320
 
7226
7321
 
7227
7322
 
@@ -7471,7 +7566,8 @@ const mandatoryTransforms= (source)=>{
7471
7566
  * @returns {string}
7472
7567
  */$h͏_once.mandatoryTransforms(mandatoryTransforms);
7473
7568
  const applyTransforms= (source, transforms)=> {
7474
- for( const transform of transforms) {
7569
+ for( let i= 0, l= transforms.length; i< l; i+= 1) {
7570
+ const transform= transforms[i];
7475
7571
  source= transform(source);
7476
7572
  }
7477
7573
  return source;
@@ -7489,7 +7585,7 @@ $h͏_once.applyTransforms(applyTransforms);const transforms=freeze({
7489
7585
  })()
7490
7586
  ,
7491
7587
  // === functors[30] ===
7492
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let arrayFilter,arrayIncludes,getOwnPropertyDescriptor,getOwnPropertyNames,objectHasOwnProperty,regexpTest;$h͏_imports([["./commons.js", [["arrayFilter", [$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes", [$h͏_a => (arrayIncludes = $h͏_a)]],["getOwnPropertyDescriptor", [$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyNames", [$h͏_a => (getOwnPropertyNames = $h͏_a)]],["objectHasOwnProperty", [$h͏_a => (objectHasOwnProperty = $h͏_a)]],["regexpTest", [$h͏_a => (regexpTest = $h͏_a)]]]]]);
7588
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let arrayFilter,arrayIncludes,getOwnPropertyDescriptor,getOwnPropertyNames,objectHasOwnProperty,regexpTest;$h͏_imports([["./commons.js", [["arrayFilter", [$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes", [$h͏_a => (arrayIncludes = $h͏_a)]],["getOwnPropertyDescriptor", [$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyNames", [$h͏_a => (getOwnPropertyNames = $h͏_a)]],["objectHasOwnProperty", [$h͏_a => (objectHasOwnProperty = $h͏_a)]],["regexpTest", [$h͏_a => (regexpTest = $h͏_a)]]]]]);
7493
7589
 
7494
7590
 
7495
7591
 
@@ -7672,7 +7768,7 @@ const getScopeConstants= (globalObject, moduleLexicals= {})=> {
7672
7768
  })()
7673
7769
  ,
7674
7770
  // === functors[31] ===
7675
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7771
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7676
7772
 
7677
7773
 
7678
7774
 
@@ -7785,7 +7881,7 @@ const makeEvaluate= (context)=>{
7785
7881
  })()
7786
7882
  ,
7787
7883
  // === functors[32] ===
7788
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7884
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let apply,arrayFlatMap,freeze,identity,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h͏_imports([["./commons.js", [["apply", [$h͏_a => (apply = $h͏_a)]],["arrayFlatMap", [$h͏_a => (arrayFlatMap = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]],["identity", [$h͏_a => (identity = $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)]]]]]);
7789
7885
 
7790
7886
 
7791
7887
 
@@ -7849,10 +7945,12 @@ const makeSafeEvaluator= ({
7849
7945
 
7850
7946
  // Execute the mandatory transforms last to ensure that any rewritten code
7851
7947
  // meets those mandatory requirements.
7852
- source= applyTransforms(source, [
7853
- ...localTransforms,
7854
- ...globalTransforms,
7855
- mandatoryTransforms]);
7948
+ source= applyTransforms(
7949
+ source,
7950
+ arrayFlatMap(
7951
+ [localTransforms, globalTransforms, [mandatoryTransforms]],
7952
+ identity));
7953
+
7856
7954
 
7857
7955
 
7858
7956
  let err;
@@ -7898,7 +7996,7 @@ const makeSafeEvaluator= ({
7898
7996
  })()
7899
7997
  ,
7900
7998
  // === functors[33] ===
7901
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7999
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
7902
8000
 
7903
8001
 
7904
8002
 
@@ -7951,7 +8049,7 @@ const tameFunctionToString= ()=> {
7951
8049
  })()
7952
8050
  ,
7953
8051
  // === functors[34] ===
7954
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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);
8052
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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);
7955
8053
 
7956
8054
 
7957
8055
 
@@ -7999,7 +8097,7 @@ function tameDomains(domainTaming= 'safe') {
7999
8097
  })()
8000
8098
  ,
8001
8099
  // === functors[35] ===
8002
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let functionPrototype,getPrototypeOf,globalThis,objectPrototype,setPrototypeOf;$h͏_imports([["./commons.js", [["functionPrototype", [$h͏_a => (functionPrototype = $h͏_a)]],["getPrototypeOf", [$h͏_a => (getPrototypeOf = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]],["objectPrototype", [$h͏_a => (objectPrototype = $h͏_a)]],["setPrototypeOf", [$h͏_a => (setPrototypeOf = $h͏_a)]]]]]);
8100
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let functionPrototype,getPrototypeOf,globalThis,objectPrototype,setPrototypeOf;$h͏_imports([["./commons.js", [["functionPrototype", [$h͏_a => (functionPrototype = $h͏_a)]],["getPrototypeOf", [$h͏_a => (getPrototypeOf = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]],["objectPrototype", [$h͏_a => (objectPrototype = $h͏_a)]],["setPrototypeOf", [$h͏_a => (setPrototypeOf = $h͏_a)]]]]]);
8003
8101
 
8004
8102
 
8005
8103
 
@@ -8053,7 +8151,7 @@ const tameModuleSource= ()=> {
8053
8151
  })()
8054
8152
  ,
8055
8153
  // === functors[36] ===
8056
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let WeakSet,arrayFilter,arrayFlatMap,arrayMap,arrayPop,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,stringIncludes,stringSplit,weaksetAdd,weaksetHas;$h͏_imports([["../commons.js", [["WeakSet", [$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter", [$h͏_a => (arrayFilter = $h͏_a)]],["arrayFlatMap", [$h͏_a => (arrayFlatMap = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["arrayPop", [$h͏_a => (arrayPop = $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)]],["stringIncludes", [$h͏_a => (stringIncludes = $h͏_a)]],["stringSplit", [$h͏_a => (stringSplit = $h͏_a)]],["weaksetAdd", [$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas", [$h͏_a => (weaksetHas = $h͏_a)]]]]]);
8154
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let WeakSet,arrayFilter,arrayFlatMap,arrayMap,arrayPop,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,stringIncludes,stringSplit,weaksetAdd,weaksetHas;$h͏_imports([["../commons.js", [["WeakSet", [$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter", [$h͏_a => (arrayFilter = $h͏_a)]],["arrayFlatMap", [$h͏_a => (arrayFlatMap = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["arrayPop", [$h͏_a => (arrayPop = $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)]],["stringIncludes", [$h͏_a => (stringIncludes = $h͏_a)]],["stringSplit", [$h͏_a => (stringSplit = $h͏_a)]],["weaksetAdd", [$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas", [$h͏_a => (weaksetHas = $h͏_a)]]]]]);
8057
8155
 
8058
8156
 
8059
8157
 
@@ -8083,6 +8181,20 @@ const tameModuleSource= ()=> {
8083
8181
  * @import {ErrorInfo, ErrorInfoKind, LogRecord, NoteCallback, LoggedErrorHandler, MakeCausalConsole, MakeLoggingConsoleKit} from "./internal-types.js";
8084
8182
  */
8085
8183
 
8184
+ /**
8185
+ * Explicitly set a function's name, supporting use of arrow functions for which
8186
+ * source text doesn't include a name and no initial name is set by
8187
+ * NamedEvaluation
8188
+ * https://tc39.es/ecma262/multipage/syntax-directed-operations.html#sec-runtime-semantics-namedevaluation
8189
+ * Instead, we hope that tooling uses only the explicit `name` property.
8190
+ *
8191
+ * @template {Function} F
8192
+ * @param {string} name
8193
+ * @param {F} fn
8194
+ * @returns {F}
8195
+ */
8196
+ const defineName= (name, fn)=> defineProperty(fn, 'name', { value: name});
8197
+
8086
8198
  // For our internal debugging purposes, uncomment
8087
8199
  // const internalDebugConsole = console;
8088
8200
 
@@ -8214,16 +8326,12 @@ const makeLoggingConsoleKit= (
8214
8326
 
8215
8327
  const loggingConsole= fromEntries(
8216
8328
  arrayMap(consoleMethodPermits, ([name, _])=> {
8217
- // Use an arrow function so that it doesn't come with its own name in
8218
- // its printed form. Instead, we're hoping that tooling uses only
8219
- // the `.name` property set below.
8220
8329
  /**
8221
8330
  * @param {...any} args
8222
8331
  */
8223
- const method= (...args)=> {
8332
+ const method= defineName(name, (...args)=> {
8224
8333
  arrayPush(logArray, [name, ...args]);
8225
- };
8226
- defineProperty(method, 'name', { value: name});
8334
+ });
8227
8335
  return [name, freeze(method)];
8228
8336
  }));
8229
8337
 
@@ -8343,8 +8451,10 @@ const makeCausalConsole= (baseConsole, loggedErrorHandler)=> {
8343
8451
  logError(severity, subError);
8344
8452
  }
8345
8453
  }finally {
8346
- // eslint-disable-next-line @endo/no-polymorphic-call
8347
- baseConsole.groupEnd();
8454
+ if( baseConsole.groupEnd) {
8455
+ // eslint-disable-next-line @endo/no-polymorphic-call
8456
+ baseConsole.groupEnd();
8457
+ }
8348
8458
  }
8349
8459
  };
8350
8460
 
@@ -8423,7 +8533,7 @@ const makeCausalConsole= (baseConsole, loggedErrorHandler)=> {
8423
8533
  /**
8424
8534
  * @param {...any} logArgs
8425
8535
  */
8426
- const levelMethod= (...logArgs)=> {
8536
+ const levelMethod= defineName(level, (...logArgs)=> {
8427
8537
  const subErrors= [];
8428
8538
  const argTags= extractErrorArgs(logArgs, subErrors);
8429
8539
  if( baseConsole[level]) {
@@ -8432,8 +8542,7 @@ const makeCausalConsole= (baseConsole, loggedErrorHandler)=> {
8432
8542
  }
8433
8543
  // @ts-expect-error ConsoleProp vs LogSeverity mismatch
8434
8544
  logSubErrors(level, subErrors);
8435
- };
8436
- defineProperty(levelMethod, 'name', { value: level});
8545
+ });
8437
8546
  return [level, freeze(levelMethod)];
8438
8547
  });
8439
8548
  const otherMethodNames= arrayFilter(
@@ -8444,13 +8553,12 @@ const makeCausalConsole= (baseConsole, loggedErrorHandler)=> {
8444
8553
  /**
8445
8554
  * @param {...any} args
8446
8555
  */
8447
- const otherMethod= (...args)=> {
8556
+ const otherMethod= defineName(name, (...args)=> {
8448
8557
  // @ts-ignore
8449
8558
  // eslint-disable-next-line @endo/no-polymorphic-call
8450
8559
  baseConsole[name](...args);
8451
8560
  return undefined;
8452
- };
8453
- defineProperty(otherMethod, 'name', { value: name});
8561
+ });
8454
8562
  return [name, freeze(otherMethod)];
8455
8563
  });
8456
8564
 
@@ -8511,23 +8619,21 @@ const defineCausalConsoleFromLogger= (loggedErrorHandler)=>{
8511
8619
  }
8512
8620
  return tlogger(...args);
8513
8621
  };
8514
- const makeNamed= (name, fn)=>
8515
- ({ [name]: (...args)=> fn(...args)})[ name];
8516
8622
 
8517
8623
  const baseConsole= fromEntries([
8518
8624
  ...arrayMap(consoleLevelMethods, ([name])=> [
8519
8625
  name,
8520
- makeNamed(name, logWithIndent)]),
8626
+ defineName(name, (...args)=> logWithIndent(...args))]),
8521
8627
 
8522
8628
  ...arrayMap(consoleOtherMethods, ([name])=> [
8523
8629
  name,
8524
- makeNamed(name, (...args)=> logWithIndent(name, ...args))])]);
8630
+ defineName(name, (...args)=> logWithIndent(name, ...args))])]);
8525
8631
 
8526
8632
 
8527
8633
  // https://console.spec.whatwg.org/#grouping
8528
8634
  for( const name of ['group', 'groupCollapsed']) {
8529
8635
  if( baseConsole[name]) {
8530
- baseConsole[name]= makeNamed(name, (...args)=> {
8636
+ baseConsole[name]= defineName(name, (...args)=> {
8531
8637
  if( args.length>= 1) {
8532
8638
  // Prefix the logged data with "group" or "groupCollapsed".
8533
8639
  logWithIndent(...args);
@@ -8537,16 +8643,17 @@ const defineCausalConsoleFromLogger= (loggedErrorHandler)=>{
8537
8643
  arrayPush(indents, ' ');
8538
8644
  });
8539
8645
  }else {
8540
- baseConsole[name]= ()=> { };
8646
+ baseConsole[name]= defineName(name, ()=> { });
8541
8647
  }
8542
8648
  }
8543
- if( baseConsole.groupEnd) {
8544
- baseConsole.groupEnd= makeNamed('groupEnd', (...args)=> {
8545
- arrayPop(indents);
8546
- });
8547
- }else {
8548
- baseConsole.groupEnd= ()=> { };
8549
- }
8649
+ baseConsole.groupEnd= defineName(
8650
+ 'groupEnd',
8651
+ baseConsole.groupEnd?
8652
+ (...args)=> {
8653
+ arrayPop(indents);
8654
+ }:
8655
+ ()=> { });
8656
+
8550
8657
  harden(baseConsole);
8551
8658
  const causalConsole= makeCausalConsole(
8552
8659
  /** @type {VirtualConsole} */ baseConsole,
@@ -8571,14 +8678,14 @@ const filterConsole= (baseConsole, filter, _topic= undefined)=> {
8571
8678
  /**
8572
8679
  * @param {...any} args
8573
8680
  */
8574
- const method= (...args)=> {
8681
+ const method= defineName(name, (...args)=> {
8575
8682
  // eslint-disable-next-line @endo/no-polymorphic-call
8576
8683
  if( severity=== undefined|| filter.canLog(severity)) {
8577
8684
  // @ts-ignore
8578
8685
  // eslint-disable-next-line @endo/no-polymorphic-call
8579
8686
  baseConsole[name](...args);
8580
8687
  }
8581
- };
8688
+ });
8582
8689
  return [name, freeze(method)];
8583
8690
  });
8584
8691
  const filteringConsole= fromEntries(methods);
@@ -8588,7 +8695,7 @@ freeze(filterConsole);
8588
8695
  })()
8589
8696
  ,
8590
8697
  // === functors[37] ===
8591
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
8698
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
8592
8699
 
8593
8700
 
8594
8701
 
@@ -8713,7 +8820,7 @@ const makeRejectionHandlers= (reportReason)=>{
8713
8820
  })()
8714
8821
  ,
8715
8822
  // === functors[38] ===
8716
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError,apply,defineProperty,freeze,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h͏_imports([["../commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["apply", [$h͏_a => (apply = $h͏_a)]],["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]],["freeze", [$h͏_a => (freeze = $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)]]]]]);
8823
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError,apply,defineProperty,freeze,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h͏_imports([["../commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["apply", [$h͏_a => (apply = $h͏_a)]],["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]],["freeze", [$h͏_a => (freeze = $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)]]]]]);
8717
8824
 
8718
8825
 
8719
8826
 
@@ -8917,7 +9024,7 @@ const tameConsole= (
8917
9024
  })()
8918
9025
  ,
8919
9026
  // === functors[39] ===
8920
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,regexpTest,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$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)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]]]]]);
9027
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,regexpTest,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$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)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]]]]]);
8921
9028
 
8922
9029
 
8923
9030
 
@@ -9263,7 +9370,7 @@ const tameV8ErrorConstructor= (
9263
9370
  })()
9264
9371
  ,
9265
9372
  // === functors[40] ===
9266
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let FERAL_ERROR,TypeError,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,getOwnPropertyDescriptors,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)]],["getOwnPropertyDescriptors", [$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["../permits.js", [["NativeErrors", [$h͏_a => (NativeErrors = $h͏_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor", [$h͏_a => (tameV8ErrorConstructor = $h͏_a)]]]]]);
9373
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let FERAL_ERROR,TypeError,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,getOwnPropertyDescriptors,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)]],["getOwnPropertyDescriptors", [$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["../permits.js", [["NativeErrors", [$h͏_a => (NativeErrors = $h͏_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor", [$h͏_a => (tameV8ErrorConstructor = $h͏_a)]]]]]);
9267
9374
 
9268
9375
 
9269
9376
 
@@ -9561,7 +9668,7 @@ function tameErrorConstructor(
9561
9668
  })()
9562
9669
  ,
9563
9670
  // === functors[41] ===
9564
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let getenv,Map,Set,TypeError,arrayJoin,arrayMap,arrayPush,arraySome,create,freeze,generatorNext,generatorThrow,getOwnPropertyNames,isArray,isObject,mapGet,mapHas,mapSet,promiseThen,setAdd,values,weakmapGet,weakmapHas,makeError,annotateError,q,b,X;$h͏_imports([["@endo/env-options", [["getEnvironmentOption", [$h͏_a => (getenv = $h͏_a)]]]],["./commons.js", [["Map", [$h͏_a => (Map = $h͏_a)]],["Set", [$h͏_a => (Set = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["arrayJoin", [$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["arrayPush", [$h͏_a => (arrayPush = $h͏_a)]],["arraySome", [$h͏_a => (arraySome = $h͏_a)]],["create", [$h͏_a => (create = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]],["generatorNext", [$h͏_a => (generatorNext = $h͏_a)]],["generatorThrow", [$h͏_a => (generatorThrow = $h͏_a)]],["getOwnPropertyNames", [$h͏_a => (getOwnPropertyNames = $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)]],["promiseThen", [$h͏_a => (promiseThen = $h͏_a)]],["setAdd", [$h͏_a => (setAdd = $h͏_a)]],["values", [$h͏_a => (values = $h͏_a)]],["weakmapGet", [$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas", [$h͏_a => (weakmapHas = $h͏_a)]]]],["./error/assert.js", [["makeError", [$h͏_a => (makeError = $h͏_a)]],["annotateError", [$h͏_a => (annotateError = $h͏_a)]],["q", [$h͏_a => (q = $h͏_a)]],["b", [$h͏_a => (b = $h͏_a)]],["X", [$h͏_a => (X = $h͏_a)]]]]]);
9671
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let getenv,Map,Set,TypeError,arrayJoin,arrayMap,arrayPush,arraySome,create,freeze,generatorNext,generatorThrow,getOwnPropertyNames,isArray,isObject,mapGet,mapHas,mapSet,promiseThen,setAdd,values,weakmapGet,weakmapHas,makeError,annotateError,q,b,X;$h͏_imports([["@endo/env-options", [["getEnvironmentOption", [$h͏_a => (getenv = $h͏_a)]]]],["./commons.js", [["Map", [$h͏_a => (Map = $h͏_a)]],["Set", [$h͏_a => (Set = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["arrayJoin", [$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["arrayPush", [$h͏_a => (arrayPush = $h͏_a)]],["arraySome", [$h͏_a => (arraySome = $h͏_a)]],["create", [$h͏_a => (create = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]],["generatorNext", [$h͏_a => (generatorNext = $h͏_a)]],["generatorThrow", [$h͏_a => (generatorThrow = $h͏_a)]],["getOwnPropertyNames", [$h͏_a => (getOwnPropertyNames = $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)]],["promiseThen", [$h͏_a => (promiseThen = $h͏_a)]],["setAdd", [$h͏_a => (setAdd = $h͏_a)]],["values", [$h͏_a => (values = $h͏_a)]],["weakmapGet", [$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas", [$h͏_a => (weakmapHas = $h͏_a)]]]],["./error/assert.js", [["makeError", [$h͏_a => (makeError = $h͏_a)]],["annotateError", [$h͏_a => (annotateError = $h͏_a)]],["q", [$h͏_a => (q = $h͏_a)]],["b", [$h͏_a => (b = $h͏_a)]],["X", [$h͏_a => (X = $h͏_a)]]]]]);
9565
9672
 
9566
9673
 
9567
9674
 
@@ -10225,7 +10332,7 @@ const loadNow= (
10225
10332
  })()
10226
10333
  ,
10227
10334
  // === functors[42] ===
10228
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,toStringTagSymbol,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)]],["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapSet", [$h͏_a => (weakmapSet = $h͏_a)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
10335
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,toStringTagSymbol,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)]],["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapSet", [$h͏_a => (weakmapSet = $h͏_a)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
10229
10336
 
10230
10337
 
10231
10338
 
@@ -10428,7 +10535,7 @@ const getDeferredExports= (
10428
10535
  })()
10429
10536
  ,
10430
10537
  // === functors[43] ===
10431
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError,arrayPush,create,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)]],["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)]]]]]);
10538
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError,arrayPush,create,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)]],["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)]]]]]);
10432
10539
 
10433
10540
 
10434
10541
 
@@ -10524,7 +10631,9 @@ const compartmentEvaluate= (compartmentFields, source, options)=> {
10524
10631
  })()
10525
10632
  ,
10526
10633
  // === functors[44] ===
10527
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
10634
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; 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)]]]]]);
10635
+
10636
+
10528
10637
 
10529
10638
 
10530
10639
 
@@ -10657,13 +10766,15 @@ $h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleI
10657
10766
  __fixedExportMap__: fixedExportMap= {},
10658
10767
  __liveExportMap__: liveExportMap= {},
10659
10768
  __reexportMap__: reexportMap= {},
10769
+ __needsImport__: needsImport= false,
10660
10770
  __needsImportMeta__: needsImportMeta= false,
10661
10771
  __syncModuleFunctor__}=
10662
10772
  moduleSource;
10663
10773
 
10664
10774
  const compartmentFields= weakmapGet(privateFields, compartment);
10665
10775
 
10666
- const { __shimTransforms__, importMetaHook}= compartmentFields;
10776
+ const { __shimTransforms__, resolveHook, importMetaHook, compartmentImport}=
10777
+ compartmentFields;
10667
10778
 
10668
10779
  const { exportsProxy, exportsTarget, activate}= getDeferredExports(
10669
10780
  compartment,
@@ -10697,6 +10808,14 @@ $h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleI
10697
10808
  importMetaHook(moduleSpecifier, importMeta);
10698
10809
  }
10699
10810
 
10811
+ /** @type {(fullSpecifier: string) => Promise<ModuleExportsNamespace>} */
10812
+ let dynamicImport;
10813
+ if( needsImport) {
10814
+ /** @param {string} importSpecifier */
10815
+ dynamicImport= async(importSpecifier)=>
10816
+ compartmentImport(resolveHook(importSpecifier, moduleSpecifier));
10817
+ }
10818
+
10700
10819
  // {_localName_: [{get, set, notify}]} used to merge all the export updaters.
10701
10820
  const localGetNotify= create(null);
10702
10821
 
@@ -10988,6 +11107,7 @@ $h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleI
10988
11107
  imports: freeze(imports),
10989
11108
  onceVar: freeze(onceVar),
10990
11109
  liveVar: freeze(liveVar),
11110
+ import: dynamicImport,
10991
11111
  importMeta}));
10992
11112
 
10993
11113
 
@@ -11011,7 +11131,7 @@ $h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleI
11011
11131
  })()
11012
11132
  ,
11013
11133
  // === functors[45] ===
11014
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let assert,makeModuleInstance,makeVirtualModuleInstance,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)]],["makeVirtualModuleInstance", [$h͏_a => (makeVirtualModuleInstance = $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)]]]]]);
11134
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let assert,makeModuleInstance,makeVirtualModuleInstance,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)]],["makeVirtualModuleInstance", [$h͏_a => (makeVirtualModuleInstance = $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)]]]]]);
11015
11135
 
11016
11136
 
11017
11137
 
@@ -11173,7 +11293,27 @@ const instantiate= (
11173
11293
  })()
11174
11294
  ,
11175
11295
  // === functors[46] ===
11176
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Map,TypeError,WeakMap,assign,defineProperties,promiseThen,toStringTagSymbol,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,assert,assertEqual,sharedGlobalPropertyNames,load,loadNow,link,getDeferredExports,compartmentEvaluate,makeSafeEvaluator;$h͏_imports([["./commons.js", [["Map", [$h͏_a => (Map = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["WeakMap", [$h͏_a => (WeakMap = $h͏_a)]],["assign", [$h͏_a => (assign = $h͏_a)]],["defineProperties", [$h͏_a => (defineProperties = $h͏_a)]],["promiseThen", [$h͏_a => (promiseThen = $h͏_a)]],["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $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)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]],["assertEqual", [$h͏_a => (assertEqual = $h͏_a)]]]],["./permits.js", [["sharedGlobalPropertyNames", [$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]]]],["./module-load.js", [["load", [$h͏_a => (load = $h͏_a)]],["loadNow", [$h͏_a => (loadNow = $h͏_a)]]]],["./module-link.js", [["link", [$h͏_a => (link = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h͏_a => (getDeferredExports = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h͏_a => (compartmentEvaluate = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);
11296
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Map,TypeError,WeakMap,arrayFlatMap,assign,defineProperties,identity,promiseThen,toStringTagSymbol,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,assert,assertEqual,q,sharedGlobalPropertyNames,load,loadNow,link,getDeferredExports,compartmentEvaluate,makeSafeEvaluator;$h͏_imports([["./commons.js", [["Map", [$h͏_a => (Map = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["WeakMap", [$h͏_a => (WeakMap = $h͏_a)]],["arrayFlatMap", [$h͏_a => (arrayFlatMap = $h͏_a)]],["assign", [$h͏_a => (assign = $h͏_a)]],["defineProperties", [$h͏_a => (defineProperties = $h͏_a)]],["identity", [$h͏_a => (identity = $h͏_a)]],["promiseThen", [$h͏_a => (promiseThen = $h͏_a)]],["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $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)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]],["assertEqual", [$h͏_a => (assertEqual = $h͏_a)]],["q", [$h͏_a => (q = $h͏_a)]]]],["./permits.js", [["sharedGlobalPropertyNames", [$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]]]],["./module-load.js", [["load", [$h͏_a => (load = $h͏_a)]],["loadNow", [$h͏_a => (loadNow = $h͏_a)]]]],["./module-link.js", [["link", [$h͏_a => (link = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h͏_a => (getDeferredExports = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h͏_a => (compartmentEvaluate = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);
11297
+
11298
+
11299
+
11300
+
11301
+
11302
+
11303
+
11304
+
11305
+
11306
+
11307
+
11308
+
11309
+
11310
+
11311
+
11312
+
11313
+
11314
+
11315
+
11316
+
11177
11317
 
11178
11318
 
11179
11319
 
@@ -11202,7 +11342,26 @@ const instantiate= (
11202
11342
 
11203
11343
 
11204
11344
 
11205
- /** @import {ModuleDescriptor} from '../types.js' */
11345
+
11346
+
11347
+
11348
+
11349
+
11350
+
11351
+
11352
+
11353
+
11354
+
11355
+
11356
+
11357
+
11358
+
11359
+
11360
+
11361
+
11362
+
11363
+
11364
+ /** @import {ModuleDescriptor, ModuleExportsNamespace} from '../types.js' */
11206
11365
 
11207
11366
  // moduleAliases associates every public module exports namespace with its
11208
11367
  // corresponding compartment and specifier so they can be used to link modules
@@ -11346,7 +11505,9 @@ defineProperties(InertCompartment, {
11346
11505
  * @param {MakeCompartmentConstructor} targetMakeCompartmentConstructor
11347
11506
  * @param {Record<string, any>} intrinsics
11348
11507
  * @param {(object: object) => void} markVirtualizedNativeFunction
11349
- * @param {Compartment} [parentCompartment]
11508
+ * @param {object} [options]
11509
+ * @param {Compartment} [options.parentCompartment]
11510
+ * @param {boolean} [options.enforceNew]
11350
11511
  * @returns {Compartment['constructor']}
11351
11512
  */
11352
11513
 
@@ -11359,7 +11520,7 @@ defineProperties(InertCompartment, {
11359
11520
  // positional arguments, this function detects the temporary sigil __options__
11360
11521
  // on the first argument and coerces compartments arguments into a single
11361
11522
  // compartments object.
11362
- const compartmentOptions= (...args)=> {
11523
+ const compartmentOptions= (...args)=> {
11363
11524
  if( args.length=== 0) {
11364
11525
  return {};
11365
11526
  }
@@ -11399,15 +11560,15 @@ const compartmentOptions= (...args)=> {
11399
11560
  }
11400
11561
  };
11401
11562
 
11402
- /** @type {MakeCompartmentConstructor} */
11563
+ /** @type {MakeCompartmentConstructor} */$h͏_once.compartmentOptions(compartmentOptions);
11403
11564
  const makeCompartmentConstructor= (
11404
11565
  targetMakeCompartmentConstructor,
11405
11566
  intrinsics,
11406
11567
  markVirtualizedNativeFunction,
11407
- parentCompartment= undefined)=>
11568
+ { parentCompartment= undefined, enforceNew= false}= {})=>
11408
11569
  {
11409
11570
  function Compartment(...args) {
11410
- if( new.target=== undefined) {
11571
+ if( enforceNew&& new.target=== undefined) {
11411
11572
  throw TypeError(
11412
11573
  "Class constructor Compartment cannot be invoked without 'new'");
11413
11574
 
@@ -11427,7 +11588,10 @@ const makeCompartmentConstructor= (
11427
11588
  importMetaHook,
11428
11589
  __noNamespaceBox__: noNamespaceBox= false}=
11429
11590
  compartmentOptions(...args);
11430
- const globalTransforms= [...transforms, ...__shimTransforms__];
11591
+ const globalTransforms= arrayFlatMap(
11592
+ [transforms, __shimTransforms__],
11593
+ identity);
11594
+
11431
11595
  const endowments= { __proto__: null, ...endowmentsOption};
11432
11596
  const moduleMap= { __proto__: null, ...moduleMapOption};
11433
11597
 
@@ -11472,6 +11636,43 @@ const makeCompartmentConstructor= (
11472
11636
 
11473
11637
  assign(globalObject, endowments);
11474
11638
 
11639
+ /**
11640
+ * In support dynamic import in a module source loaded by this compartment,
11641
+ * like `await import(importSpecifier)`, induces this compartment to import
11642
+ * a module, returning a promise for the resulting module exports
11643
+ * namespace.
11644
+ * Unlike `compartment.import`, never creates a box object for the
11645
+ * namespace as that behavior is deprecated and inconsistent with the
11646
+ * standard behavior of dynamic import.
11647
+ * Obliges the caller to resolve import specifiers to their corresponding
11648
+ * full specifier.
11649
+ * That is, every module must have its own dynamic import function that
11650
+ * closes over the surrounding module's full module specifier and calls
11651
+ * through to this function.
11652
+ * @param {string} fullSpecifier - A full specifier is a key in the
11653
+ * compartment's module memo.
11654
+ * The method `compartment.import` accepts a full specifier, but dynamic
11655
+ * import accepts an import specifier and resolves it to a full specifier
11656
+ * relative to the calling module's full specifier.
11657
+ * @returns {Promise<ModuleExportsNamespace>}
11658
+ */
11659
+ const compartmentImport= async(fullSpecifier)=> {
11660
+ if( typeof resolveHook!== 'function') {
11661
+ throw TypeError(
11662
+ `Compartment does not support dynamic import: no configured resolveHook for compartment ${q(name)}`);
11663
+
11664
+ }
11665
+ await load(privateFields, moduleAliases, this, fullSpecifier);
11666
+ const { execute, exportsProxy}= link(
11667
+ privateFields,
11668
+ moduleAliases,
11669
+ this,
11670
+ fullSpecifier);
11671
+
11672
+ execute();
11673
+ return exportsProxy;
11674
+ };
11675
+
11475
11676
  weakmapSet(privateFields, this, {
11476
11677
  name: `${name}`,
11477
11678
  globalTransforms,
@@ -11488,7 +11689,8 @@ const makeCompartmentConstructor= (
11488
11689
  deferredExports,
11489
11690
  instances,
11490
11691
  parentCompartment,
11491
- noNamespaceBox});
11692
+ noNamespaceBox,
11693
+ compartmentImport});
11492
11694
 
11493
11695
  }
11494
11696
 
@@ -11499,7 +11701,7 @@ const makeCompartmentConstructor= (
11499
11701
  })()
11500
11702
  ,
11501
11703
  // === functors[47] ===
11502
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,globalThis,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)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["InertCompartment", [$h͏_a => (InertCompartment = $h͏_a)]]]]]);
11704
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,globalThis,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)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["InertCompartment", [$h͏_a => (InertCompartment = $h͏_a)]]]]]);
11503
11705
 
11504
11706
 
11505
11707
 
@@ -11667,7 +11869,7 @@ const getAnonymousIntrinsics= ()=> {
11667
11869
  })()
11668
11870
  ,
11669
11871
  // === functors[48] ===
11670
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError,freeze;$h͏_imports([["./commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]]]]]);
11872
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError,freeze;$h͏_imports([["./commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["freeze", [$h͏_a => (freeze = $h͏_a)]]]]]);
11671
11873
 
11672
11874
 
11673
11875
  /** @import {Harden} from '../types.js'; */
@@ -11703,7 +11905,7 @@ freeze(tameHarden);
11703
11905
  })()
11704
11906
  ,
11705
11907
  // === functors[49] ===
11706
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap,functionBind;$h͏_imports([["./commons.js", [["Symbol", [$h͏_a => (Symbol = $h͏_a)]],["entries", [$h͏_a => (entries = $h͏_a)]],["fromEntries", [$h͏_a => (fromEntries = $h͏_a)]],["getOwnPropertyDescriptors", [$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["defineProperties", [$h͏_a => (defineProperties = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["functionBind", [$h͏_a => (functionBind = $h͏_a)]]]]]);
11908
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap,functionBind;$h͏_imports([["./commons.js", [["Symbol", [$h͏_a => (Symbol = $h͏_a)]],["entries", [$h͏_a => (entries = $h͏_a)]],["fromEntries", [$h͏_a => (fromEntries = $h͏_a)]],["getOwnPropertyDescriptors", [$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["defineProperties", [$h͏_a => (defineProperties = $h͏_a)]],["arrayMap", [$h͏_a => (arrayMap = $h͏_a)]],["functionBind", [$h͏_a => (functionBind = $h͏_a)]]]]]);
11707
11909
 
11708
11910
 
11709
11911
 
@@ -11770,7 +11972,7 @@ const tameSymbolConstructor= ()=> {
11770
11972
  })()
11771
11973
  ,
11772
11974
  // === functors[50] ===
11773
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let getOwnPropertyDescriptor,apply,defineProperty,toStringTagSymbol;$h͏_imports([["./commons.js", [["getOwnPropertyDescriptor", [$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["apply", [$h͏_a => (apply = $h͏_a)]],["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]],["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);
11975
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let getOwnPropertyDescriptor,apply,defineProperty,toStringTagSymbol;$h͏_imports([["./commons.js", [["getOwnPropertyDescriptor", [$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["apply", [$h͏_a => (apply = $h͏_a)]],["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]],["toStringTagSymbol", [$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);
11774
11976
 
11775
11977
 
11776
11978
 
@@ -11983,7 +12185,7 @@ const tameFauxDataProperties= (intrinsics)=>{
11983
12185
  })()
11984
12186
  ,
11985
12187
  // === functors[51] ===
11986
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let defineProperty,iteratorPrototype,iteratorSymbol,objectHasOwnProperty;$h͏_imports([["./commons.js", [["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]],["iteratorPrototype", [$h͏_a => (iteratorPrototype = $h͏_a)]],["iteratorSymbol", [$h͏_a => (iteratorSymbol = $h͏_a)]],["objectHasOwnProperty", [$h͏_a => (objectHasOwnProperty = $h͏_a)]]]]]);
12188
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let defineProperty,iteratorPrototype,iteratorSymbol,objectHasOwnProperty;$h͏_imports([["./commons.js", [["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]],["iteratorPrototype", [$h͏_a => (iteratorPrototype = $h͏_a)]],["iteratorSymbol", [$h͏_a => (iteratorSymbol = $h͏_a)]],["objectHasOwnProperty", [$h͏_a => (objectHasOwnProperty = $h͏_a)]]]]]);
11987
12189
 
11988
12190
 
11989
12191
 
@@ -12015,7 +12217,7 @@ const tameRegeneratorRuntime= ()=> {
12015
12217
  })()
12016
12218
  ,
12017
12219
  // === functors[52] ===
12018
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let ArrayBuffer,arrayBufferPrototype,arrayBufferSlice,arrayBufferGetByteLength,Uint8Array,typedArraySet,globalThis,TypeError,defineProperty;$h͏_imports([["./commons.js", [["ArrayBuffer", [$h͏_a => (ArrayBuffer = $h͏_a)]],["arrayBufferPrototype", [$h͏_a => (arrayBufferPrototype = $h͏_a)]],["arrayBufferSlice", [$h͏_a => (arrayBufferSlice = $h͏_a)]],["arrayBufferGetByteLength", [$h͏_a => (arrayBufferGetByteLength = $h͏_a)]],["Uint8Array", [$h͏_a => (Uint8Array = $h͏_a)]],["typedArraySet", [$h͏_a => (typedArraySet = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]]]]]);
12220
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let ArrayBuffer,arrayBufferPrototype,arrayBufferSlice,arrayBufferGetByteLength,Uint8Array,typedArraySet,globalThis,TypeError,defineProperty;$h͏_imports([["./commons.js", [["ArrayBuffer", [$h͏_a => (ArrayBuffer = $h͏_a)]],["arrayBufferPrototype", [$h͏_a => (arrayBufferPrototype = $h͏_a)]],["arrayBufferSlice", [$h͏_a => (arrayBufferSlice = $h͏_a)]],["arrayBufferGetByteLength", [$h͏_a => (arrayBufferGetByteLength = $h͏_a)]],["Uint8Array", [$h͏_a => (Uint8Array = $h͏_a)]],["typedArraySet", [$h͏_a => (typedArraySet = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]],["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["defineProperty", [$h͏_a => (defineProperty = $h͏_a)]]]]]);
12019
12221
 
12020
12222
 
12021
12223
 
@@ -12104,7 +12306,7 @@ const shimArrayBufferTransfer= ()=> {
12104
12306
  })()
12105
12307
  ,
12106
12308
  // === functors[53] ===
12107
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError,functionBind,globalThis,assert;$h͏_imports([["./commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["functionBind", [$h͏_a => (functionBind = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
12309
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let TypeError,functionBind,globalThis,assert;$h͏_imports([["./commons.js", [["TypeError", [$h͏_a => (TypeError = $h͏_a)]],["functionBind", [$h͏_a => (functionBind = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
12108
12310
 
12109
12311
 
12110
12312
  /**
@@ -12186,18 +12388,19 @@ const chooseReporter= (reporting)=>{
12186
12388
  */$h͏_once.chooseReporter(chooseReporter);
12187
12389
  const reportInGroup= (groupLabel, console, callback)=> {
12188
12390
  const { warn, error, groupCollapsed, groupEnd}= console;
12391
+ const grouping= groupCollapsed&& groupEnd;
12189
12392
  let groupStarted= false;
12190
12393
  try {
12191
12394
  return callback({
12192
12395
  warn(...args) {
12193
- if( !groupStarted) {
12396
+ if( grouping&& !groupStarted) {
12194
12397
  groupCollapsed(groupLabel);
12195
12398
  groupStarted= true;
12196
12399
  }
12197
12400
  warn(...args);
12198
12401
  },
12199
12402
  error(...args) {
12200
- if( !groupStarted) {
12403
+ if( grouping&& !groupStarted) {
12201
12404
  groupCollapsed(groupLabel);
12202
12405
  groupStarted= true;
12203
12406
  }
@@ -12205,15 +12408,16 @@ const reportInGroup= (groupLabel, console, callback)=> {
12205
12408
  }});
12206
12409
 
12207
12410
  }finally {
12208
- if( groupStarted) {
12411
+ if( grouping&& groupStarted) {
12209
12412
  groupEnd();
12413
+ groupStarted= false;
12210
12414
  }
12211
12415
  }
12212
12416
  };$h͏_once.reportInGroup(reportInGroup);
12213
12417
  })()
12214
12418
  ,
12215
12419
  // === functors[54] ===
12216
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption", [$h͏_a => (getenv = $h͏_a)]]]],["./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)]],["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)]],["getOwnPropertyNames", [$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf", [$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener", [$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector", [$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default", [$h͏_a => (removeUnpermittedIntrinsics = $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)]]]],["./permits.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)]]]],["./tame-module-source.js", [["tameModuleSource", [$h͏_a => (tameModuleSource = $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)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics", [$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor", [$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden", [$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor", [$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties", [$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime", [$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer", [$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup", [$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter", [$h͏_a => (chooseReporter = $h͏_a)]]]]]);
12420
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption", [$h͏_a => (getenv = $h͏_a)]]]],["./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)]],["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)]],["getOwnPropertyNames", [$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf", [$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener", [$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector", [$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default", [$h͏_a => (removeUnpermittedIntrinsics = $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)]]]],["./permits.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)]]]],["./tame-module-source.js", [["tameModuleSource", [$h͏_a => (tameModuleSource = $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)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics", [$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor", [$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden", [$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor", [$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties", [$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime", [$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer", [$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup", [$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter", [$h͏_a => (chooseReporter = $h͏_a)]]]]]);
12217
12421
 
12218
12422
 
12219
12423
 
@@ -12409,8 +12613,8 @@ const repairIntrinsics= (options= {})=> {
12409
12613
  'safe'),
12410
12614
 
12411
12615
  __hardenTaming__= getenv('LOCKDOWN_HARDEN_TAMING', 'safe'),
12412
- dateTaming= 'safe', // deprecated
12413
- mathTaming= 'safe', // deprecated
12616
+ dateTaming, // deprecated
12617
+ mathTaming, // deprecated
12414
12618
  ...extraOptions}=
12415
12619
  options;
12416
12620
 
@@ -12430,6 +12634,20 @@ const repairIntrinsics= (options= {})=> {
12430
12634
  Fail `lockdown(): non supported option ${q(extraOptionsNames)}`;
12431
12635
 
12432
12636
  const reporter= chooseReporter(reporting);
12637
+ const { warn}= reporter;
12638
+
12639
+ if( dateTaming!== undefined) {
12640
+ // eslint-disable-next-line no-console
12641
+ warn(
12642
+ `SES The 'dateTaming' option is deprecated and does nothing. In the future specifying it will be an error.`);
12643
+
12644
+ }
12645
+ if( mathTaming!== undefined) {
12646
+ // eslint-disable-next-line no-console
12647
+ warn(
12648
+ `SES The 'mathTaming' option is deprecated and does nothing. In the future specifying it will be an error.`);
12649
+
12650
+ }
12433
12651
 
12434
12652
  priorRepairIntrinsics=== undefined||
12435
12653
  // eslint-disable-next-line @endo/no-polymorphic-call
@@ -12504,9 +12722,9 @@ const repairIntrinsics= (options= {})=> {
12504
12722
 
12505
12723
  addIntrinsics(tameFunctionConstructors());
12506
12724
 
12507
- addIntrinsics(tameDateConstructor(dateTaming));
12725
+ addIntrinsics(tameDateConstructor());
12508
12726
  addIntrinsics(tameErrorConstructor(errorTaming, stackFiltering));
12509
- addIntrinsics(tameMathObject(mathTaming));
12727
+ addIntrinsics(tameMathObject());
12510
12728
  addIntrinsics(tameRegExpConstructor(regExpTaming));
12511
12729
  addIntrinsics(tameSymbolConstructor());
12512
12730
  addIntrinsics(shimArrayBufferTransfer());
@@ -12701,7 +12919,7 @@ const repairIntrinsics= (options= {})=> {
12701
12919
  })()
12702
12920
  ,
12703
12921
  // === functors[55] ===
12704
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let globalThis,repairIntrinsics;$h͏_imports([["./assert-sloppy-mode.js", []],["./commons.js", [["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./lockdown.js", [["repairIntrinsics", [$h͏_a => (repairIntrinsics = $h͏_a)]]]]]);
12922
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let globalThis,repairIntrinsics;$h͏_imports([["./assert-sloppy-mode.js", []],["./commons.js", [["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./lockdown.js", [["repairIntrinsics", [$h͏_a => (repairIntrinsics = $h͏_a)]]]]]);
12705
12923
 
12706
12924
 
12707
12925
 
@@ -12741,7 +12959,7 @@ globalThis.repairIntrinsics= (options)=>{
12741
12959
  })()
12742
12960
  ,
12743
12961
  // === functors[56] ===
12744
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics,chooseReporter;$h͏_imports([["./commons.js", [["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor", [$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString", [$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./intrinsics.js", [["getGlobalIntrinsics", [$h͏_a => (getGlobalIntrinsics = $h͏_a)]]]],["./reporting.js", [["chooseReporter", [$h͏_a => (chooseReporter = $h͏_a)]]]]]);
12962
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics,chooseReporter;$h͏_imports([["./commons.js", [["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor", [$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString", [$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./intrinsics.js", [["getGlobalIntrinsics", [$h͏_a => (getGlobalIntrinsics = $h͏_a)]]]],["./reporting.js", [["chooseReporter", [$h͏_a => (chooseReporter = $h͏_a)]]]]]);
12745
12963
 
12746
12964
 
12747
12965
 
@@ -12758,18 +12976,20 @@ globalThis.Compartment= makeCompartmentConstructor(
12758
12976
  // during `lockdown()`.
12759
12977
  // See https://github.com/endojs/endo/pull/2624#discussion_r1840979770
12760
12978
  getGlobalIntrinsics(globalThis, muteReporter),
12761
- markVirtualizedNativeFunction);
12979
+ markVirtualizedNativeFunction,
12980
+ {
12981
+ enforceNew: true});
12762
12982
  })()
12763
12983
  ,
12764
12984
  // === functors[57] ===
12765
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let globalThis,assert;$h͏_imports([["./commons.js", [["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
12985
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let globalThis,assert;$h͏_imports([["./commons.js", [["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert", [$h͏_a => (assert = $h͏_a)]]]]]);
12766
12986
 
12767
12987
 
12768
12988
  globalThis.assert= assert;
12769
12989
  })()
12770
12990
  ,
12771
12991
  // === functors[58] ===
12772
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; let symbolFor,globalThis,defineCausalConsoleFromLogger,loggedErrorHandler;$h͏_imports([["./commons.js", [["symbolFor", [$h͏_a => (symbolFor = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./error/console.js", [["defineCausalConsoleFromLogger", [$h͏_a => (defineCausalConsoleFromLogger = $h͏_a)]]]],["./error/assert.js", [["loggedErrorHandler", [$h͏_a => (loggedErrorHandler = $h͏_a)]]]]]);
12992
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; let symbolFor,globalThis,defineCausalConsoleFromLogger,loggedErrorHandler;$h͏_imports([["./commons.js", [["symbolFor", [$h͏_a => (symbolFor = $h͏_a)]],["globalThis", [$h͏_a => (globalThis = $h͏_a)]]]],["./error/console.js", [["defineCausalConsoleFromLogger", [$h͏_a => (defineCausalConsoleFromLogger = $h͏_a)]]]],["./error/assert.js", [["loggedErrorHandler", [$h͏_a => (loggedErrorHandler = $h͏_a)]]]]]);
12773
12993
 
12774
12994
 
12775
12995
 
@@ -12822,7 +13042,7 @@ globalThis[MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA]=
12822
13042
  })()
12823
13043
  ,
12824
13044
  // === functors[59] ===
12825
- ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([["./src/lockdown-shim.js", []],["./src/compartment-shim.js", []],["./src/assert-shim.js", []],["./src/console-shim.js", []]]);
13045
+ ({ imports: $h͏_imports, liveVar: $h͏_live, onceVar: $h͏_once, import: $h͏_import, importMeta: $h͏____meta, }) => (function () { 'use strict'; $h͏_imports([["./src/lockdown-shim.js", []],["./src/compartment-shim.js", []],["./src/assert-shim.js", []],["./src/console-shim.js", []]]);
12826
13046
  })()
12827
13047
  ,
12828
13048
  ]);