ses 1.0.1 → 1.2.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/NEWS.md +25 -1
- package/README.md +1 -1
- package/dist/lockdown.cjs +962 -453
- package/dist/lockdown.mjs +962 -453
- package/dist/lockdown.umd.js +962 -453
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +962 -453
- package/dist/ses.mjs +962 -453
- package/dist/ses.umd.js +962 -453
- package/dist/ses.umd.min.js +1 -1
- package/package.json +15 -11
- package/src/compartment.js +13 -4
- package/src/enable-property-overrides.js +40 -36
- package/src/enablements.js +15 -0
- package/src/error/README.md +1 -1
- package/src/error/fatal-assert.js +1 -1
- package/src/error/note-log-args.js +1 -205
- package/src/error/tame-console.js +72 -51
- package/src/lockdown.js +43 -12
- package/src/make-lru-cachemap.js +221 -0
- package/src/module-instance.js +10 -10
- package/src/module-proxy.js +42 -14
- package/src/permits-intrinsics.js +29 -15
- package/src/permits.js +67 -2
- package/src/tame-domains.js +4 -6
- package/src/tame-faux-data-properties.js +210 -0
- package/types.d.ts +1 -1
package/dist/ses.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// ses@1.0
|
|
1
|
+
// ses@1.2.0
|
|
2
2
|
'use strict';
|
|
3
3
|
(() => {
|
|
4
4
|
const functors = [
|
|
5
5
|
// === functors[0] ===
|
|
6
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([]); /* global globalThis */
|
|
6
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; $h_imports([]); /* global globalThis */
|
|
7
7
|
/* eslint-disable no-restricted-globals */
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -298,7 +298,7 @@ const noEvalEvaluate= ()=> {
|
|
|
298
298
|
})()
|
|
299
299
|
,
|
|
300
300
|
// === functors[1] ===
|
|
301
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let TypeError;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]]]]]);
|
|
301
|
+
({ 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)]]]]]);
|
|
302
302
|
|
|
303
303
|
/** getThis returns globalThis in sloppy mode or undefined in strict mode. */
|
|
304
304
|
function getThis() {
|
|
@@ -312,7 +312,8 @@ if( getThis()) {
|
|
|
312
312
|
})()
|
|
313
313
|
,
|
|
314
314
|
// === functors[2] ===
|
|
315
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([]);
|
|
315
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; $h_imports([]); /* global globalThis */
|
|
316
|
+
// @ts-check
|
|
316
317
|
|
|
317
318
|
// `@endo/env-options` needs to be imported quite early, and so should
|
|
318
319
|
// avoid importing from ses or anything that depends on ses.
|
|
@@ -331,6 +332,8 @@ const uncurryThis=
|
|
|
331
332
|
(receiver, ...args)=>
|
|
332
333
|
apply(fn, receiver, args);
|
|
333
334
|
const arrayPush= uncurryThis(Array.prototype.push);
|
|
335
|
+
const arrayIncludes= uncurryThis(Array.prototype.includes);
|
|
336
|
+
const stringSplit= uncurryThis(String.prototype.split);
|
|
334
337
|
|
|
335
338
|
const q= JSON.stringify;
|
|
336
339
|
|
|
@@ -351,8 +354,10 @@ const Fail= (literals, ...args)=> {
|
|
|
351
354
|
* the environment variables that were captured.
|
|
352
355
|
*
|
|
353
356
|
* @param {object} aGlobal
|
|
357
|
+
* @param {boolean} [dropNames] Defaults to false. If true, don't track
|
|
358
|
+
* names used.
|
|
354
359
|
*/
|
|
355
|
-
const makeEnvironmentCaptor= (aGlobal)=>{
|
|
360
|
+
const makeEnvironmentCaptor= (aGlobal, dropNames= false)=> {
|
|
356
361
|
const capturedEnvironmentOptionNames= [];
|
|
357
362
|
|
|
358
363
|
/**
|
|
@@ -361,13 +366,17 @@ const makeEnvironmentCaptor= (aGlobal)=>{
|
|
|
361
366
|
*
|
|
362
367
|
* @param {string} optionName
|
|
363
368
|
* @param {string} defaultSetting
|
|
369
|
+
* @param {string[]} [optOtherValues]
|
|
370
|
+
* If provided, the option value must be included or match `defaultSetting`.
|
|
364
371
|
* @returns {string}
|
|
365
372
|
*/
|
|
366
|
-
const getEnvironmentOption= (
|
|
367
|
-
|
|
373
|
+
const getEnvironmentOption= (
|
|
374
|
+
optionName,
|
|
375
|
+
defaultSetting,
|
|
376
|
+
optOtherValues= undefined)=>
|
|
377
|
+
{
|
|
368
378
|
typeof optionName=== 'string'||
|
|
369
379
|
Fail `Environment option name ${q(optionName)} must be a string.`;
|
|
370
|
-
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
371
380
|
typeof defaultSetting=== 'string'||
|
|
372
381
|
Fail `Environment option default setting ${q(
|
|
373
382
|
defaultSetting)
|
|
@@ -375,44 +384,79 @@ const makeEnvironmentCaptor= (aGlobal)=>{
|
|
|
375
384
|
|
|
376
385
|
/** @type {string} */
|
|
377
386
|
let setting= defaultSetting;
|
|
378
|
-
const globalProcess= aGlobal.process;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
387
|
+
const globalProcess= aGlobal.process|| undefined;
|
|
388
|
+
const globalEnv=
|
|
389
|
+
typeof globalProcess=== 'object'&& globalProcess.env|| undefined;
|
|
390
|
+
if( typeof globalEnv=== 'object') {
|
|
391
|
+
if( optionName in globalEnv) {
|
|
392
|
+
if( !dropNames) {
|
|
383
393
|
arrayPush(capturedEnvironmentOptionNames, optionName);
|
|
384
|
-
const optionValue= globalEnv[optionName];
|
|
385
|
-
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
386
|
-
typeof optionValue=== 'string'||
|
|
387
|
-
Fail `Environment option named ${q(
|
|
388
|
-
optionName)
|
|
389
|
-
}, if present, must have a corresponding string value, got ${q(
|
|
390
|
-
optionValue)
|
|
391
|
-
}`;
|
|
392
|
-
setting= optionValue;
|
|
393
394
|
}
|
|
395
|
+
const optionValue= globalEnv[optionName];
|
|
396
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
397
|
+
typeof optionValue=== 'string'||
|
|
398
|
+
Fail `Environment option named ${q(
|
|
399
|
+
optionName)
|
|
400
|
+
}, if present, must have a corresponding string value, got ${q(
|
|
401
|
+
optionValue)
|
|
402
|
+
}`;
|
|
403
|
+
setting= optionValue;
|
|
394
404
|
}
|
|
395
405
|
}
|
|
406
|
+
optOtherValues=== undefined||
|
|
407
|
+
setting=== defaultSetting||
|
|
408
|
+
arrayIncludes(optOtherValues, setting)||
|
|
409
|
+
Fail `Unrecognized ${q(optionName)} value ${q(
|
|
410
|
+
setting)
|
|
411
|
+
}. Expected one of ${q([defaultSetting,...optOtherValues]) }`;
|
|
396
412
|
return setting;
|
|
397
413
|
};
|
|
398
414
|
freeze(getEnvironmentOption);
|
|
399
415
|
|
|
416
|
+
/**
|
|
417
|
+
* @param {string} optionName
|
|
418
|
+
* @returns {string[]}
|
|
419
|
+
*/
|
|
420
|
+
const getEnvironmentOptionsList= (optionName)=>{
|
|
421
|
+
const option= getEnvironmentOption(optionName, '');
|
|
422
|
+
return freeze(option=== ''? []: stringSplit(option, ','));
|
|
423
|
+
};
|
|
424
|
+
freeze(getEnvironmentOptionsList);
|
|
425
|
+
|
|
426
|
+
const environmentOptionsListHas= (optionName, element)=>
|
|
427
|
+
arrayIncludes(getEnvironmentOptionsList(optionName), element);
|
|
428
|
+
|
|
400
429
|
const getCapturedEnvironmentOptionNames= ()=> {
|
|
401
430
|
return freeze([...capturedEnvironmentOptionNames]);
|
|
402
431
|
};
|
|
403
432
|
freeze(getCapturedEnvironmentOptionNames);
|
|
404
433
|
|
|
405
|
-
return freeze({
|
|
434
|
+
return freeze({
|
|
435
|
+
getEnvironmentOption,
|
|
436
|
+
getEnvironmentOptionsList,
|
|
437
|
+
environmentOptionsListHas,
|
|
438
|
+
getCapturedEnvironmentOptionNames});
|
|
439
|
+
|
|
406
440
|
};$h_once.makeEnvironmentCaptor(makeEnvironmentCaptor);
|
|
407
441
|
freeze(makeEnvironmentCaptor);
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* For the simple case, where the global in question is `globalThis` and no
|
|
445
|
+
* reporting of option names is desired.
|
|
446
|
+
*/
|
|
447
|
+
const {
|
|
448
|
+
getEnvironmentOption,
|
|
449
|
+
getEnvironmentOptionsList,
|
|
450
|
+
environmentOptionsListHas}=
|
|
451
|
+
makeEnvironmentCaptor(globalThis, true);$h_once.getEnvironmentOption(getEnvironmentOption);$h_once.getEnvironmentOptionsList(getEnvironmentOptionsList);$h_once.environmentOptionsListHas(environmentOptionsListHas);
|
|
408
452
|
})()
|
|
409
453
|
,
|
|
410
454
|
// === functors[3] ===
|
|
411
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([["./src/env-options.js", []]]);
|
|
455
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; $h_imports([["./src/env-options.js", []]]);
|
|
412
456
|
})()
|
|
413
457
|
,
|
|
414
458
|
// === functors[4] ===
|
|
415
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
459
|
+
({ 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)]]]]]);
|
|
416
460
|
|
|
417
461
|
|
|
418
462
|
|
|
@@ -607,7 +651,7 @@ freeze(bestEffortStringify);
|
|
|
607
651
|
})()
|
|
608
652
|
,
|
|
609
653
|
// === functors[5] ===
|
|
610
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([]); // @ts-check
|
|
654
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; $h_imports([]); // @ts-check
|
|
611
655
|
|
|
612
656
|
/**
|
|
613
657
|
* @callback BaseAssert
|
|
@@ -1015,7 +1059,7 @@ freeze(bestEffortStringify);
|
|
|
1015
1059
|
})()
|
|
1016
1060
|
,
|
|
1017
1061
|
// === functors[6] ===
|
|
1018
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([]); // @ts-check
|
|
1062
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; $h_imports([]); // @ts-check
|
|
1019
1063
|
|
|
1020
1064
|
/**
|
|
1021
1065
|
* @typedef {readonly any[]} LogArgs
|
|
@@ -1107,14 +1151,15 @@ freeze(bestEffortStringify);
|
|
|
1107
1151
|
})()
|
|
1108
1152
|
,
|
|
1109
1153
|
// === functors[7] ===
|
|
1110
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([
|
|
1154
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; $h_imports([]); // @ts-check
|
|
1155
|
+
/* eslint-disable @endo/no-polymorphic-call */
|
|
1111
1156
|
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
const { freeze}= Object;
|
|
1157
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1117
1158
|
const { isSafeInteger}= Number;
|
|
1159
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1160
|
+
const { freeze}= Object;
|
|
1161
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1162
|
+
const { toStringTag: toStringTagSymbol}= Symbol;
|
|
1118
1163
|
|
|
1119
1164
|
/**
|
|
1120
1165
|
* @template Data
|
|
@@ -1161,9 +1206,11 @@ const makeSelfCell= (data)=>{
|
|
|
1161
1206
|
*/
|
|
1162
1207
|
const spliceAfter= (prev, selfCell)=> {
|
|
1163
1208
|
if( prev=== selfCell) {
|
|
1209
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1164
1210
|
throw TypeError('Cannot splice a cell into itself');
|
|
1165
1211
|
}
|
|
1166
1212
|
if( selfCell.next!== selfCell|| selfCell.prev!== selfCell) {
|
|
1213
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1167
1214
|
throw TypeError('Expected self-linked cell');
|
|
1168
1215
|
}
|
|
1169
1216
|
const cell= selfCell;
|
|
@@ -1211,10 +1258,12 @@ const spliceOut= (cell)=>{
|
|
|
1211
1258
|
*/
|
|
1212
1259
|
const makeLRUCacheMap= (keysBudget)=>{
|
|
1213
1260
|
if( !isSafeInteger(keysBudget)|| keysBudget< 0) {
|
|
1261
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1214
1262
|
throw TypeError('keysBudget must be a safe non-negative integer number');
|
|
1215
1263
|
}
|
|
1216
1264
|
/** @typedef {DoublyLinkedCell<WeakMap<K, V> | undefined>} LRUCacheCell */
|
|
1217
1265
|
/** @type {WeakMap<K, LRUCacheCell>} */
|
|
1266
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1218
1267
|
const keyToCell= new WeakMap();
|
|
1219
1268
|
let size= 0; // `size` must remain <= `keysBudget`
|
|
1220
1269
|
// As a sigil, `head` uniquely is not in the `keyToCell` map.
|
|
@@ -1269,6 +1318,7 @@ const makeLRUCacheMap= (keysBudget)=>{
|
|
|
1269
1318
|
// Either a fresh cell or a reused condemned cell.
|
|
1270
1319
|
size+= 1;
|
|
1271
1320
|
// Add its data.
|
|
1321
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1272
1322
|
cell.data= new WeakMap();
|
|
1273
1323
|
// Advertise the cell for this key.
|
|
1274
1324
|
keyToCell.set(key, cell);
|
|
@@ -1315,11 +1365,25 @@ const makeLRUCacheMap= (keysBudget)=>{
|
|
|
1315
1365
|
get,
|
|
1316
1366
|
set,
|
|
1317
1367
|
delete: deleteIt,
|
|
1318
|
-
|
|
1368
|
+
// eslint-disable-next-line jsdoc/check-types
|
|
1369
|
+
[/** @type {typeof Symbol.toStringTag} */ toStringTagSymbol]:
|
|
1370
|
+
'LRUCacheMap'});
|
|
1319
1371
|
|
|
1320
1372
|
return lruCacheMap;
|
|
1321
1373
|
};$h_once.makeLRUCacheMap(makeLRUCacheMap);
|
|
1322
1374
|
freeze(makeLRUCacheMap);
|
|
1375
|
+
})()
|
|
1376
|
+
,
|
|
1377
|
+
// === functors[8] ===
|
|
1378
|
+
({ 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)]]]],["./internal-types.js", []]]);
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
const { freeze}= Object;
|
|
1386
|
+
const { isSafeInteger}= Number;
|
|
1323
1387
|
|
|
1324
1388
|
const defaultLoggedErrorsBudget= 1000;
|
|
1325
1389
|
const defaultArgsPerErrorBudget= 100;
|
|
@@ -1386,8 +1450,8 @@ const makeNoteLogArgsArrayKit= (
|
|
|
1386
1450
|
freeze(makeNoteLogArgsArrayKit);
|
|
1387
1451
|
})()
|
|
1388
1452
|
,
|
|
1389
|
-
// === functors[
|
|
1390
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,globalThis,is,isError,regexpTest,stringIndexOf,stringReplace,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,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)]],["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)]]]],["./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)]]]]]);
|
|
1453
|
+
// === functors[9] ===
|
|
1454
|
+
({ 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,globalThis,is,isError,regexpTest,stringIndexOf,stringReplace,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,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)]],["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)]]]],["./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)]]]]]);
|
|
1391
1455
|
|
|
1392
1456
|
|
|
1393
1457
|
|
|
@@ -1858,8 +1922,8 @@ freeze(makeAssert);
|
|
|
1858
1922
|
const assert= makeAssert();$h_once.assert(assert);
|
|
1859
1923
|
})()
|
|
1860
1924
|
,
|
|
1861
|
-
// === functors[
|
|
1862
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let Set,String,TypeError,WeakMap,WeakSet,globalThis,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isObject,objectHasOwnProperty,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,assert;$h_imports([["./commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["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)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
1925
|
+
// === functors[10] ===
|
|
1926
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; let Set,String,TypeError,WeakMap,WeakSet,globalThis,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isObject,objectHasOwnProperty,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,assert;$h_imports([["./commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["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)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
1863
1927
|
|
|
1864
1928
|
|
|
1865
1929
|
|
|
@@ -2108,8 +2172,8 @@ const makeHardener= ()=> {
|
|
|
2108
2172
|
};$h_once.makeHardener(makeHardener);
|
|
2109
2173
|
})()
|
|
2110
2174
|
,
|
|
2111
|
-
// === functors[
|
|
2112
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([]); /* eslint-disable no-restricted-globals */
|
|
2175
|
+
// === functors[11] ===
|
|
2176
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; $h_imports([]); /* eslint-disable no-restricted-globals */
|
|
2113
2177
|
/**
|
|
2114
2178
|
* @file Exports {@code whitelist}, a recursively defined
|
|
2115
2179
|
* JSON record enumerating all intrinsics and their properties
|
|
@@ -2164,6 +2228,8 @@ const universalPropertyNames= {
|
|
|
2164
2228
|
Boolean: 'Boolean',
|
|
2165
2229
|
DataView: 'DataView',
|
|
2166
2230
|
EvalError: 'EvalError',
|
|
2231
|
+
// https://github.com/tc39/proposal-float16array
|
|
2232
|
+
Float16Array: 'Float16Array',
|
|
2167
2233
|
Float32Array: 'Float32Array',
|
|
2168
2234
|
Float64Array: 'Float64Array',
|
|
2169
2235
|
Int8Array: 'Int8Array',
|
|
@@ -2492,7 +2558,9 @@ const CommonMath= {
|
|
|
2492
2558
|
// See https://github.com/Moddable-OpenSource/moddable/issues/523
|
|
2493
2559
|
irem: false,
|
|
2494
2560
|
// See https://github.com/Moddable-OpenSource/moddable/issues/523
|
|
2495
|
-
mod: false
|
|
2561
|
+
mod: false,
|
|
2562
|
+
// See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
|
|
2563
|
+
irandom: false};
|
|
2496
2564
|
|
|
2497
2565
|
|
|
2498
2566
|
const permitted= {
|
|
@@ -2553,7 +2621,9 @@ const permitted= {
|
|
|
2553
2621
|
setPrototypeOf: fn,
|
|
2554
2622
|
values: fn,
|
|
2555
2623
|
// https://github.com/tc39/proposal-array-grouping
|
|
2556
|
-
groupBy: fn
|
|
2624
|
+
groupBy: fn,
|
|
2625
|
+
// Seen on QuickJS
|
|
2626
|
+
__getClass: false},
|
|
2557
2627
|
|
|
2558
2628
|
|
|
2559
2629
|
'%ObjectPrototype%': {
|
|
@@ -2599,7 +2669,11 @@ const permitted= {
|
|
|
2599
2669
|
// proposed but not yet std. To be removed if there
|
|
2600
2670
|
caller: false,
|
|
2601
2671
|
// proposed but not yet std. To be removed if there
|
|
2602
|
-
arguments: false
|
|
2672
|
+
arguments: false,
|
|
2673
|
+
// Seen on QuickJS. TODO grab getter for use by console
|
|
2674
|
+
fileName: false,
|
|
2675
|
+
// Seen on QuickJS. TODO grab getter for use by console
|
|
2676
|
+
lineNumber: false},
|
|
2603
2677
|
|
|
2604
2678
|
|
|
2605
2679
|
Boolean: {
|
|
@@ -2638,7 +2712,9 @@ const permitted= {
|
|
|
2638
2712
|
// Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
|
|
2639
2713
|
useSimple: false,
|
|
2640
2714
|
// Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
|
|
2641
|
-
useSetter: false
|
|
2715
|
+
useSetter: false,
|
|
2716
|
+
// Seen on QuickJS
|
|
2717
|
+
operatorSet: false},
|
|
2642
2718
|
|
|
2643
2719
|
|
|
2644
2720
|
'%SymbolPrototype%': {
|
|
@@ -2748,7 +2824,31 @@ const permitted= {
|
|
|
2748
2824
|
// See https://github.com/Moddable-OpenSource/moddable/issues/523
|
|
2749
2825
|
bitLength: false,
|
|
2750
2826
|
// See https://github.com/Moddable-OpenSource/moddable/issues/523
|
|
2751
|
-
fromArrayBuffer: false
|
|
2827
|
+
fromArrayBuffer: false,
|
|
2828
|
+
// Seen on QuickJS
|
|
2829
|
+
tdiv: false,
|
|
2830
|
+
// Seen on QuickJS
|
|
2831
|
+
fdiv: false,
|
|
2832
|
+
// Seen on QuickJS
|
|
2833
|
+
cdiv: false,
|
|
2834
|
+
// Seen on QuickJS
|
|
2835
|
+
ediv: false,
|
|
2836
|
+
// Seen on QuickJS
|
|
2837
|
+
tdivrem: false,
|
|
2838
|
+
// Seen on QuickJS
|
|
2839
|
+
fdivrem: false,
|
|
2840
|
+
// Seen on QuickJS
|
|
2841
|
+
cdivrem: false,
|
|
2842
|
+
// Seen on QuickJS
|
|
2843
|
+
edivrem: false,
|
|
2844
|
+
// Seen on QuickJS
|
|
2845
|
+
sqrt: false,
|
|
2846
|
+
// Seen on QuickJS
|
|
2847
|
+
sqrtrem: false,
|
|
2848
|
+
// Seen on QuickJS
|
|
2849
|
+
floorLog2: false,
|
|
2850
|
+
// Seen on QuickJS
|
|
2851
|
+
ctz: false},
|
|
2752
2852
|
|
|
2753
2853
|
|
|
2754
2854
|
'%BigIntPrototype%': {
|
|
@@ -2916,7 +3016,9 @@ const permitted= {
|
|
|
2916
3016
|
// https://github.com/tc39/proposal-is-usv-string
|
|
2917
3017
|
isWellFormed: fn,
|
|
2918
3018
|
toWellFormed: fn,
|
|
2919
|
-
unicodeSets: fn
|
|
3019
|
+
unicodeSets: fn,
|
|
3020
|
+
// Seen on QuickJS
|
|
3021
|
+
__quote: false},
|
|
2920
3022
|
|
|
2921
3023
|
|
|
2922
3024
|
'%StringIteratorPrototype%': {
|
|
@@ -3156,6 +3258,8 @@ const permitted= {
|
|
|
3156
3258
|
|
|
3157
3259
|
BigInt64Array: TypedArray('%BigInt64ArrayPrototype%'),
|
|
3158
3260
|
BigUint64Array: TypedArray('%BigUint64ArrayPrototype%'),
|
|
3261
|
+
// https://github.com/tc39/proposal-float16array
|
|
3262
|
+
Float16Array: TypedArray('%Float16ArrayPrototype%'),
|
|
3159
3263
|
Float32Array: TypedArray('%Float32ArrayPrototype%'),
|
|
3160
3264
|
Float64Array: TypedArray('%Float64ArrayPrototype%'),
|
|
3161
3265
|
Int16Array: TypedArray('%Int16ArrayPrototype%'),
|
|
@@ -3168,6 +3272,8 @@ const permitted= {
|
|
|
3168
3272
|
|
|
3169
3273
|
'%BigInt64ArrayPrototype%': TypedArrayPrototype('BigInt64Array'),
|
|
3170
3274
|
'%BigUint64ArrayPrototype%': TypedArrayPrototype('BigUint64Array'),
|
|
3275
|
+
// https://github.com/tc39/proposal-float16array
|
|
3276
|
+
'%Float16ArrayPrototype%': TypedArrayPrototype('Float16Array'),
|
|
3171
3277
|
'%Float32ArrayPrototype%': TypedArrayPrototype('Float32Array'),
|
|
3172
3278
|
'%Float64ArrayPrototype%': TypedArrayPrototype('Float64Array'),
|
|
3173
3279
|
'%Int16ArrayPrototype%': TypedArrayPrototype('Int16Array'),
|
|
@@ -3216,7 +3322,9 @@ const permitted= {
|
|
|
3216
3322
|
// Properties of the Set Constructor
|
|
3217
3323
|
'[[Proto]]': '%FunctionPrototype%',
|
|
3218
3324
|
prototype: '%SetPrototype%',
|
|
3219
|
-
'@@species': getter
|
|
3325
|
+
'@@species': getter,
|
|
3326
|
+
// Seen on QuickJS
|
|
3327
|
+
groupBy: false},
|
|
3220
3328
|
|
|
3221
3329
|
|
|
3222
3330
|
'%SetPrototype%': {
|
|
@@ -3231,7 +3339,21 @@ const permitted= {
|
|
|
3231
3339
|
size: getter,
|
|
3232
3340
|
values: fn,
|
|
3233
3341
|
'@@iterator': fn,
|
|
3234
|
-
'@@toStringTag': 'string'
|
|
3342
|
+
'@@toStringTag': 'string',
|
|
3343
|
+
// See https://github.com/tc39/proposal-set-methods
|
|
3344
|
+
intersection: fn,
|
|
3345
|
+
// See https://github.com/tc39/proposal-set-methods
|
|
3346
|
+
union: fn,
|
|
3347
|
+
// See https://github.com/tc39/proposal-set-methods
|
|
3348
|
+
difference: fn,
|
|
3349
|
+
// See https://github.com/tc39/proposal-set-methods
|
|
3350
|
+
symmetricDifference: fn,
|
|
3351
|
+
// See https://github.com/tc39/proposal-set-methods
|
|
3352
|
+
isSubsetOf: fn,
|
|
3353
|
+
// See https://github.com/tc39/proposal-set-methods
|
|
3354
|
+
isSupersetOf: fn,
|
|
3355
|
+
// See https://github.com/tc39/proposal-set-methods
|
|
3356
|
+
isDisjointFrom: fn},
|
|
3235
3357
|
|
|
3236
3358
|
|
|
3237
3359
|
'%SetIteratorPrototype%': {
|
|
@@ -3319,6 +3441,8 @@ const permitted= {
|
|
|
3319
3441
|
constructor: 'DataView',
|
|
3320
3442
|
getBigInt64: fn,
|
|
3321
3443
|
getBigUint64: fn,
|
|
3444
|
+
// https://github.com/tc39/proposal-float16array
|
|
3445
|
+
getFloat16: fn,
|
|
3322
3446
|
getFloat32: fn,
|
|
3323
3447
|
getFloat64: fn,
|
|
3324
3448
|
getInt8: fn,
|
|
@@ -3329,6 +3453,8 @@ const permitted= {
|
|
|
3329
3453
|
getUint32: fn,
|
|
3330
3454
|
setBigInt64: fn,
|
|
3331
3455
|
setBigUint64: fn,
|
|
3456
|
+
// https://github.com/tc39/proposal-float16array
|
|
3457
|
+
setFloat16: fn,
|
|
3332
3458
|
setFloat32: fn,
|
|
3333
3459
|
setFloat64: fn,
|
|
3334
3460
|
setInt8: fn,
|
|
@@ -3380,7 +3506,9 @@ const permitted= {
|
|
|
3380
3506
|
find: fn,
|
|
3381
3507
|
'@@toStringTag': 'string',
|
|
3382
3508
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
3383
|
-
toAsync: fn
|
|
3509
|
+
toAsync: fn,
|
|
3510
|
+
// See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
|
|
3511
|
+
'@@dispose': false},
|
|
3384
3512
|
|
|
3385
3513
|
|
|
3386
3514
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
@@ -3422,7 +3550,9 @@ const permitted= {
|
|
|
3422
3550
|
some: fn,
|
|
3423
3551
|
every: fn,
|
|
3424
3552
|
find: fn,
|
|
3425
|
-
'@@toStringTag': 'string'
|
|
3553
|
+
'@@toStringTag': 'string',
|
|
3554
|
+
// See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
|
|
3555
|
+
'@@asyncDispose': false},
|
|
3426
3556
|
|
|
3427
3557
|
|
|
3428
3558
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
@@ -3613,12 +3743,11 @@ const permitted= {
|
|
|
3613
3743
|
evaluate: fn,
|
|
3614
3744
|
globalThis: getter,
|
|
3615
3745
|
name: getter,
|
|
3616
|
-
// Should this be proposed?
|
|
3617
|
-
toString: fn,
|
|
3618
3746
|
import: asyncFn,
|
|
3619
3747
|
load: asyncFn,
|
|
3620
3748
|
importNow: fn,
|
|
3621
|
-
module: fn
|
|
3749
|
+
module: fn,
|
|
3750
|
+
'@@toStringTag': 'string'},
|
|
3622
3751
|
|
|
3623
3752
|
|
|
3624
3753
|
lockdown: fn,
|
|
@@ -3627,8 +3756,8 @@ const permitted= {
|
|
|
3627
3756
|
'%InitialGetStackString%': fn};$h_once.permitted(permitted);
|
|
3628
3757
|
})()
|
|
3629
3758
|
,
|
|
3630
|
-
// === functors[
|
|
3631
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let TypeError,WeakSet,arrayFilter,create,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isObject,objectHasOwnProperty,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,permitted;$h_imports([["./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)]]]]]);
|
|
3759
|
+
// === functors[12] ===
|
|
3760
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; let TypeError,WeakSet,arrayFilter,create,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isObject,objectHasOwnProperty,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,permitted;$h_imports([["./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)]]]]]);
|
|
3632
3761
|
|
|
3633
3762
|
|
|
3634
3763
|
|
|
@@ -3804,8 +3933,8 @@ const getGlobalIntrinsics= (globalObject)=>{
|
|
|
3804
3933
|
};$h_once.getGlobalIntrinsics(getGlobalIntrinsics);
|
|
3805
3934
|
})()
|
|
3806
3935
|
,
|
|
3807
|
-
// === functors[
|
|
3808
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let permitted,FunctionInstance,isAccessorPermit,Map,String,Symbol,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isObject,mapGet,objectHasOwnProperty,ownKeys,symbolKeyFor;$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)]]]]]);
|
|
3936
|
+
// === functors[13] ===
|
|
3937
|
+
({ 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;$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)]]]]]);
|
|
3809
3938
|
|
|
3810
3939
|
|
|
3811
3940
|
|
|
@@ -3881,7 +4010,18 @@ function whitelistIntrinsics(
|
|
|
3881
4010
|
intrinsics,
|
|
3882
4011
|
markVirtualizedNativeFunction)
|
|
3883
4012
|
{
|
|
3884
|
-
|
|
4013
|
+
let groupStarted= false;
|
|
4014
|
+
const inConsoleGroup= (level, ...args)=> {
|
|
4015
|
+
if( !groupStarted) {
|
|
4016
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
4017
|
+
console.groupCollapsed('Removing unpermitted intrinsics');
|
|
4018
|
+
groupStarted= true;
|
|
4019
|
+
}
|
|
4020
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
4021
|
+
return console[level](...args);
|
|
4022
|
+
};
|
|
4023
|
+
|
|
4024
|
+
// These primitives are allowed for permits.
|
|
3885
4025
|
const primitives= ['undefined', 'boolean', 'number', 'string', 'symbol'];
|
|
3886
4026
|
|
|
3887
4027
|
// These symbols are allowed as well-known symbols
|
|
@@ -4086,11 +4226,7 @@ function whitelistIntrinsics(
|
|
|
4086
4226
|
// that we are removing it so we know to look into it, as happens when
|
|
4087
4227
|
// the language evolves new features to existing intrinsics.
|
|
4088
4228
|
if( subPermit!== false) {
|
|
4089
|
-
|
|
4090
|
-
// a debugging attempt. See the comment at top of file for an
|
|
4091
|
-
// explanation.
|
|
4092
|
-
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
4093
|
-
console.warn( `Removing ${subPath}`);
|
|
4229
|
+
inConsoleGroup('warn', `Removing ${subPath}`);
|
|
4094
4230
|
}
|
|
4095
4231
|
try {
|
|
4096
4232
|
delete obj[prop];
|
|
@@ -4099,17 +4235,17 @@ function whitelistIntrinsics(
|
|
|
4099
4235
|
if( typeof obj=== 'function'&& prop=== 'prototype') {
|
|
4100
4236
|
obj.prototype= undefined;
|
|
4101
4237
|
if( obj.prototype=== undefined) {
|
|
4102
|
-
|
|
4103
|
-
|
|
4238
|
+
inConsoleGroup(
|
|
4239
|
+
'warn',
|
|
4240
|
+
`Tolerating undeletable ${subPath} === undefined`);
|
|
4241
|
+
|
|
4104
4242
|
// eslint-disable-next-line no-continue
|
|
4105
4243
|
continue;
|
|
4106
4244
|
}
|
|
4107
4245
|
}
|
|
4108
|
-
|
|
4109
|
-
console.error( `failed to delete ${subPath}`,err);
|
|
4246
|
+
inConsoleGroup('error', `failed to delete ${subPath}`,err);
|
|
4110
4247
|
}else {
|
|
4111
|
-
|
|
4112
|
-
console.error( `deleting ${subPath} threw`,err);
|
|
4248
|
+
inConsoleGroup('error', `deleting ${subPath} threw`,err);
|
|
4113
4249
|
}
|
|
4114
4250
|
throw err;
|
|
4115
4251
|
}
|
|
@@ -4117,14 +4253,21 @@ function whitelistIntrinsics(
|
|
|
4117
4253
|
}
|
|
4118
4254
|
}
|
|
4119
4255
|
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4256
|
+
try {
|
|
4257
|
+
// Start path with 'intrinsics' to clarify that properties are not
|
|
4258
|
+
// removed from the global object by the whitelisting operation.
|
|
4259
|
+
visitProperties('intrinsics', intrinsics, permitted);
|
|
4260
|
+
}finally {
|
|
4261
|
+
if( groupStarted) {
|
|
4262
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
4263
|
+
console.groupEnd();
|
|
4264
|
+
}
|
|
4265
|
+
}
|
|
4123
4266
|
}$h_once.default( whitelistIntrinsics);
|
|
4124
4267
|
})()
|
|
4125
4268
|
,
|
|
4126
|
-
// === functors[
|
|
4127
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
4269
|
+
// === functors[14] ===
|
|
4270
|
+
({ 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)]]]]]);
|
|
4128
4271
|
|
|
4129
4272
|
|
|
4130
4273
|
|
|
@@ -4262,8 +4405,8 @@ function tameFunctionConstructors() {
|
|
|
4262
4405
|
}$h_once.default( tameFunctionConstructors);
|
|
4263
4406
|
})()
|
|
4264
4407
|
,
|
|
4265
|
-
// === functors[
|
|
4266
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
4408
|
+
// === functors[15] ===
|
|
4409
|
+
({ 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)]]]]]);
|
|
4267
4410
|
|
|
4268
4411
|
|
|
4269
4412
|
|
|
@@ -4395,8 +4538,8 @@ function tameDateConstructor(dateTaming= 'safe') {
|
|
|
4395
4538
|
}$h_once.default( tameDateConstructor);
|
|
4396
4539
|
})()
|
|
4397
4540
|
,
|
|
4398
|
-
// === functors[
|
|
4399
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
4541
|
+
// === functors[16] ===
|
|
4542
|
+
({ 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)]]]]]);
|
|
4400
4543
|
|
|
4401
4544
|
|
|
4402
4545
|
|
|
@@ -4442,8 +4585,8 @@ function tameMathObject(mathTaming= 'safe') {
|
|
|
4442
4585
|
}$h_once.default( tameMathObject);
|
|
4443
4586
|
})()
|
|
4444
4587
|
,
|
|
4445
|
-
// === functors[
|
|
4446
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
4588
|
+
// === functors[17] ===
|
|
4589
|
+
({ 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)]]]]]);
|
|
4447
4590
|
|
|
4448
4591
|
|
|
4449
4592
|
|
|
@@ -4506,8 +4649,10 @@ function tameRegExpConstructor(regExpTaming= 'safe') {
|
|
|
4506
4649
|
}$h_once.default( tameRegExpConstructor);
|
|
4507
4650
|
})()
|
|
4508
4651
|
,
|
|
4509
|
-
// === functors[
|
|
4510
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () {
|
|
4652
|
+
// === functors[18] ===
|
|
4653
|
+
({ 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)]]]]]);
|
|
4654
|
+
|
|
4655
|
+
/**
|
|
4511
4656
|
* @file Exports {@code enablements}, a recursively defined
|
|
4512
4657
|
* JSON record defining the optimum set of intrinsics properties
|
|
4513
4658
|
* that need to be "repaired" before hardening is applied on
|
|
@@ -4582,7 +4727,14 @@ const minEnablements= {
|
|
|
4582
4727
|
|
|
4583
4728
|
'%ErrorPrototype%': {
|
|
4584
4729
|
name: true // set by "precond", "ava", "node-fetch"
|
|
4585
|
-
}
|
|
4730
|
+
},
|
|
4731
|
+
'%IteratorPrototype%': {
|
|
4732
|
+
toString: true,
|
|
4733
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
4734
|
+
constructor: true,
|
|
4735
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
4736
|
+
[toStringTagSymbol]: true}};
|
|
4737
|
+
|
|
4586
4738
|
|
|
4587
4739
|
|
|
4588
4740
|
/**
|
|
@@ -4596,7 +4748,9 @@ const moderateEnablements= {
|
|
|
4596
4748
|
|
|
4597
4749
|
'%ArrayPrototype%': {
|
|
4598
4750
|
toString: true,
|
|
4599
|
-
push: true
|
|
4751
|
+
push: true, // set by "Google Analytics"
|
|
4752
|
+
concat: true, // set by mobx generated code (old TS compiler?)
|
|
4753
|
+
[iteratorSymbol]: true // set by mobx generated code (old TS compiler?)
|
|
4600
4754
|
},
|
|
4601
4755
|
|
|
4602
4756
|
// Function.prototype has no 'prototype' property to enable.
|
|
@@ -4660,7 +4814,11 @@ const moderateEnablements= {
|
|
|
4660
4814
|
|
|
4661
4815
|
|
|
4662
4816
|
'%IteratorPrototype%': {
|
|
4663
|
-
toString: true
|
|
4817
|
+
toString: true,
|
|
4818
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
4819
|
+
constructor: true,
|
|
4820
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
4821
|
+
[toStringTagSymbol]: true}};
|
|
4664
4822
|
|
|
4665
4823
|
|
|
4666
4824
|
|
|
@@ -4729,9 +4887,8 @@ const severeEnablements= {
|
|
|
4729
4887
|
'%SetPrototype%': '*'};$h_once.severeEnablements(severeEnablements);
|
|
4730
4888
|
})()
|
|
4731
4889
|
,
|
|
4732
|
-
// === functors[
|
|
4733
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,
|
|
4734
|
-
|
|
4890
|
+
// === functors[19] ===
|
|
4891
|
+
({ 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)]]]]]);
|
|
4735
4892
|
|
|
4736
4893
|
|
|
4737
4894
|
|
|
@@ -4820,9 +4977,43 @@ function enablePropertyOverrides(
|
|
|
4820
4977
|
if( 'value'in desc&& desc.configurable) {
|
|
4821
4978
|
const { value}= desc;
|
|
4822
4979
|
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4980
|
+
const isDebug= setHas(debugProperties, prop);
|
|
4981
|
+
|
|
4982
|
+
// We use concise method syntax to be `this` sensitive, but still
|
|
4983
|
+
// omit a prototype property or [[Construct]] behavior.
|
|
4984
|
+
// @ts-expect-error We know there is an accessor descriptor there
|
|
4985
|
+
const { get: getter, set: setter}= getOwnPropertyDescriptor(
|
|
4986
|
+
{
|
|
4987
|
+
get[ prop]() {
|
|
4988
|
+
return value;
|
|
4989
|
+
},
|
|
4990
|
+
set[ prop](newValue) {
|
|
4991
|
+
if( obj=== this) {
|
|
4992
|
+
throw TypeError(
|
|
4993
|
+
`Cannot assign to read only property '${String(
|
|
4994
|
+
prop)
|
|
4995
|
+
}' of '${path}'`);
|
|
4996
|
+
|
|
4997
|
+
}
|
|
4998
|
+
if( objectHasOwnProperty(this, prop)) {
|
|
4999
|
+
this[prop]= newValue;
|
|
5000
|
+
}else {
|
|
5001
|
+
if( isDebug) {
|
|
5002
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
5003
|
+
console.error(TypeError( `Override property ${prop}`));
|
|
5004
|
+
}
|
|
5005
|
+
defineProperty(this, prop, {
|
|
5006
|
+
value: newValue,
|
|
5007
|
+
writable: true,
|
|
5008
|
+
enumerable: true,
|
|
5009
|
+
configurable: true});
|
|
5010
|
+
|
|
5011
|
+
}
|
|
5012
|
+
}},
|
|
5013
|
+
|
|
5014
|
+
prop);
|
|
5015
|
+
|
|
5016
|
+
|
|
4826
5017
|
defineProperty(getter, 'originalValue', {
|
|
4827
5018
|
value,
|
|
4828
5019
|
writable: false,
|
|
@@ -4830,32 +5021,6 @@ function enablePropertyOverrides(
|
|
|
4830
5021
|
configurable: false});
|
|
4831
5022
|
|
|
4832
5023
|
|
|
4833
|
-
const isDebug= setHas(debugProperties, prop);
|
|
4834
|
-
|
|
4835
|
-
function setter(newValue) {
|
|
4836
|
-
if( obj=== this) {
|
|
4837
|
-
throw TypeError(
|
|
4838
|
-
`Cannot assign to read only property '${String(
|
|
4839
|
-
prop)
|
|
4840
|
-
}' of '${path}'`);
|
|
4841
|
-
|
|
4842
|
-
}
|
|
4843
|
-
if( objectHasOwnProperty(this, prop)) {
|
|
4844
|
-
this[prop]= newValue;
|
|
4845
|
-
}else {
|
|
4846
|
-
if( isDebug) {
|
|
4847
|
-
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
4848
|
-
console.error(TypeError( `Override property ${prop}`));
|
|
4849
|
-
}
|
|
4850
|
-
defineProperty(this, prop, {
|
|
4851
|
-
value: newValue,
|
|
4852
|
-
writable: true,
|
|
4853
|
-
enumerable: true,
|
|
4854
|
-
configurable: true});
|
|
4855
|
-
|
|
4856
|
-
}
|
|
4857
|
-
}
|
|
4858
|
-
|
|
4859
5024
|
defineProperty(obj, prop, {
|
|
4860
5025
|
get: getter,
|
|
4861
5026
|
set: setter,
|
|
@@ -4880,12 +5045,11 @@ function enablePropertyOverrides(
|
|
|
4880
5045
|
}
|
|
4881
5046
|
// TypeScript does not allow symbols to be used as indexes because it
|
|
4882
5047
|
// cannot recokon types of symbolized properties.
|
|
4883
|
-
// @ts-ignore
|
|
4884
5048
|
arrayForEach(ownKeys(descs), (prop)=>enable(path, obj, prop, descs[prop]));
|
|
4885
5049
|
}
|
|
4886
5050
|
|
|
4887
5051
|
function enableProperties(path, obj, plan) {
|
|
4888
|
-
for( const prop of
|
|
5052
|
+
for( const prop of ownKeys(plan)) {
|
|
4889
5053
|
const desc= getOwnPropertyDescriptor(obj, prop);
|
|
4890
5054
|
if( !desc|| desc.get|| desc.set) {
|
|
4891
5055
|
// No not a value property, nothing to do.
|
|
@@ -4893,10 +5057,8 @@ function enablePropertyOverrides(
|
|
|
4893
5057
|
continue;
|
|
4894
5058
|
}
|
|
4895
5059
|
|
|
4896
|
-
//
|
|
4897
|
-
//
|
|
4898
|
-
// with `String(..)` anyway just as good hygiene, since these paths are just
|
|
4899
|
-
// for diagnostic purposes.
|
|
5060
|
+
// In case `prop` is a symbol, we first coerce it with `String`,
|
|
5061
|
+
// purely for diagnostic purposes.
|
|
4900
5062
|
const subPath= `${path}.${String(prop)}`;
|
|
4901
5063
|
const subPlan= plan[prop];
|
|
4902
5064
|
|
|
@@ -4936,8 +5098,8 @@ function enablePropertyOverrides(
|
|
|
4936
5098
|
}$h_once.default( enablePropertyOverrides);
|
|
4937
5099
|
})()
|
|
4938
5100
|
,
|
|
4939
|
-
// === functors[
|
|
4940
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
5101
|
+
// === functors[20] ===
|
|
5102
|
+
({ 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)]]]]]);
|
|
4941
5103
|
|
|
4942
5104
|
|
|
4943
5105
|
|
|
@@ -5020,8 +5182,8 @@ function tameLocaleMethods(intrinsics, localeTaming= 'safe') {
|
|
|
5020
5182
|
}$h_once.default( tameLocaleMethods);
|
|
5021
5183
|
})()
|
|
5022
5184
|
,
|
|
5023
|
-
// === functors[
|
|
5024
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([]); /**
|
|
5185
|
+
// === functors[21] ===
|
|
5186
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; $h_imports([]); /**
|
|
5025
5187
|
* makeEvalFunction()
|
|
5026
5188
|
* A safe version of the native eval function which relies on
|
|
5027
5189
|
* the safety of safeEvaluate for confinement.
|
|
@@ -5050,8 +5212,8 @@ const makeEvalFunction= (safeEvaluate)=>{
|
|
|
5050
5212
|
};$h_once.makeEvalFunction(makeEvalFunction);
|
|
5051
5213
|
})()
|
|
5052
5214
|
,
|
|
5053
|
-
// === functors[
|
|
5054
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
5215
|
+
// === functors[22] ===
|
|
5216
|
+
({ 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)]]]]]);
|
|
5055
5217
|
|
|
5056
5218
|
|
|
5057
5219
|
|
|
@@ -5131,8 +5293,8 @@ const makeFunctionConstructor= (safeEvaluate)=>{
|
|
|
5131
5293
|
};$h_once.makeFunctionConstructor(makeFunctionConstructor);
|
|
5132
5294
|
})()
|
|
5133
5295
|
,
|
|
5134
|
-
// === functors[
|
|
5135
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
5296
|
+
// === functors[23] ===
|
|
5297
|
+
({ 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)]]]]]);
|
|
5136
5298
|
|
|
5137
5299
|
|
|
5138
5300
|
|
|
@@ -5303,8 +5465,8 @@ const setGlobalObjectEvaluators= (
|
|
|
5303
5465
|
};$h_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
|
|
5304
5466
|
})()
|
|
5305
5467
|
,
|
|
5306
|
-
// === functors[
|
|
5307
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
5468
|
+
// === functors[24] ===
|
|
5469
|
+
({ 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)]]]]]);
|
|
5308
5470
|
|
|
5309
5471
|
|
|
5310
5472
|
|
|
@@ -5398,8 +5560,8 @@ const strictScopeTerminator= new Proxy(
|
|
|
5398
5560
|
strictScopeTerminatorHandler);$h_once.strictScopeTerminator(strictScopeTerminator);
|
|
5399
5561
|
})()
|
|
5400
5562
|
,
|
|
5401
|
-
// === functors[
|
|
5402
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
5563
|
+
// === functors[25] ===
|
|
5564
|
+
({ 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)]]]]]);
|
|
5403
5565
|
|
|
5404
5566
|
|
|
5405
5567
|
|
|
@@ -5455,8 +5617,8 @@ const createSloppyGlobalsScopeTerminator= (globalObject)=>{
|
|
|
5455
5617
|
freeze(createSloppyGlobalsScopeTerminator);
|
|
5456
5618
|
})()
|
|
5457
5619
|
,
|
|
5458
|
-
// === functors[
|
|
5459
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
5620
|
+
// === functors[26] ===
|
|
5621
|
+
({ 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)]]]]]);
|
|
5460
5622
|
|
|
5461
5623
|
|
|
5462
5624
|
|
|
@@ -5547,8 +5709,8 @@ const makeEvalScopeKit= ()=> {
|
|
|
5547
5709
|
};$h_once.makeEvalScopeKit(makeEvalScopeKit);
|
|
5548
5710
|
})()
|
|
5549
5711
|
,
|
|
5550
|
-
// === functors[
|
|
5551
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
5712
|
+
// === functors[27] ===
|
|
5713
|
+
({ 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)]]]]]);
|
|
5552
5714
|
|
|
5553
5715
|
// Captures a key and value of the form #key=value or @key=value
|
|
5554
5716
|
const sourceMetaEntryRegExp=
|
|
@@ -5600,8 +5762,8 @@ const getSourceURL= (src)=>{
|
|
|
5600
5762
|
};$h_once.getSourceURL(getSourceURL);
|
|
5601
5763
|
})()
|
|
5602
5764
|
,
|
|
5603
|
-
// === functors[
|
|
5604
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
5765
|
+
// === functors[28] ===
|
|
5766
|
+
({ 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)]]]]]);
|
|
5605
5767
|
|
|
5606
5768
|
|
|
5607
5769
|
|
|
@@ -5868,8 +6030,8 @@ $h_once.applyTransforms(applyTransforms);const transforms=freeze({
|
|
|
5868
6030
|
applyTransforms: freeze(applyTransforms)});$h_once.transforms(transforms);
|
|
5869
6031
|
})()
|
|
5870
6032
|
,
|
|
5871
|
-
// === functors[
|
|
5872
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
6033
|
+
// === functors[29] ===
|
|
6034
|
+
({ 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)]]]]]);
|
|
5873
6035
|
|
|
5874
6036
|
|
|
5875
6037
|
|
|
@@ -6051,8 +6213,8 @@ const getScopeConstants= (globalObject, moduleLexicals= {})=> {
|
|
|
6051
6213
|
};$h_once.getScopeConstants(getScopeConstants);
|
|
6052
6214
|
})()
|
|
6053
6215
|
,
|
|
6054
|
-
// === functors[
|
|
6055
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
6216
|
+
// === functors[30] ===
|
|
6217
|
+
({ 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)]]]]]);
|
|
6056
6218
|
|
|
6057
6219
|
|
|
6058
6220
|
|
|
@@ -6164,8 +6326,8 @@ const makeEvaluate= (context)=>{
|
|
|
6164
6326
|
};$h_once.makeEvaluate(makeEvaluate);
|
|
6165
6327
|
})()
|
|
6166
6328
|
,
|
|
6167
|
-
// === functors[
|
|
6168
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
6329
|
+
// === functors[31] ===
|
|
6330
|
+
({ 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)]]]]]);
|
|
6169
6331
|
|
|
6170
6332
|
|
|
6171
6333
|
|
|
@@ -6277,8 +6439,8 @@ const makeSafeEvaluator= ({
|
|
|
6277
6439
|
};$h_once.makeSafeEvaluator(makeSafeEvaluator);
|
|
6278
6440
|
})()
|
|
6279
6441
|
,
|
|
6280
|
-
// === functors[
|
|
6281
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
6442
|
+
// === functors[32] ===
|
|
6443
|
+
({ 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)]]]]]);
|
|
6282
6444
|
|
|
6283
6445
|
|
|
6284
6446
|
|
|
@@ -6330,8 +6492,8 @@ const tameFunctionToString= ()=> {
|
|
|
6330
6492
|
};$h_once.tameFunctionToString(tameFunctionToString);
|
|
6331
6493
|
})()
|
|
6332
6494
|
,
|
|
6333
|
-
// === functors[
|
|
6334
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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);
|
|
6495
|
+
// === functors[33] ===
|
|
6496
|
+
({ 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);
|
|
6335
6497
|
|
|
6336
6498
|
|
|
6337
6499
|
|
|
@@ -6350,12 +6512,10 @@ function tameDomains(domainTaming= 'safe') {
|
|
|
6350
6512
|
}
|
|
6351
6513
|
|
|
6352
6514
|
// Protect against the hazard presented by Node.js domains.
|
|
6353
|
-
|
|
6515
|
+
const globalProcess= globalThis.process|| undefined;
|
|
6516
|
+
if( typeof globalProcess=== 'object') {
|
|
6354
6517
|
// Check whether domains were initialized.
|
|
6355
|
-
const domainDescriptor= getOwnPropertyDescriptor(
|
|
6356
|
-
globalThis.process,
|
|
6357
|
-
'domain');
|
|
6358
|
-
|
|
6518
|
+
const domainDescriptor= getOwnPropertyDescriptor(globalProcess, 'domain');
|
|
6359
6519
|
if( domainDescriptor!== undefined&& domainDescriptor.get!== undefined) {
|
|
6360
6520
|
// The domain descriptor on Node.js initially has value: null, which
|
|
6361
6521
|
// becomes a get, set pair after domains initialize.
|
|
@@ -6370,7 +6530,7 @@ function tameDomains(domainTaming= 'safe') {
|
|
|
6370
6530
|
// The domain module merely throws an exception when it attempts to define
|
|
6371
6531
|
// the domain property of the process global during its initialization.
|
|
6372
6532
|
// We have no better recourse because Node.js uses defineProperty too.
|
|
6373
|
-
defineProperty(
|
|
6533
|
+
defineProperty(globalProcess, 'domain', {
|
|
6374
6534
|
value: null,
|
|
6375
6535
|
configurable: false,
|
|
6376
6536
|
writable: false,
|
|
@@ -6380,8 +6540,8 @@ function tameDomains(domainTaming= 'safe') {
|
|
|
6380
6540
|
}
|
|
6381
6541
|
})()
|
|
6382
6542
|
,
|
|
6383
|
-
// === functors[
|
|
6384
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let WeakSet,arrayFilter,arrayMap,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["isError", [$h_a => (isError = $h_a)]],["stringEndsWith", [$h_a => (stringEndsWith = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
6543
|
+
// === functors[34] ===
|
|
6544
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; let WeakSet,arrayFilter,arrayMap,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["isError", [$h_a => (isError = $h_a)]],["stringEndsWith", [$h_a => (stringEndsWith = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
6385
6545
|
|
|
6386
6546
|
|
|
6387
6547
|
|
|
@@ -6766,8 +6926,8 @@ const filterConsole= (baseConsole, filter, _topic= undefined)=> {
|
|
|
6766
6926
|
freeze(filterConsole);
|
|
6767
6927
|
})()
|
|
6768
6928
|
,
|
|
6769
|
-
// === functors[
|
|
6770
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
6929
|
+
// === functors[35] ===
|
|
6930
|
+
({ 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)]]]]]);
|
|
6771
6931
|
|
|
6772
6932
|
|
|
6773
6933
|
|
|
@@ -6891,8 +7051,8 @@ const makeRejectionHandlers= (reportReason)=>{
|
|
|
6891
7051
|
};$h_once.makeRejectionHandlers(makeRejectionHandlers);
|
|
6892
7052
|
})()
|
|
6893
7053
|
,
|
|
6894
|
-
// === functors[
|
|
6895
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
7054
|
+
// === functors[36] ===
|
|
7055
|
+
({ 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)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
6896
7056
|
|
|
6897
7057
|
|
|
6898
7058
|
|
|
@@ -6907,35 +7067,13 @@ const makeRejectionHandlers= (reportReason)=>{
|
|
|
6907
7067
|
|
|
6908
7068
|
|
|
6909
7069
|
|
|
6910
|
-
const wrapLogger= (logger, thisArg)=>
|
|
6911
|
-
freeze((...args)=> apply(logger, thisArg, args));
|
|
6912
7070
|
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
typeof console!== 'undefined'?
|
|
6917
|
-
console:
|
|
6918
|
-
typeof print=== 'function'?
|
|
6919
|
-
// Make a good-enough console for eshost (including only functions that
|
|
6920
|
-
// log at a specific level with no special argument interpretation).
|
|
6921
|
-
// https://console.spec.whatwg.org/#logging
|
|
6922
|
-
((p)=>freeze({ debug: p, log: p, info: p, warn: p, error: p}))(
|
|
6923
|
-
// eslint-disable-next-line no-undef
|
|
6924
|
-
wrapLogger(print)):
|
|
6925
|
-
|
|
6926
|
-
undefined;
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
// Upgrade a log-only console (as in `eshost -h SpiderMonkey`).
|
|
6930
|
-
if( originalConsole&& originalConsole.log) {
|
|
6931
|
-
for( const methodName of ['warn', 'error']) {
|
|
6932
|
-
if( !originalConsole[methodName]) {
|
|
6933
|
-
defineProperty(originalConsole, methodName, {
|
|
6934
|
-
value: wrapLogger(originalConsole.log, originalConsole)});
|
|
7071
|
+
const failFast= (message)=>{
|
|
7072
|
+
throw TypeError(message);
|
|
7073
|
+
};
|
|
6935
7074
|
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
}
|
|
7075
|
+
const wrapLogger= (logger, thisArg)=>
|
|
7076
|
+
freeze((...args)=> apply(logger, thisArg, args));
|
|
6939
7077
|
|
|
6940
7078
|
/**
|
|
6941
7079
|
* Wrap console unless suppressed.
|
|
@@ -6954,9 +7092,9 @@ const tameConsole= (
|
|
|
6954
7092
|
unhandledRejectionTrapping= 'report',
|
|
6955
7093
|
optGetStackString= undefined)=>
|
|
6956
7094
|
{
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
7095
|
+
consoleTaming=== 'safe'||
|
|
7096
|
+
consoleTaming=== 'unsafe'||
|
|
7097
|
+
failFast( `unrecognized consoleTaming ${consoleTaming}`);
|
|
6960
7098
|
|
|
6961
7099
|
let loggedErrorHandler;
|
|
6962
7100
|
if( optGetStackString=== undefined) {
|
|
@@ -6967,6 +7105,34 @@ const tameConsole= (
|
|
|
6967
7105
|
getStackString: optGetStackString};
|
|
6968
7106
|
|
|
6969
7107
|
}
|
|
7108
|
+
|
|
7109
|
+
// eslint-disable-next-line no-restricted-globals
|
|
7110
|
+
const originalConsole= /** @type {VirtualConsole} */
|
|
7111
|
+
// eslint-disable-next-line no-nested-ternary
|
|
7112
|
+
typeof globalThis.console!== 'undefined'?
|
|
7113
|
+
globalThis.console:
|
|
7114
|
+
typeof globalThis.print=== 'function'?
|
|
7115
|
+
// Make a good-enough console for eshost (including only functions that
|
|
7116
|
+
// log at a specific level with no special argument interpretation).
|
|
7117
|
+
// https://console.spec.whatwg.org/#logging
|
|
7118
|
+
((p)=>freeze({ debug: p, log: p, info: p, warn: p, error: p}))(
|
|
7119
|
+
// eslint-disable-next-line no-undef
|
|
7120
|
+
wrapLogger(globalThis.print)):
|
|
7121
|
+
|
|
7122
|
+
undefined;
|
|
7123
|
+
|
|
7124
|
+
|
|
7125
|
+
// Upgrade a log-only console (as in `eshost -h SpiderMonkey`).
|
|
7126
|
+
if( originalConsole&& originalConsole.log) {
|
|
7127
|
+
for( const methodName of ['warn', 'error']) {
|
|
7128
|
+
if( !originalConsole[methodName]) {
|
|
7129
|
+
defineProperty(originalConsole, methodName, {
|
|
7130
|
+
value: wrapLogger(originalConsole.log, originalConsole)});
|
|
7131
|
+
|
|
7132
|
+
}
|
|
7133
|
+
}
|
|
7134
|
+
}
|
|
7135
|
+
|
|
6970
7136
|
const ourConsole= /** @type {VirtualConsole} */
|
|
6971
7137
|
consoleTaming=== 'unsafe'?
|
|
6972
7138
|
originalConsole:
|
|
@@ -6989,21 +7155,36 @@ const tameConsole= (
|
|
|
6989
7155
|
/* eslint-disable @endo/no-polymorphic-call */
|
|
6990
7156
|
|
|
6991
7157
|
// Node.js
|
|
6992
|
-
|
|
6993
|
-
|
|
7158
|
+
const globalProcess= globalThis.process|| undefined;
|
|
7159
|
+
if(
|
|
7160
|
+
errorTrapping!== 'none'&&
|
|
7161
|
+
typeof globalProcess=== 'object'&&
|
|
7162
|
+
typeof globalProcess.on=== 'function')
|
|
7163
|
+
{
|
|
7164
|
+
let terminate;
|
|
7165
|
+
if( errorTrapping=== 'platform'|| errorTrapping=== 'exit') {
|
|
7166
|
+
const { exit}= globalProcess;
|
|
7167
|
+
// If there is a function-valued process.on but no function-valued process.exit,
|
|
7168
|
+
// fail early without caring whether errorTrapping is "platform" only by default.
|
|
7169
|
+
typeof exit=== 'function'|| failFast('missing process.exit');
|
|
7170
|
+
terminate= ()=> exit(globalProcess.exitCode|| -1);
|
|
7171
|
+
}else if( errorTrapping=== 'abort') {
|
|
7172
|
+
terminate= globalProcess.abort;
|
|
7173
|
+
typeof terminate=== 'function'|| failFast('missing process.abort');
|
|
7174
|
+
}
|
|
7175
|
+
|
|
7176
|
+
globalProcess.on('uncaughtException', (error)=>{
|
|
6994
7177
|
// causalConsole is born frozen so not vulnerable to method tampering.
|
|
6995
7178
|
ourConsole.error(error);
|
|
6996
|
-
if(
|
|
6997
|
-
|
|
6998
|
-
}else if( errorTrapping=== 'abort') {
|
|
6999
|
-
globalThis.process.abort();
|
|
7179
|
+
if( terminate) {
|
|
7180
|
+
terminate();
|
|
7000
7181
|
}
|
|
7001
7182
|
});
|
|
7002
7183
|
}
|
|
7003
|
-
|
|
7004
7184
|
if(
|
|
7005
7185
|
unhandledRejectionTrapping!== 'none'&&
|
|
7006
|
-
|
|
7186
|
+
typeof globalProcess=== 'object'&&
|
|
7187
|
+
typeof globalProcess.on=== 'function')
|
|
7007
7188
|
{
|
|
7008
7189
|
const handleRejection= (reason)=>{
|
|
7009
7190
|
// 'platform' and 'report' just log the reason.
|
|
@@ -7013,32 +7194,32 @@ const tameConsole= (
|
|
|
7013
7194
|
const h= makeRejectionHandlers(handleRejection);
|
|
7014
7195
|
if( h) {
|
|
7015
7196
|
// Rejection handlers are supported.
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7197
|
+
globalProcess.on('unhandledRejection', h.unhandledRejectionHandler);
|
|
7198
|
+
globalProcess.on('rejectionHandled', h.rejectionHandledHandler);
|
|
7199
|
+
globalProcess.on('exit', h.processTerminationHandler);
|
|
7019
7200
|
}
|
|
7020
7201
|
}
|
|
7021
7202
|
|
|
7022
7203
|
// Browser
|
|
7204
|
+
const globalWindow= globalThis.window|| undefined;
|
|
7023
7205
|
if(
|
|
7024
7206
|
errorTrapping!== 'none'&&
|
|
7025
|
-
|
|
7026
|
-
|
|
7207
|
+
typeof globalWindow=== 'object'&&
|
|
7208
|
+
typeof globalWindow.addEventListener=== 'function')
|
|
7027
7209
|
{
|
|
7028
|
-
|
|
7210
|
+
globalWindow.addEventListener('error', (event)=>{
|
|
7029
7211
|
event.preventDefault();
|
|
7030
7212
|
// 'platform' and 'report' just log the reason.
|
|
7031
7213
|
ourConsole.error(event.error);
|
|
7032
7214
|
if( errorTrapping=== 'exit'|| errorTrapping=== 'abort') {
|
|
7033
|
-
|
|
7215
|
+
globalWindow.location.href= `about:blank`;
|
|
7034
7216
|
}
|
|
7035
7217
|
});
|
|
7036
7218
|
}
|
|
7037
|
-
|
|
7038
7219
|
if(
|
|
7039
7220
|
unhandledRejectionTrapping!== 'none'&&
|
|
7040
|
-
|
|
7041
|
-
|
|
7221
|
+
typeof globalWindow=== 'object'&&
|
|
7222
|
+
typeof globalWindow.addEventListener=== 'function')
|
|
7042
7223
|
{
|
|
7043
7224
|
const handleRejection= (reason)=>{
|
|
7044
7225
|
ourConsole.error('SES_UNHANDLED_REJECTION:', reason);
|
|
@@ -7047,17 +7228,17 @@ const tameConsole= (
|
|
|
7047
7228
|
const h= makeRejectionHandlers(handleRejection);
|
|
7048
7229
|
if( h) {
|
|
7049
7230
|
// Rejection handlers are supported.
|
|
7050
|
-
|
|
7231
|
+
globalWindow.addEventListener('unhandledrejection', (event)=>{
|
|
7051
7232
|
event.preventDefault();
|
|
7052
7233
|
h.unhandledRejectionHandler(event.reason, event.promise);
|
|
7053
7234
|
});
|
|
7054
7235
|
|
|
7055
|
-
|
|
7236
|
+
globalWindow.addEventListener('rejectionhandled', (event)=>{
|
|
7056
7237
|
event.preventDefault();
|
|
7057
7238
|
h.rejectionHandledHandler(event.promise);
|
|
7058
7239
|
});
|
|
7059
7240
|
|
|
7060
|
-
|
|
7241
|
+
globalWindow.addEventListener('beforeunload', (_event)=>{
|
|
7061
7242
|
h.processTerminationHandler();
|
|
7062
7243
|
});
|
|
7063
7244
|
}
|
|
@@ -7068,8 +7249,8 @@ const tameConsole= (
|
|
|
7068
7249
|
};$h_once.tameConsole(tameConsole);
|
|
7069
7250
|
})()
|
|
7070
7251
|
,
|
|
7071
|
-
// === functors[
|
|
7072
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,regexpTest,weakmapGet,weakmapSet,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arraySlice", [$h_a => (arraySlice = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["reflectSet", [$h_a => (reflectSet = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]],["regexpTest", [$h_a => (regexpTest = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]]]);
|
|
7252
|
+
// === functors[37] ===
|
|
7253
|
+
({ 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;$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)]]]]]);
|
|
7073
7254
|
|
|
7074
7255
|
|
|
7075
7256
|
|
|
@@ -7408,8 +7589,8 @@ const tameV8ErrorConstructor= (
|
|
|
7408
7589
|
};$h_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
|
|
7409
7590
|
})()
|
|
7410
7591
|
,
|
|
7411
|
-
// === functors[
|
|
7412
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let FERAL_ERROR,TypeError,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,NativeErrors,tameV8ErrorConstructor;$h_imports([["../commons.js", [["FERAL_ERROR", [$h_a => (FERAL_ERROR = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["setPrototypeOf", [$h_a => (setPrototypeOf = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]]]],["../permits.js", [["NativeErrors", [$h_a => (NativeErrors = $h_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor", [$h_a => (tameV8ErrorConstructor = $h_a)]]]]]);
|
|
7592
|
+
// === functors[38] ===
|
|
7593
|
+
({ 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,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)]]]],["../permits.js", [["NativeErrors", [$h_a => (NativeErrors = $h_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor", [$h_a => (tameV8ErrorConstructor = $h_a)]]]]]);
|
|
7413
7594
|
|
|
7414
7595
|
|
|
7415
7596
|
|
|
@@ -7662,8 +7843,8 @@ function tameErrorConstructor(
|
|
|
7662
7843
|
}$h_once.default( tameErrorConstructor);
|
|
7663
7844
|
})()
|
|
7664
7845
|
,
|
|
7665
|
-
// === functors[
|
|
7666
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let ReferenceError,TypeError,Map,Set,arrayJoin,arrayMap,arrayPush,create,freeze,mapGet,mapHas,mapSet,setAdd,promiseCatch,promiseThen,values,weakmapGet,assert;$h_imports([["./commons.js", [["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["Set", [$h_a => (Set = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["promiseCatch", [$h_a => (promiseCatch = $h_a)]],["promiseThen", [$h_a => (promiseThen = $h_a)]],["values", [$h_a => (values = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
7846
|
+
// === functors[39] ===
|
|
7847
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; let ReferenceError,TypeError,Map,Set,arrayJoin,arrayMap,arrayPush,create,freeze,mapGet,mapHas,mapSet,setAdd,promiseCatch,promiseThen,values,weakmapGet,assert;$h_imports([["./commons.js", [["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["Set", [$h_a => (Set = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["promiseCatch", [$h_a => (promiseCatch = $h_a)]],["promiseThen", [$h_a => (promiseThen = $h_a)]],["values", [$h_a => (values = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
7667
7848
|
|
|
7668
7849
|
|
|
7669
7850
|
|
|
@@ -8026,8 +8207,9 @@ const load= async(
|
|
|
8026
8207
|
};$h_once.load(load);
|
|
8027
8208
|
})()
|
|
8028
8209
|
,
|
|
8029
|
-
// === functors[
|
|
8030
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,weakmapSet,assert;$h_imports([["./module-load.js", [["makeAlias", [$h_a => (makeAlias = $h_a)]]]],["./commons.js", [["Proxy", [$h_a => (Proxy = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["reflectGet", [$h_a => (reflectGet = $h_a)]],["reflectGetOwnPropertyDescriptor", [$h_a => (reflectGetOwnPropertyDescriptor = $h_a)]],["reflectHas", [$h_a => (reflectHas = $h_a)]],["reflectIsExtensible", [$h_a => (reflectIsExtensible = $h_a)]],["reflectPreventExtensions", [$h_a => (reflectPreventExtensions = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
8210
|
+
// === functors[40] ===
|
|
8211
|
+
({ 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)]]]]]);
|
|
8212
|
+
|
|
8031
8213
|
|
|
8032
8214
|
|
|
8033
8215
|
|
|
@@ -8080,13 +8262,21 @@ const { quote: q}= assert;
|
|
|
8080
8262
|
//
|
|
8081
8263
|
const deferExports= ()=> {
|
|
8082
8264
|
let active= false;
|
|
8083
|
-
const
|
|
8265
|
+
const exportsTarget= create(null, {
|
|
8266
|
+
// Make this appear like an ESM module namespace object.
|
|
8267
|
+
[toStringTagSymbol]: {
|
|
8268
|
+
value: 'Module',
|
|
8269
|
+
writable: false,
|
|
8270
|
+
enumerable: false,
|
|
8271
|
+
configurable: false}});
|
|
8272
|
+
|
|
8273
|
+
|
|
8084
8274
|
return freeze({
|
|
8085
8275
|
activate() {
|
|
8086
8276
|
active= true;
|
|
8087
8277
|
},
|
|
8088
|
-
|
|
8089
|
-
exportsProxy: new Proxy(
|
|
8278
|
+
exportsTarget,
|
|
8279
|
+
exportsProxy: new Proxy(exportsTarget, {
|
|
8090
8280
|
get(_target, name, receiver) {
|
|
8091
8281
|
if( !active) {
|
|
8092
8282
|
throw TypeError(
|
|
@@ -8095,7 +8285,7 @@ const deferExports= ()=> {
|
|
|
8095
8285
|
} of module exports namespace, the module has not yet begun to execute`);
|
|
8096
8286
|
|
|
8097
8287
|
}
|
|
8098
|
-
return reflectGet(
|
|
8288
|
+
return reflectGet(exportsTarget, name, receiver);
|
|
8099
8289
|
},
|
|
8100
8290
|
set(_target, name, _value) {
|
|
8101
8291
|
throw TypeError(
|
|
@@ -8110,7 +8300,7 @@ const deferExports= ()=> {
|
|
|
8110
8300
|
}, the module has not yet begun to execute`);
|
|
8111
8301
|
|
|
8112
8302
|
}
|
|
8113
|
-
return reflectHas(
|
|
8303
|
+
return reflectHas(exportsTarget, name);
|
|
8114
8304
|
},
|
|
8115
8305
|
deleteProperty(_target, name) {
|
|
8116
8306
|
throw TypeError(
|
|
@@ -8123,7 +8313,7 @@ const deferExports= ()=> {
|
|
|
8123
8313
|
'Cannot enumerate keys, the module has not yet begun to execute');
|
|
8124
8314
|
|
|
8125
8315
|
}
|
|
8126
|
-
return ownKeys(
|
|
8316
|
+
return ownKeys(exportsTarget);
|
|
8127
8317
|
},
|
|
8128
8318
|
getOwnPropertyDescriptor(_target, name) {
|
|
8129
8319
|
if( !active) {
|
|
@@ -8133,7 +8323,7 @@ const deferExports= ()=> {
|
|
|
8133
8323
|
}, the module has not yet begun to execute`);
|
|
8134
8324
|
|
|
8135
8325
|
}
|
|
8136
|
-
return reflectGetOwnPropertyDescriptor(
|
|
8326
|
+
return reflectGetOwnPropertyDescriptor(exportsTarget, name);
|
|
8137
8327
|
},
|
|
8138
8328
|
preventExtensions(_target) {
|
|
8139
8329
|
if( !active) {
|
|
@@ -8141,7 +8331,7 @@ const deferExports= ()=> {
|
|
|
8141
8331
|
'Cannot prevent extensions of module exports namespace, the module has not yet begun to execute');
|
|
8142
8332
|
|
|
8143
8333
|
}
|
|
8144
|
-
return reflectPreventExtensions(
|
|
8334
|
+
return reflectPreventExtensions(exportsTarget);
|
|
8145
8335
|
},
|
|
8146
8336
|
isExtensible() {
|
|
8147
8337
|
if( !active) {
|
|
@@ -8149,7 +8339,7 @@ const deferExports= ()=> {
|
|
|
8149
8339
|
'Cannot check extensibility of module exports namespace, the module has not yet begun to execute');
|
|
8150
8340
|
|
|
8151
8341
|
}
|
|
8152
|
-
return reflectIsExtensible(
|
|
8342
|
+
return reflectIsExtensible(exportsTarget);
|
|
8153
8343
|
},
|
|
8154
8344
|
getPrototypeOf(_target) {
|
|
8155
8345
|
return null;
|
|
@@ -8176,12 +8366,31 @@ const deferExports= ()=> {
|
|
|
8176
8366
|
|
|
8177
8367
|
};
|
|
8178
8368
|
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8369
|
+
/**
|
|
8370
|
+
* @typedef {object} DeferredExports
|
|
8371
|
+
* @property {Record<string, any>} exportsTarget - The object to which a
|
|
8372
|
+
* module's exports will be added.
|
|
8373
|
+
* @property {Record<string, any>} exportsProxy - A proxy over the `exportsTarget`,
|
|
8374
|
+
* used to expose its "exports" to other compartments.
|
|
8375
|
+
* @property {() => void} activate - Activate the `exportsProxy` such that it can
|
|
8376
|
+
* be used as a module namespace object.
|
|
8377
|
+
*/
|
|
8378
|
+
|
|
8379
|
+
/**
|
|
8380
|
+
* Memoizes the creation of a deferred module exports namespace proxy for any
|
|
8381
|
+
* arbitrary full specifier in a compartment. It also records the compartment
|
|
8382
|
+
* and specifier affiliated with that module exports namespace proxy so it
|
|
8383
|
+
* can be used as an alias into another compartment when threaded through
|
|
8384
|
+
* a compartment's `moduleMap` argument.
|
|
8385
|
+
*
|
|
8386
|
+
* @param {*} compartment - The compartment to retrieve deferred exports from.
|
|
8387
|
+
* @param {*} compartmentPrivateFields - The private fields of the compartment.
|
|
8388
|
+
* @param {*} moduleAliases - The module aliases of the compartment.
|
|
8389
|
+
* @param {string} specifier - The module specifier to retrieve deferred exports for.
|
|
8390
|
+
* @returns {DeferredExports} - The deferred exports for the module specifier of
|
|
8391
|
+
* the compartment.
|
|
8392
|
+
*/$h_once.deferExports(deferExports);
|
|
8393
|
+
const getDeferredExports= (
|
|
8185
8394
|
compartment,
|
|
8186
8395
|
compartmentPrivateFields,
|
|
8187
8396
|
moduleAliases,
|
|
@@ -8201,8 +8410,8 @@ $h_once.deferExports(deferExports);const getDeferredExports=(
|
|
|
8201
8410
|
};$h_once.getDeferredExports(getDeferredExports);
|
|
8202
8411
|
})()
|
|
8203
8412
|
,
|
|
8204
|
-
// === functors[
|
|
8205
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
8413
|
+
// === functors[41] ===
|
|
8414
|
+
({ 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)]]]]]);
|
|
8206
8415
|
|
|
8207
8416
|
|
|
8208
8417
|
|
|
@@ -8297,8 +8506,8 @@ const compartmentEvaluate= (compartmentFields, source, options)=> {
|
|
|
8297
8506
|
};$h_once.compartmentEvaluate(compartmentEvaluate);
|
|
8298
8507
|
})()
|
|
8299
8508
|
,
|
|
8300
|
-
// === functors[
|
|
8301
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
8509
|
+
// === functors[42] ===
|
|
8510
|
+
({ 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)]]]]]);
|
|
8302
8511
|
|
|
8303
8512
|
|
|
8304
8513
|
|
|
@@ -8332,7 +8541,7 @@ const makeThirdPartyModuleInstance= (
|
|
|
8332
8541
|
moduleSpecifier,
|
|
8333
8542
|
resolvedImports)=>
|
|
8334
8543
|
{
|
|
8335
|
-
const { exportsProxy,
|
|
8544
|
+
const { exportsProxy, exportsTarget, activate}= getDeferredExports(
|
|
8336
8545
|
compartment,
|
|
8337
8546
|
weakmapGet(compartmentPrivateFields, compartment),
|
|
8338
8547
|
moduleAliases,
|
|
@@ -8351,7 +8560,7 @@ const makeThirdPartyModuleInstance= (
|
|
|
8351
8560
|
|
|
8352
8561
|
}
|
|
8353
8562
|
arrayForEach(staticModuleRecord.exports, (name)=>{
|
|
8354
|
-
let value=
|
|
8563
|
+
let value= exportsTarget[name];
|
|
8355
8564
|
const updaters= [];
|
|
8356
8565
|
|
|
8357
8566
|
const get= ()=> value;
|
|
@@ -8363,7 +8572,7 @@ const makeThirdPartyModuleInstance= (
|
|
|
8363
8572
|
}
|
|
8364
8573
|
};
|
|
8365
8574
|
|
|
8366
|
-
defineProperty(
|
|
8575
|
+
defineProperty(exportsTarget, name, {
|
|
8367
8576
|
get,
|
|
8368
8577
|
set,
|
|
8369
8578
|
enumerable: true,
|
|
@@ -8375,9 +8584,9 @@ const makeThirdPartyModuleInstance= (
|
|
|
8375
8584
|
update(value);
|
|
8376
8585
|
};
|
|
8377
8586
|
});
|
|
8378
|
-
// This is enough to support import * from cjs - the '*' field doesn't need to be in exports nor
|
|
8587
|
+
// This is enough to support import * from cjs - the '*' field doesn't need to be in exports nor exportsTarget because import will only ever access it via notifiers
|
|
8379
8588
|
notifiers['*']= (update)=>{
|
|
8380
|
-
update(
|
|
8589
|
+
update(exportsTarget);
|
|
8381
8590
|
};
|
|
8382
8591
|
}
|
|
8383
8592
|
|
|
@@ -8397,7 +8606,7 @@ const makeThirdPartyModuleInstance= (
|
|
|
8397
8606
|
try {
|
|
8398
8607
|
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
8399
8608
|
staticModuleRecord.execute(
|
|
8400
|
-
|
|
8609
|
+
exportsTarget,
|
|
8401
8610
|
compartment,
|
|
8402
8611
|
resolvedImports);
|
|
8403
8612
|
|
|
@@ -8443,7 +8652,7 @@ $h_once.makeThirdPartyModuleInstance(makeThirdPartyModuleInstance);const make
|
|
|
8443
8652
|
|
|
8444
8653
|
const { __shimTransforms__, importMetaHook}= compartmentFields;
|
|
8445
8654
|
|
|
8446
|
-
const { exportsProxy,
|
|
8655
|
+
const { exportsProxy, exportsTarget, activate}= getDeferredExports(
|
|
8447
8656
|
compartment,
|
|
8448
8657
|
compartmentFields,
|
|
8449
8658
|
moduleAliases,
|
|
@@ -8642,7 +8851,7 @@ $h_once.makeThirdPartyModuleInstance(makeThirdPartyModuleInstance);const make
|
|
|
8642
8851
|
|
|
8643
8852
|
|
|
8644
8853
|
const notifyStar= (update)=>{
|
|
8645
|
-
update(
|
|
8854
|
+
update(exportsTarget);
|
|
8646
8855
|
};
|
|
8647
8856
|
notifiers['*']= notifyStar;
|
|
8648
8857
|
|
|
@@ -8735,10 +8944,10 @@ $h_once.makeThirdPartyModuleInstance(makeThirdPartyModuleInstance);const make
|
|
|
8735
8944
|
// and the string must correspond to a valid identifier, sorting these
|
|
8736
8945
|
// properties works for this specific case.
|
|
8737
8946
|
arrayForEach(arraySort(keys(exportsProps)), (k)=>
|
|
8738
|
-
defineProperty(
|
|
8947
|
+
defineProperty(exportsTarget, k, exportsProps[k]));
|
|
8739
8948
|
|
|
8740
8949
|
|
|
8741
|
-
freeze(
|
|
8950
|
+
freeze(exportsTarget);
|
|
8742
8951
|
activate();
|
|
8743
8952
|
}
|
|
8744
8953
|
|
|
@@ -8788,8 +8997,8 @@ $h_once.makeThirdPartyModuleInstance(makeThirdPartyModuleInstance);const make
|
|
|
8788
8997
|
};$h_once.makeModuleInstance(makeModuleInstance);
|
|
8789
8998
|
})()
|
|
8790
8999
|
,
|
|
8791
|
-
// === functors[
|
|
8792
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let assert,makeModuleInstance,makeThirdPartyModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isObject,mapGet,mapHas,mapSet,weakmapGet;$h_imports([["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./module-instance.js", [["makeModuleInstance", [$h_a => (makeModuleInstance = $h_a)]],["makeThirdPartyModuleInstance", [$h_a => (makeThirdPartyModuleInstance = $h_a)]]]],["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["isArray", [$h_a => (isArray = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]]]);
|
|
9000
|
+
// === functors[43] ===
|
|
9001
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; let assert,makeModuleInstance,makeThirdPartyModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isObject,mapGet,mapHas,mapSet,weakmapGet;$h_imports([["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./module-instance.js", [["makeModuleInstance", [$h_a => (makeModuleInstance = $h_a)]],["makeThirdPartyModuleInstance", [$h_a => (makeThirdPartyModuleInstance = $h_a)]]]],["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["isArray", [$h_a => (isArray = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]]]);
|
|
8793
9002
|
|
|
8794
9003
|
|
|
8795
9004
|
|
|
@@ -8968,8 +9177,9 @@ const instantiate= (
|
|
|
8968
9177
|
};$h_once.instantiate(instantiate);
|
|
8969
9178
|
})()
|
|
8970
9179
|
,
|
|
8971
|
-
// === functors[
|
|
8972
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let Map,ReferenceError,TypeError,WeakMap,assign,defineProperties,entries,promiseThen,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,sharedGlobalPropertyNames,load,link,getDeferredExports,assert,compartmentEvaluate,makeSafeEvaluator;$h_imports([["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["assign", [$h_a => (assign = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["promiseThen", [$h_a => (promiseThen = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]]]],["./global-object.js", [["setGlobalObjectSymbolUnscopables", [$h_a => (setGlobalObjectSymbolUnscopables = $h_a)]],["setGlobalObjectConstantProperties", [$h_a => (setGlobalObjectConstantProperties = $h_a)]],["setGlobalObjectMutableProperties", [$h_a => (setGlobalObjectMutableProperties = $h_a)]],["setGlobalObjectEvaluators", [$h_a => (setGlobalObjectEvaluators = $h_a)]]]],["./permits.js", [["sharedGlobalPropertyNames", [$h_a => (sharedGlobalPropertyNames = $h_a)]]]],["./module-load.js", [["load", [$h_a => (load = $h_a)]]]],["./module-link.js", [["link", [$h_a => (link = $h_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h_a => (getDeferredExports = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h_a => (compartmentEvaluate = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]]]);
|
|
9180
|
+
// === functors[44] ===
|
|
9181
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; let Map,ReferenceError,TypeError,WeakMap,assign,defineProperties,entries,promiseThen,toStringTagSymbol,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,sharedGlobalPropertyNames,load,link,getDeferredExports,assert,compartmentEvaluate,makeSafeEvaluator;$h_imports([["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["assign", [$h_a => (assign = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["entries", [$h_a => (entries = $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)]]]],["./permits.js", [["sharedGlobalPropertyNames", [$h_a => (sharedGlobalPropertyNames = $h_a)]]]],["./module-load.js", [["load", [$h_a => (load = $h_a)]]]],["./module-link.js", [["link", [$h_a => (link = $h_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h_a => (getDeferredExports = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h_a => (compartmentEvaluate = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]]]);
|
|
9182
|
+
|
|
8973
9183
|
|
|
8974
9184
|
|
|
8975
9185
|
|
|
@@ -9076,10 +9286,6 @@ const CompartmentPrototype= {
|
|
|
9076
9286
|
return compartmentEvaluate(compartmentFields, source, options);
|
|
9077
9287
|
},
|
|
9078
9288
|
|
|
9079
|
-
toString() {
|
|
9080
|
-
return '[object Compartment]';
|
|
9081
|
-
},
|
|
9082
|
-
|
|
9083
9289
|
module(specifier) {
|
|
9084
9290
|
if( typeof specifier!== 'string') {
|
|
9085
9291
|
throw TypeError('first argument of module() must be a string');
|
|
@@ -9136,7 +9342,19 @@ const CompartmentPrototype= {
|
|
|
9136
9342
|
assertModuleHooks(this);
|
|
9137
9343
|
|
|
9138
9344
|
return compartmentImportNow(/** @type {Compartment} */ this, specifier);
|
|
9139
|
-
}}
|
|
9345
|
+
}};
|
|
9346
|
+
|
|
9347
|
+
|
|
9348
|
+
// This causes `String(new Compartment())` to evaluate to `[object Compartment]`.
|
|
9349
|
+
// The descriptor follows the conventions of other globals with @@toStringTag
|
|
9350
|
+
// properties, e.g. Math.
|
|
9351
|
+
$h_once.CompartmentPrototype(CompartmentPrototype);defineProperties(CompartmentPrototype,{
|
|
9352
|
+
[toStringTagSymbol]: {
|
|
9353
|
+
value: 'Compartment',
|
|
9354
|
+
writable: false,
|
|
9355
|
+
enumerable: false,
|
|
9356
|
+
configurable: true}});
|
|
9357
|
+
|
|
9140
9358
|
|
|
9141
9359
|
|
|
9142
9360
|
defineProperties(InertCompartment, {
|
|
@@ -9263,8 +9481,8 @@ const makeCompartmentConstructor= (
|
|
|
9263
9481
|
};$h_once.makeCompartmentConstructor(makeCompartmentConstructor);
|
|
9264
9482
|
})()
|
|
9265
9483
|
,
|
|
9266
|
-
// === functors[
|
|
9267
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
9484
|
+
// === functors[45] ===
|
|
9485
|
+
({ 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)]]]]]);
|
|
9268
9486
|
|
|
9269
9487
|
|
|
9270
9488
|
|
|
@@ -9427,8 +9645,8 @@ const getAnonymousIntrinsics= ()=> {
|
|
|
9427
9645
|
};$h_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
|
|
9428
9646
|
})()
|
|
9429
9647
|
,
|
|
9430
|
-
// === functors[
|
|
9431
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let TypeError,freeze;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]]]);
|
|
9648
|
+
// === functors[46] ===
|
|
9649
|
+
({ 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)]]]]]);
|
|
9432
9650
|
|
|
9433
9651
|
|
|
9434
9652
|
const tameHarden= (safeHarden, hardenTaming)=> {
|
|
@@ -9459,8 +9677,8 @@ const tameHarden= (safeHarden, hardenTaming)=> {
|
|
|
9459
9677
|
freeze(tameHarden);
|
|
9460
9678
|
})()
|
|
9461
9679
|
,
|
|
9462
|
-
// === functors[
|
|
9463
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap;$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)]]]]]);
|
|
9680
|
+
// === functors[47] ===
|
|
9681
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap;$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)]]]]]);
|
|
9464
9682
|
|
|
9465
9683
|
|
|
9466
9684
|
|
|
@@ -9527,8 +9745,223 @@ const tameSymbolConstructor= ()=> {
|
|
|
9527
9745
|
};$h_once.tameSymbolConstructor(tameSymbolConstructor);
|
|
9528
9746
|
})()
|
|
9529
9747
|
,
|
|
9530
|
-
// === functors[
|
|
9531
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let
|
|
9748
|
+
// === functors[48] ===
|
|
9749
|
+
({ 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)]]]]]);
|
|
9750
|
+
|
|
9751
|
+
|
|
9752
|
+
|
|
9753
|
+
|
|
9754
|
+
|
|
9755
|
+
|
|
9756
|
+
const throws= (thunk)=>{
|
|
9757
|
+
try {
|
|
9758
|
+
thunk();
|
|
9759
|
+
return false;
|
|
9760
|
+
}catch( er) {
|
|
9761
|
+
return true;
|
|
9762
|
+
}
|
|
9763
|
+
};
|
|
9764
|
+
|
|
9765
|
+
/**
|
|
9766
|
+
* Exported for convenience of unit testing. Harmless, but not expected
|
|
9767
|
+
* to be useful by itself.
|
|
9768
|
+
*
|
|
9769
|
+
* @param {any} obj
|
|
9770
|
+
* @param {string|symbol} prop
|
|
9771
|
+
* @param {any} expectedValue
|
|
9772
|
+
* @returns {boolean}
|
|
9773
|
+
* Returns whether `tameFauxDataProperty` turned the property in question
|
|
9774
|
+
* from an apparent faux data property into the actual data property it
|
|
9775
|
+
* seemed to emulate.
|
|
9776
|
+
* If this function returns `false`, then we hope no effects happened.
|
|
9777
|
+
* However, sniffing out if an accessor property seems to be a faux data
|
|
9778
|
+
* property requires invoking the getter and setter functions that might
|
|
9779
|
+
* possibly have side effects.
|
|
9780
|
+
* `tameFauxDataProperty` is not in a position to tell.
|
|
9781
|
+
*/
|
|
9782
|
+
const tameFauxDataProperty= (obj, prop, expectedValue)=> {
|
|
9783
|
+
if( obj=== undefined) {
|
|
9784
|
+
// The object does not exist in this version of the platform
|
|
9785
|
+
return false;
|
|
9786
|
+
}
|
|
9787
|
+
const desc= getOwnPropertyDescriptor(obj, prop);
|
|
9788
|
+
if( !desc|| 'value'in desc) {
|
|
9789
|
+
// The property either doesn't exist, or is already an actual data property.
|
|
9790
|
+
return false;
|
|
9791
|
+
}
|
|
9792
|
+
const { get, set}= desc;
|
|
9793
|
+
if( typeof get!== 'function'|| typeof set!== 'function') {
|
|
9794
|
+
// A faux data property has both a getter and a setter
|
|
9795
|
+
return false;
|
|
9796
|
+
}
|
|
9797
|
+
if( get()!== expectedValue) {
|
|
9798
|
+
// The getter called by itself should produce the expectedValue
|
|
9799
|
+
return false;
|
|
9800
|
+
}
|
|
9801
|
+
if( apply(get, obj, [])!== expectedValue) {
|
|
9802
|
+
// The getter called with `this === obj` should also return the
|
|
9803
|
+
// expectedValue.
|
|
9804
|
+
return false;
|
|
9805
|
+
}
|
|
9806
|
+
const testValue= 'Seems to be a setter';
|
|
9807
|
+
const subject1= { __proto__: null};
|
|
9808
|
+
apply(set, subject1, [testValue]);
|
|
9809
|
+
if( subject1[prop]!== testValue) {
|
|
9810
|
+
// The setter called with an unrelated object as `this` should
|
|
9811
|
+
// set the property on the object.
|
|
9812
|
+
return false;
|
|
9813
|
+
}
|
|
9814
|
+
const subject2= { __proto__: obj};
|
|
9815
|
+
apply(set, subject2, [testValue]);
|
|
9816
|
+
if( subject2[prop]!== testValue) {
|
|
9817
|
+
// The setter called on an object that inherits from `obj` should
|
|
9818
|
+
// override the property from `obj` as if by assignment.
|
|
9819
|
+
return false;
|
|
9820
|
+
}
|
|
9821
|
+
if( !throws(()=> apply(set, obj, [expectedValue]))) {
|
|
9822
|
+
// The setter called with `this === obj` should throw without having
|
|
9823
|
+
// caused any effect.
|
|
9824
|
+
// This is the test that has the greatest danger of leaving behind some
|
|
9825
|
+
// persistent side effect. The most obvious one is to emulate a
|
|
9826
|
+
// successful assignment to the property. That's why this test
|
|
9827
|
+
// uses `expectedValue`, so that case is likely not to actually
|
|
9828
|
+
// change anything.
|
|
9829
|
+
return false;
|
|
9830
|
+
}
|
|
9831
|
+
if( 'originalValue'in get) {
|
|
9832
|
+
// The ses-shim uniquely, as far as we know, puts an `originalValue`
|
|
9833
|
+
// property on the getter, so that reflect property tranversal algorithms,
|
|
9834
|
+
// like `harden`, will traverse into the enulated value without
|
|
9835
|
+
// calling the getter. That does not happen until `permits-intrinsics.js`
|
|
9836
|
+
// which is much later. So if we see one this early, we should
|
|
9837
|
+
// not assume we understand what's going on.
|
|
9838
|
+
return false;
|
|
9839
|
+
}
|
|
9840
|
+
|
|
9841
|
+
// We assume that this code runs before any untrusted code runs, so
|
|
9842
|
+
// we do not need to worry about the above conditions passing because of
|
|
9843
|
+
// malicious intent. In fact, it runs even before vetted shims are supposed
|
|
9844
|
+
// to run, between repair and hardening. Given that, after all these tests
|
|
9845
|
+
// pass, we have adequately validated that the property in question is
|
|
9846
|
+
// an accessor function whose purpose is suppressing the override mistake,
|
|
9847
|
+
// i.e., enabling a non-writable property to be overridden by assignment.
|
|
9848
|
+
// In that case, here we *temporarily* turn it into the data property
|
|
9849
|
+
// it seems to emulate, but writable so that it does not trigger the
|
|
9850
|
+
// override mistake while in this temporary state.
|
|
9851
|
+
|
|
9852
|
+
// For those properties that are also listed in `enablements.js`,
|
|
9853
|
+
// that phase will re-enable override for these properties, but
|
|
9854
|
+
// via accessor functions that SES controls, so we know what they are
|
|
9855
|
+
// doing. In addition, the getter functions installed by
|
|
9856
|
+
// `enable-property-overrides.js` have an `originalValue` field
|
|
9857
|
+
// enabling meta-traversal code like harden to visit the original value
|
|
9858
|
+
// without calling the getter.
|
|
9859
|
+
|
|
9860
|
+
if( desc.configurable=== false) {
|
|
9861
|
+
// Even though it seems to be a faux data property, we're unable to fix it.
|
|
9862
|
+
return false;
|
|
9863
|
+
}
|
|
9864
|
+
|
|
9865
|
+
// Many of the `return false;` cases above plausibly should be turned into
|
|
9866
|
+
// errors, or an least generate warnings. However, for those, the checks
|
|
9867
|
+
// following this phase are likely to signal an error anyway.
|
|
9868
|
+
|
|
9869
|
+
// At this point, we have passed all our sniff checks for validating that
|
|
9870
|
+
// it seems to be a faux data property with the expected value. Turn
|
|
9871
|
+
// it into the actual data property it emulates, but writable so there is
|
|
9872
|
+
// not yet an override mistake problem.
|
|
9873
|
+
|
|
9874
|
+
defineProperty(obj, prop, {
|
|
9875
|
+
value: expectedValue,
|
|
9876
|
+
writable: true,
|
|
9877
|
+
enumerable: desc.enumerable,
|
|
9878
|
+
configurable: true});
|
|
9879
|
+
|
|
9880
|
+
|
|
9881
|
+
return true;
|
|
9882
|
+
};
|
|
9883
|
+
|
|
9884
|
+
/**
|
|
9885
|
+
* In JavaScript, the so-called "override mistake" is the inability to
|
|
9886
|
+
* override an inherited non-writable data property by assignment. A common
|
|
9887
|
+
* workaround is to instead define an accessor property that acts like
|
|
9888
|
+
* a non-writable data property, except that it allows an object that
|
|
9889
|
+
* inherits this property to override it by assignment. Let's call
|
|
9890
|
+
* an access property that acts this way a "faux data property". In this
|
|
9891
|
+
* ses-shim, `enable-property-overrides.js` makes the properties listed in
|
|
9892
|
+
* `enablements.js` into faux data properties.
|
|
9893
|
+
*
|
|
9894
|
+
* But the ses-shim is not alone in use of this trick. Starting with the
|
|
9895
|
+
* [Iterator Helpers proposal](https://github.com/tc39/proposal-iterator-helpers),
|
|
9896
|
+
* some properties are defined as (what we call) faux data properties.
|
|
9897
|
+
* Some of these are new properties (`Interator.prototype.constructor`) and
|
|
9898
|
+
* some are old data properties converted to accessor properties
|
|
9899
|
+
* (`Iterator.prototype[String.toStringTag]`). So the ses-shim needs to be
|
|
9900
|
+
* prepared for some enumerated set of properties to already be faux data
|
|
9901
|
+
* properties in the platform prior to our initialization.
|
|
9902
|
+
*
|
|
9903
|
+
* For these possible faux data properties, it is important that
|
|
9904
|
+
* `permits.js` describe each as a data property, so that it can further
|
|
9905
|
+
* constrain the apparent value (that allegedly would be returned by the
|
|
9906
|
+
* getter) according to its own permits.
|
|
9907
|
+
*
|
|
9908
|
+
* However, at the time of this writing, the precise behavior specified
|
|
9909
|
+
* by the iterator-helpers proposal for these faux data properties is
|
|
9910
|
+
* novel. We should not be too confident that all further such platform
|
|
9911
|
+
* additions do what we would now expect. So, for each of these possible
|
|
9912
|
+
* faux data properties, we do some sniffing to see if it behaves as we
|
|
9913
|
+
* currently expect a faux data property to act. If not, then
|
|
9914
|
+
* `tameFauxDataProperties` tries not to modify it, leaving it to later
|
|
9915
|
+
* checks, especially `permits-intrinsics.js`, to error when it sees an
|
|
9916
|
+
* unexpected accessor.
|
|
9917
|
+
*
|
|
9918
|
+
* If one of these enumerated accessor properties does seem to be
|
|
9919
|
+
* a faithful faux data property, then `tameFauxDataProperties` itself
|
|
9920
|
+
* *tempoarily* turns it into the actual data property that it seems to emulate.
|
|
9921
|
+
* This data property starts as writable, so that in this state it will
|
|
9922
|
+
* not trigger the override mistake, i.e., assignment to an object inheriting
|
|
9923
|
+
* this property is allowed to succeed at overriding this property.
|
|
9924
|
+
*
|
|
9925
|
+
* For those properties that should be a faux data property rather than an
|
|
9926
|
+
* actual one, such as those from the iterator-helpers proposal,
|
|
9927
|
+
* they should be listed as such in `enablements.js`, so
|
|
9928
|
+
* `enable-property-overrides.js` will turn it back into a faux data property.
|
|
9929
|
+
* But one controlled by the ses-shim, whose behavior we understand.
|
|
9930
|
+
*
|
|
9931
|
+
* `tameFauxDataProperties`, which turns these into actual data properties,
|
|
9932
|
+
* happens during the `repairIntrinsics` phase
|
|
9933
|
+
* of `lockdown`, before even vetted shim are supposed to run.
|
|
9934
|
+
* `enable-property-overrides.js` runs after vetted shims, turning the
|
|
9935
|
+
* appropriate ones back into faux data properties. Thus vetted shims
|
|
9936
|
+
* can observe the possibly non-conforming state where these are temporarily
|
|
9937
|
+
* actual data properties, rather than faux data properties.
|
|
9938
|
+
*
|
|
9939
|
+
* Coordinate the property enumeration here
|
|
9940
|
+
* with `enablements.js`, so the appropriate properties are
|
|
9941
|
+
* turned back to faux data properties.
|
|
9942
|
+
*
|
|
9943
|
+
* @param {Record<any,any>} intrinsics
|
|
9944
|
+
*/$h_once.tameFauxDataProperty(tameFauxDataProperty);
|
|
9945
|
+
const tameFauxDataProperties= (intrinsics)=>{
|
|
9946
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
9947
|
+
tameFauxDataProperty(
|
|
9948
|
+
intrinsics['%IteratorPrototype%'],
|
|
9949
|
+
'constructor',
|
|
9950
|
+
intrinsics.Iterator);
|
|
9951
|
+
|
|
9952
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
9953
|
+
tameFauxDataProperty(
|
|
9954
|
+
intrinsics['%IteratorPrototype%'],
|
|
9955
|
+
toStringTagSymbol,
|
|
9956
|
+
'Iterator');
|
|
9957
|
+
|
|
9958
|
+
};$h_once.tameFauxDataProperties(tameFauxDataProperties);
|
|
9959
|
+
})()
|
|
9960
|
+
,
|
|
9961
|
+
// === functors[49] ===
|
|
9962
|
+
({ 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,whitelistIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties;$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 => (whitelistIntrinsics = $h_a)]]]],["./tame-function-constructors.js", [["default", [$h_a => (tameFunctionConstructors = $h_a)]]]],["./tame-date-constructor.js", [["default", [$h_a => (tameDateConstructor = $h_a)]]]],["./tame-math-object.js", [["default", [$h_a => (tameMathObject = $h_a)]]]],["./tame-regexp-constructor.js", [["default", [$h_a => (tameRegExpConstructor = $h_a)]]]],["./enable-property-overrides.js", [["default", [$h_a => (enablePropertyOverrides = $h_a)]]]],["./tame-locale-methods.js", [["default", [$h_a => (tameLocaleMethods = $h_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties", [$h_a => (setGlobalObjectConstantProperties = $h_a)]],["setGlobalObjectMutableProperties", [$h_a => (setGlobalObjectMutableProperties = $h_a)]],["setGlobalObjectEvaluators", [$h_a => (setGlobalObjectEvaluators = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]],["./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)]]]],["./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)]]]]]);
|
|
9963
|
+
|
|
9964
|
+
|
|
9532
9965
|
|
|
9533
9966
|
|
|
9534
9967
|
|
|
@@ -9685,8 +10118,6 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9685
10118
|
// [`stackFiltering` options](https://github.com/Agoric/SES-shim/blob/master/packages/ses/docs/lockdown.md#stackfiltering-options)
|
|
9686
10119
|
// for an explanation.
|
|
9687
10120
|
|
|
9688
|
-
const { getEnvironmentOption: getenv}= makeEnvironmentCaptor(globalThis);
|
|
9689
|
-
|
|
9690
10121
|
const {
|
|
9691
10122
|
errorTaming= getenv('LOCKDOWN_ERROR_TAMING', 'safe'),
|
|
9692
10123
|
errorTrapping= /** @type {"platform" | "none" | "report" | "abort" | "exit" | undefined} */
|
|
@@ -9811,6 +10242,14 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9811
10242
|
|
|
9812
10243
|
const intrinsics= finalIntrinsics();
|
|
9813
10244
|
|
|
10245
|
+
const hostIntrinsics= { __proto__: null};
|
|
10246
|
+
|
|
10247
|
+
// The Node.js Buffer is a derived class of Uint8Array, and as such is often
|
|
10248
|
+
// passed around where a Uint8Array is expected.
|
|
10249
|
+
if( typeof globalThis.Buffer=== 'function') {
|
|
10250
|
+
hostIntrinsics.Buffer= globalThis.Buffer;
|
|
10251
|
+
}
|
|
10252
|
+
|
|
9814
10253
|
/**
|
|
9815
10254
|
* Wrap console unless suppressed.
|
|
9816
10255
|
* At the moment, the console is considered a host power in the start
|
|
@@ -9831,6 +10270,19 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9831
10270
|
|
|
9832
10271
|
globalThis.console= /** @type {Console} */ consoleRecord.console;
|
|
9833
10272
|
|
|
10273
|
+
// The untamed Node.js console cannot itself be hardened as it has mutable
|
|
10274
|
+
// internal properties, but some of these properties expose internal versions
|
|
10275
|
+
// of classes from node's "primordials" concept.
|
|
10276
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
10277
|
+
if( typeof /** @type {any} */ consoleRecord.console. _times=== 'object') {
|
|
10278
|
+
// SafeMap is a derived Map class used internally by Node
|
|
10279
|
+
// There doesn't seem to be a cleaner way to reach it.
|
|
10280
|
+
hostIntrinsics.SafeMap= getPrototypeOf(
|
|
10281
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
10282
|
+
/** @type {any} */ consoleRecord.console. _times);
|
|
10283
|
+
|
|
10284
|
+
}
|
|
10285
|
+
|
|
9834
10286
|
// @ts-ignore assert is absent on globalThis type def.
|
|
9835
10287
|
if( errorTaming=== 'unsafe'&& globalThis.assert=== assert) {
|
|
9836
10288
|
// If errorTaming is 'unsafe' we replace the global assert with
|
|
@@ -9845,6 +10297,8 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9845
10297
|
// Replace *Locale* methods with their non-locale equivalents
|
|
9846
10298
|
tameLocaleMethods(intrinsics, localeTaming);
|
|
9847
10299
|
|
|
10300
|
+
tameFauxDataProperties(intrinsics);
|
|
10301
|
+
|
|
9848
10302
|
/**
|
|
9849
10303
|
* 2. WHITELIST to standardize the environment.
|
|
9850
10304
|
*/
|
|
@@ -9918,20 +10372,28 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9918
10372
|
|
|
9919
10373
|
// Finally register and optionally freeze all the intrinsics. This
|
|
9920
10374
|
// must be the operation that modifies the intrinsics.
|
|
9921
|
-
|
|
10375
|
+
const toHarden= {
|
|
10376
|
+
intrinsics,
|
|
10377
|
+
hostIntrinsics,
|
|
10378
|
+
globals: {
|
|
10379
|
+
// Harden evaluators
|
|
10380
|
+
Function: globalThis.Function,
|
|
10381
|
+
eval: globalThis.eval,
|
|
10382
|
+
// @ts-ignore Compartment does exist on globalThis
|
|
10383
|
+
Compartment: globalThis.Compartment,
|
|
10384
|
+
|
|
10385
|
+
// Harden Symbol
|
|
10386
|
+
Symbol: globalThis.Symbol}};
|
|
10387
|
+
|
|
9922
10388
|
|
|
9923
|
-
// Harden evaluators
|
|
9924
|
-
tamedHarden(globalThis.Function);
|
|
9925
|
-
tamedHarden(globalThis.eval);
|
|
9926
|
-
// @ts-ignore Compartment does exist on globalThis
|
|
9927
|
-
tamedHarden(globalThis.Compartment);
|
|
9928
10389
|
|
|
9929
10390
|
// Harden Symbol and properties for initialGlobalPropertyNames in the host realm
|
|
9930
|
-
tamedHarden(globalThis.Symbol);
|
|
9931
10391
|
for( const prop of getOwnPropertyNames(initialGlobalPropertyNames)) {
|
|
9932
|
-
|
|
10392
|
+
toHarden.globals[prop]= globalThis[prop];
|
|
9933
10393
|
}
|
|
9934
10394
|
|
|
10395
|
+
tamedHarden(toHarden);
|
|
10396
|
+
|
|
9935
10397
|
return tamedHarden;
|
|
9936
10398
|
};
|
|
9937
10399
|
|
|
@@ -9939,8 +10401,8 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9939
10401
|
};$h_once.repairIntrinsics(repairIntrinsics);
|
|
9940
10402
|
})()
|
|
9941
10403
|
,
|
|
9942
|
-
// === functors[
|
|
9943
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 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)]]]]]);
|
|
10404
|
+
// === functors[50] ===
|
|
10405
|
+
({ 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)]]]]]);
|
|
9944
10406
|
|
|
9945
10407
|
|
|
9946
10408
|
|
|
@@ -9977,8 +10439,8 @@ globalThis.repairIntrinsics= (options)=>{
|
|
|
9977
10439
|
};
|
|
9978
10440
|
})()
|
|
9979
10441
|
,
|
|
9980
|
-
// === functors[
|
|
9981
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics;$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)]]]]]);
|
|
10442
|
+
// === functors[51] ===
|
|
10443
|
+
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { 'use strict'; let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics;$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)]]]]]);
|
|
9982
10444
|
|
|
9983
10445
|
|
|
9984
10446
|
|
|
@@ -9994,15 +10456,15 @@ globalThis.Compartment= makeCompartmentConstructor(
|
|
|
9994
10456
|
markVirtualizedNativeFunction);
|
|
9995
10457
|
})()
|
|
9996
10458
|
,
|
|
9997
|
-
// === functors[
|
|
9998
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { let globalThis,assert;$h_imports([["./commons.js", [["globalThis", [$h_a => (globalThis = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
10459
|
+
// === functors[52] ===
|
|
10460
|
+
({ 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)]]]]]);
|
|
9999
10461
|
|
|
10000
10462
|
|
|
10001
10463
|
globalThis.assert= assert;
|
|
10002
10464
|
})()
|
|
10003
10465
|
,
|
|
10004
|
-
// === functors[
|
|
10005
|
-
({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => (function () { $h_imports([["./src/lockdown-shim.js", []],["./src/compartment-shim.js", []],["./src/assert-shim.js", []]]);
|
|
10466
|
+
// === functors[53] ===
|
|
10467
|
+
({ 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", []]]);
|
|
10006
10468
|
})()
|
|
10007
10469
|
,
|
|
10008
10470
|
]; // functors end
|
|
@@ -10165,6 +10627,9 @@ globalThis.assert= assert;
|
|
|
10165
10627
|
},
|
|
10166
10628
|
{
|
|
10167
10629
|
makeEnvironmentCaptor: cell("makeEnvironmentCaptor"),
|
|
10630
|
+
getEnvironmentOption: cell("getEnvironmentOption"),
|
|
10631
|
+
getEnvironmentOptionsList: cell("getEnvironmentOptionsList"),
|
|
10632
|
+
environmentOptionsListHas: cell("environmentOptionsListHas"),
|
|
10168
10633
|
},
|
|
10169
10634
|
{
|
|
10170
10635
|
},
|
|
@@ -10179,6 +10644,8 @@ globalThis.assert= assert;
|
|
|
10179
10644
|
},
|
|
10180
10645
|
{
|
|
10181
10646
|
makeLRUCacheMap: cell("makeLRUCacheMap"),
|
|
10647
|
+
},
|
|
10648
|
+
{
|
|
10182
10649
|
makeNoteLogArgsArrayKit: cell("makeNoteLogArgsArrayKit"),
|
|
10183
10650
|
},
|
|
10184
10651
|
{
|
|
@@ -10339,6 +10806,10 @@ globalThis.assert= assert;
|
|
|
10339
10806
|
{
|
|
10340
10807
|
tameSymbolConstructor: cell("tameSymbolConstructor"),
|
|
10341
10808
|
},
|
|
10809
|
+
{
|
|
10810
|
+
tameFauxDataProperty: cell("tameFauxDataProperty"),
|
|
10811
|
+
tameFauxDataProperties: cell("tameFauxDataProperties"),
|
|
10812
|
+
},
|
|
10342
10813
|
{
|
|
10343
10814
|
repairIntrinsics: cell("repairIntrinsics"),
|
|
10344
10815
|
},
|
|
@@ -10354,7 +10825,16 @@ globalThis.assert= assert;
|
|
|
10354
10825
|
|
|
10355
10826
|
Object.defineProperties(cells[3], Object.getOwnPropertyDescriptors(cells[2]));
|
|
10356
10827
|
|
|
10357
|
-
|
|
10828
|
+
const namespaces = cells.map(cells => Object.freeze(Object.create(null, {
|
|
10829
|
+
...cells,
|
|
10830
|
+
// Make this appear like an ESM module namespace object.
|
|
10831
|
+
[Symbol.toStringTag]: {
|
|
10832
|
+
value: 'Module',
|
|
10833
|
+
writable: false,
|
|
10834
|
+
enumerable: false,
|
|
10835
|
+
configurable: false,
|
|
10836
|
+
},
|
|
10837
|
+
})));
|
|
10358
10838
|
|
|
10359
10839
|
for (let index = 0; index < namespaces.length; index += 1) {
|
|
10360
10840
|
cells[index]['*'] = cell('*', namespaces[index]);
|
|
@@ -10533,6 +11013,9 @@ function observeImports(map, importName, importIndex) {
|
|
|
10533
11013
|
},
|
|
10534
11014
|
onceVar: {
|
|
10535
11015
|
makeEnvironmentCaptor: cells[2].makeEnvironmentCaptor.set,
|
|
11016
|
+
getEnvironmentOption: cells[2].getEnvironmentOption.set,
|
|
11017
|
+
getEnvironmentOptionsList: cells[2].getEnvironmentOptionsList.set,
|
|
11018
|
+
environmentOptionsListHas: cells[2].environmentOptionsListHas.set,
|
|
10536
11019
|
},
|
|
10537
11020
|
importMeta: {},
|
|
10538
11021
|
});
|
|
@@ -10584,99 +11067,98 @@ function observeImports(map, importName, importIndex) {
|
|
|
10584
11067
|
functors[7]({
|
|
10585
11068
|
imports(entries) {
|
|
10586
11069
|
const map = new Map(entries);
|
|
10587
|
-
observeImports(map, "./internal-types.js", 6);
|
|
10588
11070
|
},
|
|
10589
11071
|
liveVar: {
|
|
10590
11072
|
},
|
|
10591
11073
|
onceVar: {
|
|
10592
11074
|
makeLRUCacheMap: cells[7].makeLRUCacheMap.set,
|
|
10593
|
-
makeNoteLogArgsArrayKit: cells[7].makeNoteLogArgsArrayKit.set,
|
|
10594
11075
|
},
|
|
10595
11076
|
importMeta: {},
|
|
10596
11077
|
});
|
|
10597
11078
|
functors[8]({
|
|
10598
11079
|
imports(entries) {
|
|
10599
11080
|
const map = new Map(entries);
|
|
10600
|
-
observeImports(map, "../
|
|
10601
|
-
observeImports(map, "./stringify-utils.js", 4);
|
|
10602
|
-
observeImports(map, "./types.js", 5);
|
|
11081
|
+
observeImports(map, "../make-lru-cachemap.js", 7);
|
|
10603
11082
|
observeImports(map, "./internal-types.js", 6);
|
|
10604
|
-
observeImports(map, "./note-log-args.js", 7);
|
|
10605
11083
|
},
|
|
10606
11084
|
liveVar: {
|
|
10607
11085
|
},
|
|
10608
11086
|
onceVar: {
|
|
10609
|
-
|
|
10610
|
-
loggedErrorHandler: cells[8].loggedErrorHandler.set,
|
|
10611
|
-
makeAssert: cells[8].makeAssert.set,
|
|
10612
|
-
assert: cells[8].assert.set,
|
|
11087
|
+
makeNoteLogArgsArrayKit: cells[8].makeNoteLogArgsArrayKit.set,
|
|
10613
11088
|
},
|
|
10614
11089
|
importMeta: {},
|
|
10615
11090
|
});
|
|
10616
11091
|
functors[9]({
|
|
10617
11092
|
imports(entries) {
|
|
10618
11093
|
const map = new Map(entries);
|
|
10619
|
-
observeImports(map, "
|
|
10620
|
-
observeImports(map, "./
|
|
11094
|
+
observeImports(map, "../commons.js", 0);
|
|
11095
|
+
observeImports(map, "./stringify-utils.js", 4);
|
|
11096
|
+
observeImports(map, "./types.js", 5);
|
|
11097
|
+
observeImports(map, "./internal-types.js", 6);
|
|
11098
|
+
observeImports(map, "./note-log-args.js", 8);
|
|
10621
11099
|
},
|
|
10622
11100
|
liveVar: {
|
|
10623
11101
|
},
|
|
10624
11102
|
onceVar: {
|
|
10625
|
-
|
|
10626
|
-
|
|
11103
|
+
unredactedDetails: cells[9].unredactedDetails.set,
|
|
11104
|
+
loggedErrorHandler: cells[9].loggedErrorHandler.set,
|
|
11105
|
+
makeAssert: cells[9].makeAssert.set,
|
|
11106
|
+
assert: cells[9].assert.set,
|
|
10627
11107
|
},
|
|
10628
11108
|
importMeta: {},
|
|
10629
11109
|
});
|
|
10630
11110
|
functors[10]({
|
|
10631
11111
|
imports(entries) {
|
|
10632
11112
|
const map = new Map(entries);
|
|
11113
|
+
observeImports(map, "./commons.js", 0);
|
|
11114
|
+
observeImports(map, "./error/assert.js", 9);
|
|
10633
11115
|
},
|
|
10634
11116
|
liveVar: {
|
|
10635
11117
|
},
|
|
10636
11118
|
onceVar: {
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
initialGlobalPropertyNames: cells[10].initialGlobalPropertyNames.set,
|
|
10640
|
-
sharedGlobalPropertyNames: cells[10].sharedGlobalPropertyNames.set,
|
|
10641
|
-
uniqueGlobalPropertyNames: cells[10].uniqueGlobalPropertyNames.set,
|
|
10642
|
-
NativeErrors: cells[10].NativeErrors.set,
|
|
10643
|
-
FunctionInstance: cells[10].FunctionInstance.set,
|
|
10644
|
-
AsyncFunctionInstance: cells[10].AsyncFunctionInstance.set,
|
|
10645
|
-
isAccessorPermit: cells[10].isAccessorPermit.set,
|
|
10646
|
-
permitted: cells[10].permitted.set,
|
|
11119
|
+
isTypedArray: cells[10].isTypedArray.set,
|
|
11120
|
+
makeHardener: cells[10].makeHardener.set,
|
|
10647
11121
|
},
|
|
10648
11122
|
importMeta: {},
|
|
10649
11123
|
});
|
|
10650
11124
|
functors[11]({
|
|
10651
11125
|
imports(entries) {
|
|
10652
11126
|
const map = new Map(entries);
|
|
10653
|
-
observeImports(map, "./commons.js", 0);
|
|
10654
|
-
observeImports(map, "./permits.js", 10);
|
|
10655
11127
|
},
|
|
10656
11128
|
liveVar: {
|
|
10657
11129
|
},
|
|
10658
11130
|
onceVar: {
|
|
10659
|
-
|
|
10660
|
-
|
|
11131
|
+
constantProperties: cells[11].constantProperties.set,
|
|
11132
|
+
universalPropertyNames: cells[11].universalPropertyNames.set,
|
|
11133
|
+
initialGlobalPropertyNames: cells[11].initialGlobalPropertyNames.set,
|
|
11134
|
+
sharedGlobalPropertyNames: cells[11].sharedGlobalPropertyNames.set,
|
|
11135
|
+
uniqueGlobalPropertyNames: cells[11].uniqueGlobalPropertyNames.set,
|
|
11136
|
+
NativeErrors: cells[11].NativeErrors.set,
|
|
11137
|
+
FunctionInstance: cells[11].FunctionInstance.set,
|
|
11138
|
+
AsyncFunctionInstance: cells[11].AsyncFunctionInstance.set,
|
|
11139
|
+
isAccessorPermit: cells[11].isAccessorPermit.set,
|
|
11140
|
+
permitted: cells[11].permitted.set,
|
|
10661
11141
|
},
|
|
10662
11142
|
importMeta: {},
|
|
10663
11143
|
});
|
|
10664
11144
|
functors[12]({
|
|
10665
11145
|
imports(entries) {
|
|
10666
11146
|
const map = new Map(entries);
|
|
10667
|
-
observeImports(map, "./permits.js", 10);
|
|
10668
11147
|
observeImports(map, "./commons.js", 0);
|
|
11148
|
+
observeImports(map, "./permits.js", 11);
|
|
10669
11149
|
},
|
|
10670
11150
|
liveVar: {
|
|
10671
11151
|
},
|
|
10672
11152
|
onceVar: {
|
|
10673
|
-
|
|
11153
|
+
makeIntrinsicsCollector: cells[12].makeIntrinsicsCollector.set,
|
|
11154
|
+
getGlobalIntrinsics: cells[12].getGlobalIntrinsics.set,
|
|
10674
11155
|
},
|
|
10675
11156
|
importMeta: {},
|
|
10676
11157
|
});
|
|
10677
11158
|
functors[13]({
|
|
10678
11159
|
imports(entries) {
|
|
10679
11160
|
const map = new Map(entries);
|
|
11161
|
+
observeImports(map, "./permits.js", 11);
|
|
10680
11162
|
observeImports(map, "./commons.js", 0);
|
|
10681
11163
|
},
|
|
10682
11164
|
liveVar: {
|
|
@@ -10725,13 +11207,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
10725
11207
|
functors[17]({
|
|
10726
11208
|
imports(entries) {
|
|
10727
11209
|
const map = new Map(entries);
|
|
11210
|
+
observeImports(map, "./commons.js", 0);
|
|
10728
11211
|
},
|
|
10729
11212
|
liveVar: {
|
|
10730
11213
|
},
|
|
10731
11214
|
onceVar: {
|
|
10732
|
-
|
|
10733
|
-
moderateEnablements: cells[17].moderateEnablements.set,
|
|
10734
|
-
severeEnablements: cells[17].severeEnablements.set,
|
|
11215
|
+
default: cells[17].default.set,
|
|
10735
11216
|
},
|
|
10736
11217
|
importMeta: {},
|
|
10737
11218
|
});
|
|
@@ -10739,12 +11220,13 @@ function observeImports(map, importName, importIndex) {
|
|
|
10739
11220
|
imports(entries) {
|
|
10740
11221
|
const map = new Map(entries);
|
|
10741
11222
|
observeImports(map, "./commons.js", 0);
|
|
10742
|
-
observeImports(map, "./enablements.js", 17);
|
|
10743
11223
|
},
|
|
10744
11224
|
liveVar: {
|
|
10745
11225
|
},
|
|
10746
11226
|
onceVar: {
|
|
10747
|
-
|
|
11227
|
+
minEnablements: cells[18].minEnablements.set,
|
|
11228
|
+
moderateEnablements: cells[18].moderateEnablements.set,
|
|
11229
|
+
severeEnablements: cells[18].severeEnablements.set,
|
|
10748
11230
|
},
|
|
10749
11231
|
importMeta: {},
|
|
10750
11232
|
});
|
|
@@ -10752,7 +11234,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
10752
11234
|
imports(entries) {
|
|
10753
11235
|
const map = new Map(entries);
|
|
10754
11236
|
observeImports(map, "./commons.js", 0);
|
|
10755
|
-
observeImports(map, "./
|
|
11237
|
+
observeImports(map, "./enablements.js", 18);
|
|
10756
11238
|
},
|
|
10757
11239
|
liveVar: {
|
|
10758
11240
|
},
|
|
@@ -10764,24 +11246,24 @@ function observeImports(map, importName, importIndex) {
|
|
|
10764
11246
|
functors[20]({
|
|
10765
11247
|
imports(entries) {
|
|
10766
11248
|
const map = new Map(entries);
|
|
11249
|
+
observeImports(map, "./commons.js", 0);
|
|
11250
|
+
observeImports(map, "./error/assert.js", 9);
|
|
10767
11251
|
},
|
|
10768
11252
|
liveVar: {
|
|
10769
11253
|
},
|
|
10770
11254
|
onceVar: {
|
|
10771
|
-
|
|
11255
|
+
default: cells[20].default.set,
|
|
10772
11256
|
},
|
|
10773
11257
|
importMeta: {},
|
|
10774
11258
|
});
|
|
10775
11259
|
functors[21]({
|
|
10776
11260
|
imports(entries) {
|
|
10777
11261
|
const map = new Map(entries);
|
|
10778
|
-
observeImports(map, "./commons.js", 0);
|
|
10779
|
-
observeImports(map, "./error/assert.js", 8);
|
|
10780
11262
|
},
|
|
10781
11263
|
liveVar: {
|
|
10782
11264
|
},
|
|
10783
11265
|
onceVar: {
|
|
10784
|
-
|
|
11266
|
+
makeEvalFunction: cells[21].makeEvalFunction.set,
|
|
10785
11267
|
},
|
|
10786
11268
|
importMeta: {},
|
|
10787
11269
|
});
|
|
@@ -10789,17 +11271,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
10789
11271
|
imports(entries) {
|
|
10790
11272
|
const map = new Map(entries);
|
|
10791
11273
|
observeImports(map, "./commons.js", 0);
|
|
10792
|
-
observeImports(map, "./
|
|
10793
|
-
observeImports(map, "./make-function-constructor.js", 21);
|
|
10794
|
-
observeImports(map, "./permits.js", 10);
|
|
11274
|
+
observeImports(map, "./error/assert.js", 9);
|
|
10795
11275
|
},
|
|
10796
11276
|
liveVar: {
|
|
10797
11277
|
},
|
|
10798
11278
|
onceVar: {
|
|
10799
|
-
|
|
10800
|
-
setGlobalObjectConstantProperties: cells[22].setGlobalObjectConstantProperties.set,
|
|
10801
|
-
setGlobalObjectMutableProperties: cells[22].setGlobalObjectMutableProperties.set,
|
|
10802
|
-
setGlobalObjectEvaluators: cells[22].setGlobalObjectEvaluators.set,
|
|
11279
|
+
makeFunctionConstructor: cells[22].makeFunctionConstructor.set,
|
|
10803
11280
|
},
|
|
10804
11281
|
importMeta: {},
|
|
10805
11282
|
});
|
|
@@ -10807,14 +11284,17 @@ function observeImports(map, importName, importIndex) {
|
|
|
10807
11284
|
imports(entries) {
|
|
10808
11285
|
const map = new Map(entries);
|
|
10809
11286
|
observeImports(map, "./commons.js", 0);
|
|
10810
|
-
observeImports(map, "./
|
|
11287
|
+
observeImports(map, "./make-eval-function.js", 21);
|
|
11288
|
+
observeImports(map, "./make-function-constructor.js", 22);
|
|
11289
|
+
observeImports(map, "./permits.js", 11);
|
|
10811
11290
|
},
|
|
10812
11291
|
liveVar: {
|
|
10813
11292
|
},
|
|
10814
11293
|
onceVar: {
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
11294
|
+
setGlobalObjectSymbolUnscopables: cells[23].setGlobalObjectSymbolUnscopables.set,
|
|
11295
|
+
setGlobalObjectConstantProperties: cells[23].setGlobalObjectConstantProperties.set,
|
|
11296
|
+
setGlobalObjectMutableProperties: cells[23].setGlobalObjectMutableProperties.set,
|
|
11297
|
+
setGlobalObjectEvaluators: cells[23].setGlobalObjectEvaluators.set,
|
|
10818
11298
|
},
|
|
10819
11299
|
importMeta: {},
|
|
10820
11300
|
});
|
|
@@ -10822,12 +11302,14 @@ function observeImports(map, importName, importIndex) {
|
|
|
10822
11302
|
imports(entries) {
|
|
10823
11303
|
const map = new Map(entries);
|
|
10824
11304
|
observeImports(map, "./commons.js", 0);
|
|
10825
|
-
observeImports(map, "./
|
|
11305
|
+
observeImports(map, "./error/assert.js", 9);
|
|
10826
11306
|
},
|
|
10827
11307
|
liveVar: {
|
|
10828
11308
|
},
|
|
10829
11309
|
onceVar: {
|
|
10830
|
-
|
|
11310
|
+
alwaysThrowHandler: cells[24].alwaysThrowHandler.set,
|
|
11311
|
+
strictScopeTerminatorHandler: cells[24].strictScopeTerminatorHandler.set,
|
|
11312
|
+
strictScopeTerminator: cells[24].strictScopeTerminator.set,
|
|
10831
11313
|
},
|
|
10832
11314
|
importMeta: {},
|
|
10833
11315
|
});
|
|
@@ -10835,12 +11317,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
10835
11317
|
imports(entries) {
|
|
10836
11318
|
const map = new Map(entries);
|
|
10837
11319
|
observeImports(map, "./commons.js", 0);
|
|
10838
|
-
observeImports(map, "./
|
|
11320
|
+
observeImports(map, "./strict-scope-terminator.js", 24);
|
|
10839
11321
|
},
|
|
10840
11322
|
liveVar: {
|
|
10841
11323
|
},
|
|
10842
11324
|
onceVar: {
|
|
10843
|
-
|
|
11325
|
+
createSloppyGlobalsScopeTerminator: cells[25].createSloppyGlobalsScopeTerminator.set,
|
|
10844
11326
|
},
|
|
10845
11327
|
importMeta: {},
|
|
10846
11328
|
});
|
|
@@ -10848,11 +11330,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
10848
11330
|
imports(entries) {
|
|
10849
11331
|
const map = new Map(entries);
|
|
10850
11332
|
observeImports(map, "./commons.js", 0);
|
|
11333
|
+
observeImports(map, "./error/assert.js", 9);
|
|
10851
11334
|
},
|
|
10852
11335
|
liveVar: {
|
|
10853
11336
|
},
|
|
10854
11337
|
onceVar: {
|
|
10855
|
-
|
|
11338
|
+
makeEvalScopeKit: cells[26].makeEvalScopeKit.set,
|
|
10856
11339
|
},
|
|
10857
11340
|
importMeta: {},
|
|
10858
11341
|
});
|
|
@@ -10860,19 +11343,11 @@ function observeImports(map, importName, importIndex) {
|
|
|
10860
11343
|
imports(entries) {
|
|
10861
11344
|
const map = new Map(entries);
|
|
10862
11345
|
observeImports(map, "./commons.js", 0);
|
|
10863
|
-
observeImports(map, "./get-source-url.js", 26);
|
|
10864
11346
|
},
|
|
10865
11347
|
liveVar: {
|
|
10866
11348
|
},
|
|
10867
11349
|
onceVar: {
|
|
10868
|
-
|
|
10869
|
-
evadeHtmlCommentTest: cells[27].evadeHtmlCommentTest.set,
|
|
10870
|
-
rejectImportExpressions: cells[27].rejectImportExpressions.set,
|
|
10871
|
-
evadeImportExpressionTest: cells[27].evadeImportExpressionTest.set,
|
|
10872
|
-
rejectSomeDirectEvalExpressions: cells[27].rejectSomeDirectEvalExpressions.set,
|
|
10873
|
-
mandatoryTransforms: cells[27].mandatoryTransforms.set,
|
|
10874
|
-
applyTransforms: cells[27].applyTransforms.set,
|
|
10875
|
-
transforms: cells[27].transforms.set,
|
|
11350
|
+
getSourceURL: cells[27].getSourceURL.set,
|
|
10876
11351
|
},
|
|
10877
11352
|
importMeta: {},
|
|
10878
11353
|
});
|
|
@@ -10880,12 +11355,19 @@ function observeImports(map, importName, importIndex) {
|
|
|
10880
11355
|
imports(entries) {
|
|
10881
11356
|
const map = new Map(entries);
|
|
10882
11357
|
observeImports(map, "./commons.js", 0);
|
|
11358
|
+
observeImports(map, "./get-source-url.js", 27);
|
|
10883
11359
|
},
|
|
10884
11360
|
liveVar: {
|
|
10885
11361
|
},
|
|
10886
11362
|
onceVar: {
|
|
10887
|
-
|
|
10888
|
-
|
|
11363
|
+
rejectHtmlComments: cells[28].rejectHtmlComments.set,
|
|
11364
|
+
evadeHtmlCommentTest: cells[28].evadeHtmlCommentTest.set,
|
|
11365
|
+
rejectImportExpressions: cells[28].rejectImportExpressions.set,
|
|
11366
|
+
evadeImportExpressionTest: cells[28].evadeImportExpressionTest.set,
|
|
11367
|
+
rejectSomeDirectEvalExpressions: cells[28].rejectSomeDirectEvalExpressions.set,
|
|
11368
|
+
mandatoryTransforms: cells[28].mandatoryTransforms.set,
|
|
11369
|
+
applyTransforms: cells[28].applyTransforms.set,
|
|
11370
|
+
transforms: cells[28].transforms.set,
|
|
10889
11371
|
},
|
|
10890
11372
|
importMeta: {},
|
|
10891
11373
|
});
|
|
@@ -10893,12 +11375,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
10893
11375
|
imports(entries) {
|
|
10894
11376
|
const map = new Map(entries);
|
|
10895
11377
|
observeImports(map, "./commons.js", 0);
|
|
10896
|
-
observeImports(map, "./scope-constants.js", 28);
|
|
10897
11378
|
},
|
|
10898
11379
|
liveVar: {
|
|
10899
11380
|
},
|
|
10900
11381
|
onceVar: {
|
|
10901
|
-
|
|
11382
|
+
isValidIdentifierName: cells[29].isValidIdentifierName.set,
|
|
11383
|
+
getScopeConstants: cells[29].getScopeConstants.set,
|
|
10902
11384
|
},
|
|
10903
11385
|
importMeta: {},
|
|
10904
11386
|
});
|
|
@@ -10906,17 +11388,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
10906
11388
|
imports(entries) {
|
|
10907
11389
|
const map = new Map(entries);
|
|
10908
11390
|
observeImports(map, "./commons.js", 0);
|
|
10909
|
-
observeImports(map, "./
|
|
10910
|
-
observeImports(map, "./sloppy-globals-scope-terminator.js", 24);
|
|
10911
|
-
observeImports(map, "./eval-scope.js", 25);
|
|
10912
|
-
observeImports(map, "./transforms.js", 27);
|
|
10913
|
-
observeImports(map, "./make-evaluate.js", 29);
|
|
10914
|
-
observeImports(map, "./error/assert.js", 8);
|
|
11391
|
+
observeImports(map, "./scope-constants.js", 29);
|
|
10915
11392
|
},
|
|
10916
11393
|
liveVar: {
|
|
10917
11394
|
},
|
|
10918
11395
|
onceVar: {
|
|
10919
|
-
|
|
11396
|
+
makeEvaluate: cells[30].makeEvaluate.set,
|
|
10920
11397
|
},
|
|
10921
11398
|
importMeta: {},
|
|
10922
11399
|
});
|
|
@@ -10924,11 +11401,17 @@ function observeImports(map, importName, importIndex) {
|
|
|
10924
11401
|
imports(entries) {
|
|
10925
11402
|
const map = new Map(entries);
|
|
10926
11403
|
observeImports(map, "./commons.js", 0);
|
|
11404
|
+
observeImports(map, "./strict-scope-terminator.js", 24);
|
|
11405
|
+
observeImports(map, "./sloppy-globals-scope-terminator.js", 25);
|
|
11406
|
+
observeImports(map, "./eval-scope.js", 26);
|
|
11407
|
+
observeImports(map, "./transforms.js", 28);
|
|
11408
|
+
observeImports(map, "./make-evaluate.js", 30);
|
|
11409
|
+
observeImports(map, "./error/assert.js", 9);
|
|
10927
11410
|
},
|
|
10928
11411
|
liveVar: {
|
|
10929
11412
|
},
|
|
10930
11413
|
onceVar: {
|
|
10931
|
-
|
|
11414
|
+
makeSafeEvaluator: cells[31].makeSafeEvaluator.set,
|
|
10932
11415
|
},
|
|
10933
11416
|
importMeta: {},
|
|
10934
11417
|
});
|
|
@@ -10940,24 +11423,19 @@ function observeImports(map, importName, importIndex) {
|
|
|
10940
11423
|
liveVar: {
|
|
10941
11424
|
},
|
|
10942
11425
|
onceVar: {
|
|
10943
|
-
|
|
11426
|
+
tameFunctionToString: cells[32].tameFunctionToString.set,
|
|
10944
11427
|
},
|
|
10945
11428
|
importMeta: {},
|
|
10946
11429
|
});
|
|
10947
11430
|
functors[33]({
|
|
10948
11431
|
imports(entries) {
|
|
10949
11432
|
const map = new Map(entries);
|
|
10950
|
-
observeImports(map, "
|
|
10951
|
-
observeImports(map, "./types.js", 5);
|
|
10952
|
-
observeImports(map, "./internal-types.js", 6);
|
|
11433
|
+
observeImports(map, "./commons.js", 0);
|
|
10953
11434
|
},
|
|
10954
11435
|
liveVar: {
|
|
10955
11436
|
},
|
|
10956
11437
|
onceVar: {
|
|
10957
|
-
|
|
10958
|
-
makeCausalConsole: cells[33].makeCausalConsole.set,
|
|
10959
|
-
filterConsole: cells[33].filterConsole.set,
|
|
10960
|
-
consoleWhitelist: cells[33].consoleWhitelist.set,
|
|
11438
|
+
tameDomains: cells[33].tameDomains.set,
|
|
10961
11439
|
},
|
|
10962
11440
|
importMeta: {},
|
|
10963
11441
|
});
|
|
@@ -10965,11 +11443,16 @@ function observeImports(map, importName, importIndex) {
|
|
|
10965
11443
|
imports(entries) {
|
|
10966
11444
|
const map = new Map(entries);
|
|
10967
11445
|
observeImports(map, "../commons.js", 0);
|
|
11446
|
+
observeImports(map, "./types.js", 5);
|
|
11447
|
+
observeImports(map, "./internal-types.js", 6);
|
|
10968
11448
|
},
|
|
10969
11449
|
liveVar: {
|
|
10970
11450
|
},
|
|
10971
11451
|
onceVar: {
|
|
10972
|
-
|
|
11452
|
+
makeLoggingConsoleKit: cells[34].makeLoggingConsoleKit.set,
|
|
11453
|
+
makeCausalConsole: cells[34].makeCausalConsole.set,
|
|
11454
|
+
filterConsole: cells[34].filterConsole.set,
|
|
11455
|
+
consoleWhitelist: cells[34].consoleWhitelist.set,
|
|
10973
11456
|
},
|
|
10974
11457
|
importMeta: {},
|
|
10975
11458
|
});
|
|
@@ -10977,16 +11460,11 @@ function observeImports(map, importName, importIndex) {
|
|
|
10977
11460
|
imports(entries) {
|
|
10978
11461
|
const map = new Map(entries);
|
|
10979
11462
|
observeImports(map, "../commons.js", 0);
|
|
10980
|
-
observeImports(map, "./assert.js", 8);
|
|
10981
|
-
observeImports(map, "./console.js", 33);
|
|
10982
|
-
observeImports(map, "./unhandled-rejection.js", 34);
|
|
10983
|
-
observeImports(map, "./types.js", 5);
|
|
10984
|
-
observeImports(map, "./internal-types.js", 6);
|
|
10985
11463
|
},
|
|
10986
11464
|
liveVar: {
|
|
10987
11465
|
},
|
|
10988
11466
|
onceVar: {
|
|
10989
|
-
|
|
11467
|
+
makeRejectionHandlers: cells[35].makeRejectionHandlers.set,
|
|
10990
11468
|
},
|
|
10991
11469
|
importMeta: {},
|
|
10992
11470
|
});
|
|
@@ -10994,13 +11472,16 @@ function observeImports(map, importName, importIndex) {
|
|
|
10994
11472
|
imports(entries) {
|
|
10995
11473
|
const map = new Map(entries);
|
|
10996
11474
|
observeImports(map, "../commons.js", 0);
|
|
11475
|
+
observeImports(map, "./assert.js", 9);
|
|
11476
|
+
observeImports(map, "./console.js", 34);
|
|
11477
|
+
observeImports(map, "./unhandled-rejection.js", 35);
|
|
11478
|
+
observeImports(map, "./types.js", 5);
|
|
11479
|
+
observeImports(map, "./internal-types.js", 6);
|
|
10997
11480
|
},
|
|
10998
11481
|
liveVar: {
|
|
10999
11482
|
},
|
|
11000
11483
|
onceVar: {
|
|
11001
|
-
|
|
11002
|
-
shortenCallSiteString: cells[36].shortenCallSiteString.set,
|
|
11003
|
-
tameV8ErrorConstructor: cells[36].tameV8ErrorConstructor.set,
|
|
11484
|
+
tameConsole: cells[36].tameConsole.set,
|
|
11004
11485
|
},
|
|
11005
11486
|
importMeta: {},
|
|
11006
11487
|
});
|
|
@@ -11008,110 +11489,102 @@ function observeImports(map, importName, importIndex) {
|
|
|
11008
11489
|
imports(entries) {
|
|
11009
11490
|
const map = new Map(entries);
|
|
11010
11491
|
observeImports(map, "../commons.js", 0);
|
|
11011
|
-
observeImports(map, "../permits.js", 10);
|
|
11012
|
-
observeImports(map, "./tame-v8-error-constructor.js", 36);
|
|
11013
11492
|
},
|
|
11014
11493
|
liveVar: {
|
|
11015
11494
|
},
|
|
11016
11495
|
onceVar: {
|
|
11017
|
-
|
|
11496
|
+
filterFileName: cells[37].filterFileName.set,
|
|
11497
|
+
shortenCallSiteString: cells[37].shortenCallSiteString.set,
|
|
11498
|
+
tameV8ErrorConstructor: cells[37].tameV8ErrorConstructor.set,
|
|
11018
11499
|
},
|
|
11019
11500
|
importMeta: {},
|
|
11020
11501
|
});
|
|
11021
11502
|
functors[38]({
|
|
11022
11503
|
imports(entries) {
|
|
11023
11504
|
const map = new Map(entries);
|
|
11024
|
-
observeImports(map, "
|
|
11025
|
-
observeImports(map, "
|
|
11505
|
+
observeImports(map, "../commons.js", 0);
|
|
11506
|
+
observeImports(map, "../permits.js", 11);
|
|
11507
|
+
observeImports(map, "./tame-v8-error-constructor.js", 37);
|
|
11026
11508
|
},
|
|
11027
11509
|
liveVar: {
|
|
11028
11510
|
},
|
|
11029
11511
|
onceVar: {
|
|
11030
|
-
|
|
11031
|
-
load: cells[38].load.set,
|
|
11512
|
+
default: cells[38].default.set,
|
|
11032
11513
|
},
|
|
11033
11514
|
importMeta: {},
|
|
11034
11515
|
});
|
|
11035
11516
|
functors[39]({
|
|
11036
11517
|
imports(entries) {
|
|
11037
11518
|
const map = new Map(entries);
|
|
11038
|
-
observeImports(map, "./module-load.js", 38);
|
|
11039
11519
|
observeImports(map, "./commons.js", 0);
|
|
11040
|
-
observeImports(map, "./error/assert.js",
|
|
11520
|
+
observeImports(map, "./error/assert.js", 9);
|
|
11041
11521
|
},
|
|
11042
11522
|
liveVar: {
|
|
11043
11523
|
},
|
|
11044
11524
|
onceVar: {
|
|
11045
|
-
|
|
11046
|
-
|
|
11525
|
+
makeAlias: cells[39].makeAlias.set,
|
|
11526
|
+
load: cells[39].load.set,
|
|
11047
11527
|
},
|
|
11048
11528
|
importMeta: {},
|
|
11049
11529
|
});
|
|
11050
11530
|
functors[40]({
|
|
11051
11531
|
imports(entries) {
|
|
11052
11532
|
const map = new Map(entries);
|
|
11533
|
+
observeImports(map, "./module-load.js", 39);
|
|
11053
11534
|
observeImports(map, "./commons.js", 0);
|
|
11054
|
-
observeImports(map, "./
|
|
11055
|
-
observeImports(map, "./make-safe-evaluator.js", 30);
|
|
11535
|
+
observeImports(map, "./error/assert.js", 9);
|
|
11056
11536
|
},
|
|
11057
11537
|
liveVar: {
|
|
11058
11538
|
},
|
|
11059
11539
|
onceVar: {
|
|
11060
|
-
|
|
11061
|
-
|
|
11540
|
+
deferExports: cells[40].deferExports.set,
|
|
11541
|
+
getDeferredExports: cells[40].getDeferredExports.set,
|
|
11062
11542
|
},
|
|
11063
11543
|
importMeta: {},
|
|
11064
11544
|
});
|
|
11065
11545
|
functors[41]({
|
|
11066
11546
|
imports(entries) {
|
|
11067
11547
|
const map = new Map(entries);
|
|
11068
|
-
observeImports(map, "./error/assert.js", 8);
|
|
11069
|
-
observeImports(map, "./module-proxy.js", 39);
|
|
11070
11548
|
observeImports(map, "./commons.js", 0);
|
|
11071
|
-
observeImports(map, "./
|
|
11549
|
+
observeImports(map, "./transforms.js", 28);
|
|
11550
|
+
observeImports(map, "./make-safe-evaluator.js", 31);
|
|
11072
11551
|
},
|
|
11073
11552
|
liveVar: {
|
|
11074
11553
|
},
|
|
11075
11554
|
onceVar: {
|
|
11076
|
-
|
|
11077
|
-
|
|
11555
|
+
provideCompartmentEvaluator: cells[41].provideCompartmentEvaluator.set,
|
|
11556
|
+
compartmentEvaluate: cells[41].compartmentEvaluate.set,
|
|
11078
11557
|
},
|
|
11079
11558
|
importMeta: {},
|
|
11080
11559
|
});
|
|
11081
11560
|
functors[42]({
|
|
11082
11561
|
imports(entries) {
|
|
11083
11562
|
const map = new Map(entries);
|
|
11084
|
-
observeImports(map, "./error/assert.js",
|
|
11085
|
-
observeImports(map, "./module-
|
|
11563
|
+
observeImports(map, "./error/assert.js", 9);
|
|
11564
|
+
observeImports(map, "./module-proxy.js", 40);
|
|
11086
11565
|
observeImports(map, "./commons.js", 0);
|
|
11566
|
+
observeImports(map, "./compartment-evaluate.js", 41);
|
|
11087
11567
|
},
|
|
11088
11568
|
liveVar: {
|
|
11089
11569
|
},
|
|
11090
11570
|
onceVar: {
|
|
11091
|
-
|
|
11092
|
-
|
|
11571
|
+
makeThirdPartyModuleInstance: cells[42].makeThirdPartyModuleInstance.set,
|
|
11572
|
+
makeModuleInstance: cells[42].makeModuleInstance.set,
|
|
11093
11573
|
},
|
|
11094
11574
|
importMeta: {},
|
|
11095
11575
|
});
|
|
11096
11576
|
functors[43]({
|
|
11097
11577
|
imports(entries) {
|
|
11098
11578
|
const map = new Map(entries);
|
|
11579
|
+
observeImports(map, "./error/assert.js", 9);
|
|
11580
|
+
observeImports(map, "./module-instance.js", 42);
|
|
11099
11581
|
observeImports(map, "./commons.js", 0);
|
|
11100
|
-
observeImports(map, "./global-object.js", 22);
|
|
11101
|
-
observeImports(map, "./permits.js", 10);
|
|
11102
|
-
observeImports(map, "./module-load.js", 38);
|
|
11103
|
-
observeImports(map, "./module-link.js", 42);
|
|
11104
|
-
observeImports(map, "./module-proxy.js", 39);
|
|
11105
|
-
observeImports(map, "./error/assert.js", 8);
|
|
11106
|
-
observeImports(map, "./compartment-evaluate.js", 40);
|
|
11107
|
-
observeImports(map, "./make-safe-evaluator.js", 30);
|
|
11108
11582
|
},
|
|
11109
11583
|
liveVar: {
|
|
11110
11584
|
},
|
|
11111
11585
|
onceVar: {
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
makeCompartmentConstructor: cells[43].makeCompartmentConstructor.set,
|
|
11586
|
+
link: cells[43].link.set,
|
|
11587
|
+
instantiate: cells[43].instantiate.set,
|
|
11115
11588
|
},
|
|
11116
11589
|
importMeta: {},
|
|
11117
11590
|
});
|
|
@@ -11119,12 +11592,21 @@ function observeImports(map, importName, importIndex) {
|
|
|
11119
11592
|
imports(entries) {
|
|
11120
11593
|
const map = new Map(entries);
|
|
11121
11594
|
observeImports(map, "./commons.js", 0);
|
|
11122
|
-
observeImports(map, "./
|
|
11595
|
+
observeImports(map, "./global-object.js", 23);
|
|
11596
|
+
observeImports(map, "./permits.js", 11);
|
|
11597
|
+
observeImports(map, "./module-load.js", 39);
|
|
11598
|
+
observeImports(map, "./module-link.js", 43);
|
|
11599
|
+
observeImports(map, "./module-proxy.js", 40);
|
|
11600
|
+
observeImports(map, "./error/assert.js", 9);
|
|
11601
|
+
observeImports(map, "./compartment-evaluate.js", 41);
|
|
11602
|
+
observeImports(map, "./make-safe-evaluator.js", 31);
|
|
11123
11603
|
},
|
|
11124
11604
|
liveVar: {
|
|
11125
11605
|
},
|
|
11126
11606
|
onceVar: {
|
|
11127
|
-
|
|
11607
|
+
InertCompartment: cells[44].InertCompartment.set,
|
|
11608
|
+
CompartmentPrototype: cells[44].CompartmentPrototype.set,
|
|
11609
|
+
makeCompartmentConstructor: cells[44].makeCompartmentConstructor.set,
|
|
11128
11610
|
},
|
|
11129
11611
|
importMeta: {},
|
|
11130
11612
|
});
|
|
@@ -11132,11 +11614,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
11132
11614
|
imports(entries) {
|
|
11133
11615
|
const map = new Map(entries);
|
|
11134
11616
|
observeImports(map, "./commons.js", 0);
|
|
11617
|
+
observeImports(map, "./compartment.js", 44);
|
|
11135
11618
|
},
|
|
11136
11619
|
liveVar: {
|
|
11137
11620
|
},
|
|
11138
11621
|
onceVar: {
|
|
11139
|
-
|
|
11622
|
+
getAnonymousIntrinsics: cells[45].getAnonymousIntrinsics.set,
|
|
11140
11623
|
},
|
|
11141
11624
|
importMeta: {},
|
|
11142
11625
|
});
|
|
@@ -11148,76 +11631,76 @@ function observeImports(map, importName, importIndex) {
|
|
|
11148
11631
|
liveVar: {
|
|
11149
11632
|
},
|
|
11150
11633
|
onceVar: {
|
|
11151
|
-
|
|
11634
|
+
tameHarden: cells[46].tameHarden.set,
|
|
11152
11635
|
},
|
|
11153
11636
|
importMeta: {},
|
|
11154
11637
|
});
|
|
11155
11638
|
functors[47]({
|
|
11156
11639
|
imports(entries) {
|
|
11157
11640
|
const map = new Map(entries);
|
|
11158
|
-
observeImports(map, "@endo/env-options", 3);
|
|
11159
11641
|
observeImports(map, "./commons.js", 0);
|
|
11160
|
-
observeImports(map, "./make-hardener.js", 9);
|
|
11161
|
-
observeImports(map, "./intrinsics.js", 11);
|
|
11162
|
-
observeImports(map, "./permits-intrinsics.js", 12);
|
|
11163
|
-
observeImports(map, "./tame-function-constructors.js", 13);
|
|
11164
|
-
observeImports(map, "./tame-date-constructor.js", 14);
|
|
11165
|
-
observeImports(map, "./tame-math-object.js", 15);
|
|
11166
|
-
observeImports(map, "./tame-regexp-constructor.js", 16);
|
|
11167
|
-
observeImports(map, "./enable-property-overrides.js", 18);
|
|
11168
|
-
observeImports(map, "./tame-locale-methods.js", 19);
|
|
11169
|
-
observeImports(map, "./global-object.js", 22);
|
|
11170
|
-
observeImports(map, "./make-safe-evaluator.js", 30);
|
|
11171
|
-
observeImports(map, "./permits.js", 10);
|
|
11172
|
-
observeImports(map, "./tame-function-tostring.js", 31);
|
|
11173
|
-
observeImports(map, "./tame-domains.js", 32);
|
|
11174
|
-
observeImports(map, "./error/tame-console.js", 35);
|
|
11175
|
-
observeImports(map, "./error/tame-error-constructor.js", 37);
|
|
11176
|
-
observeImports(map, "./error/assert.js", 8);
|
|
11177
|
-
observeImports(map, "./get-anonymous-intrinsics.js", 44);
|
|
11178
|
-
observeImports(map, "./compartment.js", 43);
|
|
11179
|
-
observeImports(map, "./tame-harden.js", 45);
|
|
11180
|
-
observeImports(map, "./tame-symbol-constructor.js", 46);
|
|
11181
11642
|
},
|
|
11182
11643
|
liveVar: {
|
|
11183
11644
|
},
|
|
11184
11645
|
onceVar: {
|
|
11185
|
-
|
|
11646
|
+
tameSymbolConstructor: cells[47].tameSymbolConstructor.set,
|
|
11186
11647
|
},
|
|
11187
11648
|
importMeta: {},
|
|
11188
11649
|
});
|
|
11189
11650
|
functors[48]({
|
|
11190
11651
|
imports(entries) {
|
|
11191
11652
|
const map = new Map(entries);
|
|
11192
|
-
observeImports(map, "./assert-sloppy-mode.js", 1);
|
|
11193
11653
|
observeImports(map, "./commons.js", 0);
|
|
11194
|
-
observeImports(map, "./lockdown.js", 47);
|
|
11195
11654
|
},
|
|
11196
11655
|
liveVar: {
|
|
11197
11656
|
},
|
|
11198
11657
|
onceVar: {
|
|
11658
|
+
tameFauxDataProperty: cells[48].tameFauxDataProperty.set,
|
|
11659
|
+
tameFauxDataProperties: cells[48].tameFauxDataProperties.set,
|
|
11199
11660
|
},
|
|
11200
11661
|
importMeta: {},
|
|
11201
11662
|
});
|
|
11202
11663
|
functors[49]({
|
|
11203
11664
|
imports(entries) {
|
|
11204
11665
|
const map = new Map(entries);
|
|
11666
|
+
observeImports(map, "@endo/env-options", 3);
|
|
11205
11667
|
observeImports(map, "./commons.js", 0);
|
|
11206
|
-
observeImports(map, "./
|
|
11207
|
-
observeImports(map, "./
|
|
11208
|
-
observeImports(map, "./intrinsics.js",
|
|
11668
|
+
observeImports(map, "./make-hardener.js", 10);
|
|
11669
|
+
observeImports(map, "./intrinsics.js", 12);
|
|
11670
|
+
observeImports(map, "./permits-intrinsics.js", 13);
|
|
11671
|
+
observeImports(map, "./tame-function-constructors.js", 14);
|
|
11672
|
+
observeImports(map, "./tame-date-constructor.js", 15);
|
|
11673
|
+
observeImports(map, "./tame-math-object.js", 16);
|
|
11674
|
+
observeImports(map, "./tame-regexp-constructor.js", 17);
|
|
11675
|
+
observeImports(map, "./enable-property-overrides.js", 19);
|
|
11676
|
+
observeImports(map, "./tame-locale-methods.js", 20);
|
|
11677
|
+
observeImports(map, "./global-object.js", 23);
|
|
11678
|
+
observeImports(map, "./make-safe-evaluator.js", 31);
|
|
11679
|
+
observeImports(map, "./permits.js", 11);
|
|
11680
|
+
observeImports(map, "./tame-function-tostring.js", 32);
|
|
11681
|
+
observeImports(map, "./tame-domains.js", 33);
|
|
11682
|
+
observeImports(map, "./error/tame-console.js", 36);
|
|
11683
|
+
observeImports(map, "./error/tame-error-constructor.js", 38);
|
|
11684
|
+
observeImports(map, "./error/assert.js", 9);
|
|
11685
|
+
observeImports(map, "./get-anonymous-intrinsics.js", 45);
|
|
11686
|
+
observeImports(map, "./compartment.js", 44);
|
|
11687
|
+
observeImports(map, "./tame-harden.js", 46);
|
|
11688
|
+
observeImports(map, "./tame-symbol-constructor.js", 47);
|
|
11689
|
+
observeImports(map, "./tame-faux-data-properties.js", 48);
|
|
11209
11690
|
},
|
|
11210
11691
|
liveVar: {
|
|
11211
11692
|
},
|
|
11212
11693
|
onceVar: {
|
|
11694
|
+
repairIntrinsics: cells[49].repairIntrinsics.set,
|
|
11213
11695
|
},
|
|
11214
11696
|
importMeta: {},
|
|
11215
11697
|
});
|
|
11216
11698
|
functors[50]({
|
|
11217
11699
|
imports(entries) {
|
|
11218
11700
|
const map = new Map(entries);
|
|
11701
|
+
observeImports(map, "./assert-sloppy-mode.js", 1);
|
|
11219
11702
|
observeImports(map, "./commons.js", 0);
|
|
11220
|
-
observeImports(map, "./
|
|
11703
|
+
observeImports(map, "./lockdown.js", 49);
|
|
11221
11704
|
},
|
|
11222
11705
|
liveVar: {
|
|
11223
11706
|
},
|
|
@@ -11228,9 +11711,35 @@ function observeImports(map, importName, importIndex) {
|
|
|
11228
11711
|
functors[51]({
|
|
11229
11712
|
imports(entries) {
|
|
11230
11713
|
const map = new Map(entries);
|
|
11231
|
-
observeImports(map, "./
|
|
11232
|
-
observeImports(map, "./
|
|
11233
|
-
observeImports(map, "./
|
|
11714
|
+
observeImports(map, "./commons.js", 0);
|
|
11715
|
+
observeImports(map, "./compartment.js", 44);
|
|
11716
|
+
observeImports(map, "./tame-function-tostring.js", 32);
|
|
11717
|
+
observeImports(map, "./intrinsics.js", 12);
|
|
11718
|
+
},
|
|
11719
|
+
liveVar: {
|
|
11720
|
+
},
|
|
11721
|
+
onceVar: {
|
|
11722
|
+
},
|
|
11723
|
+
importMeta: {},
|
|
11724
|
+
});
|
|
11725
|
+
functors[52]({
|
|
11726
|
+
imports(entries) {
|
|
11727
|
+
const map = new Map(entries);
|
|
11728
|
+
observeImports(map, "./commons.js", 0);
|
|
11729
|
+
observeImports(map, "./error/assert.js", 9);
|
|
11730
|
+
},
|
|
11731
|
+
liveVar: {
|
|
11732
|
+
},
|
|
11733
|
+
onceVar: {
|
|
11734
|
+
},
|
|
11735
|
+
importMeta: {},
|
|
11736
|
+
});
|
|
11737
|
+
functors[53]({
|
|
11738
|
+
imports(entries) {
|
|
11739
|
+
const map = new Map(entries);
|
|
11740
|
+
observeImports(map, "./src/lockdown-shim.js", 50);
|
|
11741
|
+
observeImports(map, "./src/compartment-shim.js", 51);
|
|
11742
|
+
observeImports(map, "./src/assert-shim.js", 52);
|
|
11234
11743
|
},
|
|
11235
11744
|
liveVar: {
|
|
11236
11745
|
},
|