ses 0.18.2 → 0.18.3
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 +10 -0
- package/dist/lockdown.cjs +583 -239
- package/dist/lockdown.mjs +583 -239
- package/dist/lockdown.umd.js +583 -239
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +583 -239
- package/dist/ses.mjs +583 -239
- package/dist/ses.umd.js +583 -239
- package/dist/ses.umd.min.js +1 -1
- package/package.json +9 -16
- package/src/commons.js +2 -0
- package/src/enablements.js +1 -1
- package/src/error/assert.js +4 -19
- package/src/error/note-log-args.js +280 -0
- package/src/lockdown-shim.js +7 -4
- package/src/strict-scope-terminator.js +2 -3
- package/src/tame-harden.js +23 -0
- package/src/whitelist.js +9 -1
- package/types.d.ts +1 -0
package/dist/lockdown.cjs
CHANGED
|
@@ -63,6 +63,8 @@ const {
|
|
|
63
63
|
getOwnPropertyNames,
|
|
64
64
|
getPrototypeOf,
|
|
65
65
|
is,
|
|
66
|
+
isFrozen,
|
|
67
|
+
isSealed,
|
|
66
68
|
isExtensible,
|
|
67
69
|
keys,
|
|
68
70
|
prototype: objectPrototype,
|
|
@@ -71,7 +73,7 @@ const {
|
|
|
71
73
|
setPrototypeOf,
|
|
72
74
|
values,
|
|
73
75
|
fromEntries}=
|
|
74
|
-
Object;$h_once.assign(assign);$h_once.create(create);$h_once.defineProperties(defineProperties);$h_once.entries(entries);$h_once.freeze(freeze);$h_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h_once.getOwnPropertyNames(getOwnPropertyNames);$h_once.getPrototypeOf(getPrototypeOf);$h_once.is(is);$h_once.isExtensible(isExtensible);$h_once.keys(keys);$h_once.objectPrototype(objectPrototype);$h_once.seal(seal);$h_once.preventExtensions(preventExtensions);$h_once.setPrototypeOf(setPrototypeOf);$h_once.values(values);$h_once.fromEntries(fromEntries);
|
|
76
|
+
Object;$h_once.assign(assign);$h_once.create(create);$h_once.defineProperties(defineProperties);$h_once.entries(entries);$h_once.freeze(freeze);$h_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h_once.getOwnPropertyNames(getOwnPropertyNames);$h_once.getPrototypeOf(getPrototypeOf);$h_once.is(is);$h_once.isFrozen(isFrozen);$h_once.isSealed(isSealed);$h_once.isExtensible(isExtensible);$h_once.keys(keys);$h_once.objectPrototype(objectPrototype);$h_once.seal(seal);$h_once.preventExtensions(preventExtensions);$h_once.setPrototypeOf(setPrototypeOf);$h_once.values(values);$h_once.fromEntries(fromEntries);
|
|
75
77
|
|
|
76
78
|
const {
|
|
77
79
|
species: speciesSymbol,
|
|
@@ -384,6 +386,289 @@ const noEvalEvaluate= ()=> {
|
|
|
384
386
|
})
|
|
385
387
|
,
|
|
386
388
|
// === functors[2] ===
|
|
389
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([["./internal-types.js", []]]);
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
const { freeze}= Object;
|
|
396
|
+
const { isSafeInteger}= Number;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @template Data
|
|
400
|
+
* @typedef {object} DoublyLinkedCell
|
|
401
|
+
* A cell of a doubly-linked ring, i.e., a doubly-linked circular list.
|
|
402
|
+
* DoublyLinkedCells are not frozen, and so should be closely encapsulated by
|
|
403
|
+
* any abstraction that uses them.
|
|
404
|
+
* @property {DoublyLinkedCell<Data>} next
|
|
405
|
+
* @property {DoublyLinkedCell<Data>} prev
|
|
406
|
+
* @property {Data} data
|
|
407
|
+
*/
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Makes a new self-linked cell. There are two reasons to do so:
|
|
411
|
+
* * To make the head sigil of a new initially-empty doubly-linked ring.
|
|
412
|
+
* * To make a non-sigil cell to be `spliceAfter`ed.
|
|
413
|
+
*
|
|
414
|
+
* @template Data
|
|
415
|
+
* @param {Data} data
|
|
416
|
+
* @returns {DoublyLinkedCell<Data>}
|
|
417
|
+
*/
|
|
418
|
+
const makeSelfCell= (data)=>{
|
|
419
|
+
/** @type {Partial<DoublyLinkedCell<Data>>} */
|
|
420
|
+
const incompleteCell= {
|
|
421
|
+
next: undefined,
|
|
422
|
+
prev: undefined,
|
|
423
|
+
data};
|
|
424
|
+
|
|
425
|
+
const selfCell= /** @type {DoublyLinkedCell<Data>} */ incompleteCell;
|
|
426
|
+
selfCell.next= selfCell;
|
|
427
|
+
selfCell.prev= selfCell;
|
|
428
|
+
// Not frozen!
|
|
429
|
+
return selfCell;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Splices a self-linked non-sigil cell into a ring after `prev`.
|
|
434
|
+
* `prev` could be the head sigil, or it could be some other non-sigil
|
|
435
|
+
* cell within a ring.
|
|
436
|
+
*
|
|
437
|
+
* @template Data
|
|
438
|
+
* @param {DoublyLinkedCell<Data>} prev
|
|
439
|
+
* @param {DoublyLinkedCell<Data>} selfCell
|
|
440
|
+
*/
|
|
441
|
+
const spliceAfter= (prev, selfCell)=> {
|
|
442
|
+
if( prev=== selfCell) {
|
|
443
|
+
throw TypeError('Cannot splice a cell into itself');
|
|
444
|
+
}
|
|
445
|
+
if( selfCell.next!== selfCell|| selfCell.prev!== selfCell) {
|
|
446
|
+
throw TypeError('Expected self-linked cell');
|
|
447
|
+
}
|
|
448
|
+
const cell= selfCell;
|
|
449
|
+
// rename variable cause it isn't self-linked after this point.
|
|
450
|
+
|
|
451
|
+
const next= prev.next;
|
|
452
|
+
cell.prev= prev;
|
|
453
|
+
cell.next= next;
|
|
454
|
+
prev.next= cell;
|
|
455
|
+
next.prev= cell;
|
|
456
|
+
// Not frozen!
|
|
457
|
+
return cell;
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @template Data
|
|
462
|
+
* @param {DoublyLinkedCell<Data>} cell
|
|
463
|
+
* No-op if the cell is self-linked.
|
|
464
|
+
*/
|
|
465
|
+
const spliceOut= (cell)=>{
|
|
466
|
+
const { prev, next}= cell;
|
|
467
|
+
prev.next= next;
|
|
468
|
+
next.prev= prev;
|
|
469
|
+
cell.prev= cell;
|
|
470
|
+
cell.next= cell;
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* The LRUCacheMap is used within the implementation of `assert` and so
|
|
475
|
+
* at a layer below SES or harden. Thus, we give it a `WeakMap`-like interface
|
|
476
|
+
* rather than a `WeakMapStore`-like interface. To work before `lockdown`,
|
|
477
|
+
* the implementation must use `freeze` manually, but still exhaustively.
|
|
478
|
+
*
|
|
479
|
+
* It implements the WeakMap interface, and holds its keys weakly. Cached
|
|
480
|
+
* values are only held while the key is held by the user and the key/value
|
|
481
|
+
* bookkeeping cell has not been pushed off the end of the cache by `budget`
|
|
482
|
+
* number of more recently referenced cells. If the key is dropped by the user,
|
|
483
|
+
* the value will no longer be held by the cache, but the bookkeeping cell
|
|
484
|
+
* itself will stay in memory.
|
|
485
|
+
*
|
|
486
|
+
* @template {{}} K
|
|
487
|
+
* @template {unknown} V
|
|
488
|
+
* @param {number} keysBudget
|
|
489
|
+
* @returns {WeakMap<K,V>}
|
|
490
|
+
*/
|
|
491
|
+
const makeLRUCacheMap= (keysBudget)=>{
|
|
492
|
+
if( !isSafeInteger(keysBudget)|| keysBudget< 0) {
|
|
493
|
+
throw new TypeError(
|
|
494
|
+
'keysBudget must be a safe non-negative integer number');
|
|
495
|
+
|
|
496
|
+
}
|
|
497
|
+
/** @typedef {DoublyLinkedCell<WeakMap<K, V> | undefined>} LRUCacheCell */
|
|
498
|
+
/** @type {WeakMap<K, LRUCacheCell>} */
|
|
499
|
+
const keyToCell= new WeakMap();
|
|
500
|
+
let size= 0; // `size` must remain <= `keysBudget`
|
|
501
|
+
// As a sigil, `head` uniquely is not in the `keyToCell` map.
|
|
502
|
+
/** @type {LRUCacheCell} */
|
|
503
|
+
const head= makeSelfCell(undefined);
|
|
504
|
+
|
|
505
|
+
const touchCell= (key)=>{
|
|
506
|
+
const cell= keyToCell.get(key);
|
|
507
|
+
if( cell=== undefined|| cell.data=== undefined) {
|
|
508
|
+
// Either the key was GCed, or the cell was condemned.
|
|
509
|
+
return undefined;
|
|
510
|
+
}
|
|
511
|
+
// Becomes most recently used
|
|
512
|
+
spliceOut(cell);
|
|
513
|
+
spliceAfter(head, cell);
|
|
514
|
+
return cell;
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @param {K} key
|
|
519
|
+
*/
|
|
520
|
+
const has= (key)=>touchCell(key)!== undefined;
|
|
521
|
+
freeze(has);
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* @param {K} key
|
|
525
|
+
*/
|
|
526
|
+
// TODO Change to the following line, once our tools don't choke on `?.`.
|
|
527
|
+
// See https://github.com/endojs/endo/issues/1514
|
|
528
|
+
// const get = key => touchCell(key)?.data?.get(key);
|
|
529
|
+
const get= (key)=>{
|
|
530
|
+
const cell= touchCell(key);
|
|
531
|
+
return cell&& cell.data&& cell.data.get(key);
|
|
532
|
+
};
|
|
533
|
+
freeze(get);
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @param {K} key
|
|
537
|
+
* @param {V} value
|
|
538
|
+
*/
|
|
539
|
+
const set= (key, value)=> {
|
|
540
|
+
if( keysBudget< 1) {
|
|
541
|
+
// eslint-disable-next-line no-use-before-define
|
|
542
|
+
return lruCacheMap; // Implements WeakMap.set
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
let cell= touchCell(key);
|
|
546
|
+
if( cell=== undefined) {
|
|
547
|
+
cell= makeSelfCell(undefined);
|
|
548
|
+
spliceAfter(head, cell); // start most recently used
|
|
549
|
+
}
|
|
550
|
+
if( !cell.data) {
|
|
551
|
+
// Either a fresh cell or a reused condemned cell.
|
|
552
|
+
size+= 1;
|
|
553
|
+
// Add its data.
|
|
554
|
+
cell.data= new WeakMap();
|
|
555
|
+
// Advertise the cell for this key.
|
|
556
|
+
keyToCell.set(key, cell);
|
|
557
|
+
while( size> keysBudget) {
|
|
558
|
+
const condemned= head.prev;
|
|
559
|
+
spliceOut(condemned); // Drop least recently used
|
|
560
|
+
condemned.data= undefined;
|
|
561
|
+
size-= 1;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
// Update the data.
|
|
566
|
+
cell.data.set(key, value);
|
|
567
|
+
|
|
568
|
+
// eslint-disable-next-line no-use-before-define
|
|
569
|
+
return lruCacheMap; // Implements WeakMap.set
|
|
570
|
+
};
|
|
571
|
+
freeze(set);
|
|
572
|
+
|
|
573
|
+
// "delete" is a keyword.
|
|
574
|
+
/**
|
|
575
|
+
* @param {K} key
|
|
576
|
+
*/
|
|
577
|
+
const deleteIt= (key)=>{
|
|
578
|
+
const cell= keyToCell.get(key);
|
|
579
|
+
if( cell=== undefined) {
|
|
580
|
+
return false;
|
|
581
|
+
}
|
|
582
|
+
spliceOut(cell);
|
|
583
|
+
keyToCell.delete(key);
|
|
584
|
+
if( cell.data=== undefined) {
|
|
585
|
+
// Already condemned.
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
cell.data= undefined;
|
|
590
|
+
size-= 1;
|
|
591
|
+
return true;
|
|
592
|
+
};
|
|
593
|
+
freeze(deleteIt);
|
|
594
|
+
|
|
595
|
+
const lruCacheMap= freeze({
|
|
596
|
+
has,
|
|
597
|
+
get,
|
|
598
|
+
set,
|
|
599
|
+
delete: deleteIt,
|
|
600
|
+
[Symbol.toStringTag]: 'LRUCacheMap'});
|
|
601
|
+
|
|
602
|
+
return lruCacheMap;
|
|
603
|
+
};$h_once.makeLRUCacheMap(makeLRUCacheMap);
|
|
604
|
+
freeze(makeLRUCacheMap);
|
|
605
|
+
|
|
606
|
+
const defaultLoggedErrorsBudget= 1000;
|
|
607
|
+
const defaultArgsPerErrorBudget= 100;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* @param {number} [errorsBudget]
|
|
611
|
+
* @param {number} [argsPerErrorBudget]
|
|
612
|
+
*/
|
|
613
|
+
const makeNoteLogArgsArrayKit= (
|
|
614
|
+
errorsBudget= defaultLoggedErrorsBudget,
|
|
615
|
+
argsPerErrorBudget= defaultArgsPerErrorBudget)=>
|
|
616
|
+
{
|
|
617
|
+
if( !isSafeInteger(argsPerErrorBudget)|| argsPerErrorBudget< 1) {
|
|
618
|
+
throw new TypeError(
|
|
619
|
+
'argsPerErrorBudget must be a safe positive integer number');
|
|
620
|
+
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @type {WeakMap<Error, LogArgs[]>}
|
|
625
|
+
*
|
|
626
|
+
* Maps from an error to an array of log args, where each log args is
|
|
627
|
+
* remembered as an annotation on that error. This can be used, for example,
|
|
628
|
+
* to keep track of additional causes of the error. The elements of any
|
|
629
|
+
* log args may include errors which are associated with further annotations.
|
|
630
|
+
* An augmented console, like the causal console of `console.js`, could
|
|
631
|
+
* then retrieve the graph of such annotations.
|
|
632
|
+
*/
|
|
633
|
+
const noteLogArgsArrayMap= makeLRUCacheMap(errorsBudget);
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* @param {Error} error
|
|
637
|
+
* @param {LogArgs} logArgs
|
|
638
|
+
*/
|
|
639
|
+
const addLogArgs= (error, logArgs)=> {
|
|
640
|
+
const logArgsArray= noteLogArgsArrayMap.get(error);
|
|
641
|
+
if( logArgsArray!== undefined) {
|
|
642
|
+
if( logArgsArray.length>= argsPerErrorBudget) {
|
|
643
|
+
logArgsArray.shift();
|
|
644
|
+
}
|
|
645
|
+
logArgsArray.push(logArgs);
|
|
646
|
+
}else {
|
|
647
|
+
noteLogArgsArrayMap.set(error, [logArgs]);
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
freeze(addLogArgs);
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* @param {Error} error
|
|
654
|
+
* @returns {LogArgs[] | undefined}
|
|
655
|
+
*/
|
|
656
|
+
const takeLogArgsArray= (error)=>{
|
|
657
|
+
const result= noteLogArgsArrayMap.get(error);
|
|
658
|
+
noteLogArgsArrayMap.delete(error);
|
|
659
|
+
return result;
|
|
660
|
+
};
|
|
661
|
+
freeze(takeLogArgsArray);
|
|
662
|
+
|
|
663
|
+
return freeze({
|
|
664
|
+
addLogArgs,
|
|
665
|
+
takeLogArgsArray});
|
|
666
|
+
|
|
667
|
+
};$h_once.makeNoteLogArgsArrayKit(makeNoteLogArgsArrayKit);
|
|
668
|
+
freeze(makeNoteLogArgsArrayKit);
|
|
669
|
+
})
|
|
670
|
+
,
|
|
671
|
+
// === functors[3] ===
|
|
387
672
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Set,String,arrayJoin,arraySlice,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)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arraySlice", [$h_a => (arraySlice = $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)]]]]]);
|
|
388
673
|
|
|
389
674
|
|
|
@@ -554,7 +839,7 @@ const bestEffortStringify= (payload, spaces= undefined)=> {
|
|
|
554
839
|
freeze(bestEffortStringify);
|
|
555
840
|
})
|
|
556
841
|
,
|
|
557
|
-
// === functors[
|
|
842
|
+
// === functors[4] ===
|
|
558
843
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([]); // @ts-check
|
|
559
844
|
|
|
560
845
|
/**
|
|
@@ -961,8 +1246,9 @@ freeze(bestEffortStringify);
|
|
|
961
1246
|
*/
|
|
962
1247
|
})
|
|
963
1248
|
,
|
|
964
|
-
// === functors[
|
|
965
|
-
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,globalThis,is,isError,stringIndexOf,stringReplace,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,an,bestEffortStringify;$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)]],["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", []]]);
|
|
1249
|
+
// === functors[5] ===
|
|
1250
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,globalThis,is,isError,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)]],["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)]]]]]);
|
|
1251
|
+
|
|
966
1252
|
|
|
967
1253
|
|
|
968
1254
|
|
|
@@ -1215,17 +1501,7 @@ freeze(makeError);
|
|
|
1215
1501
|
|
|
1216
1502
|
// /////////////////////////////////////////////////////////////////////////////
|
|
1217
1503
|
|
|
1218
|
-
|
|
1219
|
-
* @type {WeakMap<Error, LogArgs[]>}
|
|
1220
|
-
*
|
|
1221
|
-
* Maps from an error to an array of log args, where each log args is
|
|
1222
|
-
* remembered as an annotation on that error. This can be used, for example,
|
|
1223
|
-
* to keep track of additional causes of the error. The elements of any
|
|
1224
|
-
* log args may include errors which are associated with further annotations.
|
|
1225
|
-
* An augmented console, like the causal console of `console.js`, could
|
|
1226
|
-
* then retrieve the graph of such annotations.
|
|
1227
|
-
*/
|
|
1228
|
-
const hiddenNoteLogArgsArrays= new WeakMap();
|
|
1504
|
+
const { addLogArgs, takeLogArgsArray}= makeNoteLogArgsArrayKit();
|
|
1229
1505
|
|
|
1230
1506
|
/**
|
|
1231
1507
|
* @type {WeakMap<Error, NoteCallback[]>}
|
|
@@ -1259,12 +1535,7 @@ const note= (error, detailsNote)=> {
|
|
|
1259
1535
|
callback(error, logArgs);
|
|
1260
1536
|
}
|
|
1261
1537
|
}else {
|
|
1262
|
-
|
|
1263
|
-
if( logArgsArray!== undefined) {
|
|
1264
|
-
arrayPush(logArgsArray, logArgs);
|
|
1265
|
-
}else {
|
|
1266
|
-
weakmapSet(hiddenNoteLogArgsArrays, error, [logArgs]);
|
|
1267
|
-
}
|
|
1538
|
+
addLogArgs(error, logArgs);
|
|
1268
1539
|
}
|
|
1269
1540
|
};
|
|
1270
1541
|
freeze(note);
|
|
@@ -1303,8 +1574,7 @@ const loggedErrorHandler= {
|
|
|
1303
1574
|
return result;
|
|
1304
1575
|
},
|
|
1305
1576
|
takeNoteLogArgsArray: (error, callback)=> {
|
|
1306
|
-
const result=
|
|
1307
|
-
weakmapDelete(hiddenNoteLogArgsArrays, error);
|
|
1577
|
+
const result= takeLogArgsArray(error);
|
|
1308
1578
|
if( callback!== undefined) {
|
|
1309
1579
|
const callbacks= weakmapGet(hiddenNoteCallbackArrays, error);
|
|
1310
1580
|
if( callbacks) {
|
|
@@ -1421,7 +1691,7 @@ freeze(makeAssert);
|
|
|
1421
1691
|
const assert= makeAssert();$h_once.assert(assert);
|
|
1422
1692
|
})
|
|
1423
1693
|
,
|
|
1424
|
-
// === functors[
|
|
1694
|
+
// === functors[6] ===
|
|
1425
1695
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_EVAL,create,defineProperties,freeze,assert;$h_imports([["./commons.js", [["FERAL_EVAL", [$h_a => (FERAL_EVAL = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
1426
1696
|
|
|
1427
1697
|
|
|
@@ -1511,7 +1781,7 @@ const makeEvalScopeKit= ()=> {
|
|
|
1511
1781
|
};$h_once.makeEvalScopeKit(makeEvalScopeKit);
|
|
1512
1782
|
})
|
|
1513
1783
|
,
|
|
1514
|
-
// === functors[
|
|
1784
|
+
// === functors[7] ===
|
|
1515
1785
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { 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)]]]]]);
|
|
1516
1786
|
|
|
1517
1787
|
|
|
@@ -1693,7 +1963,7 @@ const getScopeConstants= (globalObject, moduleLexicals= {})=> {
|
|
|
1693
1963
|
};$h_once.getScopeConstants(getScopeConstants);
|
|
1694
1964
|
})
|
|
1695
1965
|
,
|
|
1696
|
-
// === functors[
|
|
1966
|
+
// === functors[8] ===
|
|
1697
1967
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,arrayJoin,apply,getScopeConstants;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["apply", [$h_a => (apply = $h_a)]]]],["./scope-constants.js", [["getScopeConstants", [$h_a => (getScopeConstants = $h_a)]]]]]);
|
|
1698
1968
|
|
|
1699
1969
|
|
|
@@ -1806,7 +2076,7 @@ const makeEvaluate= (context)=>{
|
|
|
1806
2076
|
};$h_once.makeEvaluate(makeEvaluate);
|
|
1807
2077
|
})
|
|
1808
2078
|
,
|
|
1809
|
-
// === functors[
|
|
2079
|
+
// === functors[9] ===
|
|
1810
2080
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,globalThis,immutableObject,assert;$h_imports([["./commons.js", [["Proxy", [$h_a => (Proxy = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["immutableObject", [$h_a => (immutableObject = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
1811
2081
|
|
|
1812
2082
|
|
|
@@ -1866,9 +2136,8 @@ const scopeProxyHandlerProperties= {
|
|
|
1866
2136
|
return null;
|
|
1867
2137
|
},
|
|
1868
2138
|
|
|
1869
|
-
//
|
|
1870
|
-
// TODO
|
|
1871
|
-
// TODO report as bug to v8 or Chrome, and record issue link here.
|
|
2139
|
+
// See https://github.com/endojs/endo/issues/1510
|
|
2140
|
+
// TODO: report as bug to v8 or Chrome, and record issue link here.
|
|
1872
2141
|
getOwnPropertyDescriptor(_target, prop) {
|
|
1873
2142
|
// Coerce with `String` in case prop is a symbol.
|
|
1874
2143
|
const quotedProp= q(String(prop));
|
|
@@ -1896,7 +2165,7 @@ const strictScopeTerminator= new Proxy(
|
|
|
1896
2165
|
strictScopeTerminatorHandler);$h_once.strictScopeTerminator(strictScopeTerminator);
|
|
1897
2166
|
})
|
|
1898
2167
|
,
|
|
1899
|
-
// === functors[
|
|
2168
|
+
// === functors[10] ===
|
|
1900
2169
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Proxy,create,freeze,getOwnPropertyDescriptors,immutableObject,reflectSet,strictScopeTerminatorHandler,alwaysThrowHandler;$h_imports([["./commons.js", [["Proxy", [$h_a => (Proxy = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["immutableObject", [$h_a => (immutableObject = $h_a)]],["reflectSet", [$h_a => (reflectSet = $h_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler", [$h_a => (strictScopeTerminatorHandler = $h_a)]],["alwaysThrowHandler", [$h_a => (alwaysThrowHandler = $h_a)]]]]]);
|
|
1901
2170
|
|
|
1902
2171
|
|
|
@@ -1953,7 +2222,7 @@ const createSloppyGlobalsScopeTerminator= (globalObject)=>{
|
|
|
1953
2222
|
freeze(createSloppyGlobalsScopeTerminator);
|
|
1954
2223
|
})
|
|
1955
2224
|
,
|
|
1956
|
-
// === functors[
|
|
2225
|
+
// === functors[11] ===
|
|
1957
2226
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_REG_EXP,regexpExec,stringSlice;$h_imports([["./commons.js", [["FERAL_REG_EXP", [$h_a => (FERAL_REG_EXP = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]],["stringSlice", [$h_a => (stringSlice = $h_a)]]]]]);
|
|
1958
2227
|
|
|
1959
2228
|
// Captures a key and value of the form #key=value or @key=value
|
|
@@ -2006,7 +2275,7 @@ const getSourceURL= (src)=>{
|
|
|
2006
2275
|
};$h_once.getSourceURL(getSourceURL);
|
|
2007
2276
|
})
|
|
2008
2277
|
,
|
|
2009
|
-
// === functors[
|
|
2278
|
+
// === functors[12] ===
|
|
2010
2279
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { 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)]]]]]);
|
|
2011
2280
|
|
|
2012
2281
|
|
|
@@ -2274,7 +2543,7 @@ $h_once.applyTransforms(applyTransforms);const transforms=freeze({
|
|
|
2274
2543
|
applyTransforms: freeze(applyTransforms)});$h_once.transforms(transforms);
|
|
2275
2544
|
})
|
|
2276
2545
|
,
|
|
2277
|
-
// === functors[
|
|
2546
|
+
// === functors[13] ===
|
|
2278
2547
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let apply,freeze,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h_imports([["./commons.js", [["apply", [$h_a => (apply = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminator", [$h_a => (strictScopeTerminator = $h_a)]]]],["./sloppy-globals-scope-terminator.js", [["createSloppyGlobalsScopeTerminator", [$h_a => (createSloppyGlobalsScopeTerminator = $h_a)]]]],["./eval-scope.js", [["makeEvalScopeKit", [$h_a => (makeEvalScopeKit = $h_a)]]]],["./transforms.js", [["applyTransforms", [$h_a => (applyTransforms = $h_a)]],["mandatoryTransforms", [$h_a => (mandatoryTransforms = $h_a)]]]],["./make-evaluate.js", [["makeEvaluate", [$h_a => (makeEvaluate = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
2279
2548
|
|
|
2280
2549
|
|
|
@@ -2386,7 +2655,7 @@ const makeSafeEvaluator= ({
|
|
|
2386
2655
|
};$h_once.makeSafeEvaluator(makeSafeEvaluator);
|
|
2387
2656
|
})
|
|
2388
2657
|
,
|
|
2389
|
-
// === functors[
|
|
2658
|
+
// === functors[14] ===
|
|
2390
2659
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { 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)]]]]]);
|
|
2391
2660
|
|
|
2392
2661
|
|
|
@@ -2482,7 +2751,7 @@ const compartmentEvaluate= (compartmentFields, source, options)=> {
|
|
|
2482
2751
|
};$h_once.compartmentEvaluate(compartmentEvaluate);
|
|
2483
2752
|
})
|
|
2484
2753
|
,
|
|
2485
|
-
// === functors[
|
|
2754
|
+
// === functors[15] ===
|
|
2486
2755
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([]); /**
|
|
2487
2756
|
* makeEvalFunction()
|
|
2488
2757
|
* A safe version of the native eval function which relies on
|
|
@@ -2512,7 +2781,7 @@ const makeEvalFunction= (safeEvaluate)=>{
|
|
|
2512
2781
|
};$h_once.makeEvalFunction(makeEvalFunction);
|
|
2513
2782
|
})
|
|
2514
2783
|
,
|
|
2515
|
-
// === functors[
|
|
2784
|
+
// === functors[16] ===
|
|
2516
2785
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,arrayJoin,arrayPop,defineProperties,getPrototypeOf,assert;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayPop", [$h_a => (arrayPop = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
2517
2786
|
|
|
2518
2787
|
|
|
@@ -2593,7 +2862,7 @@ const makeFunctionConstructor= (safeEvaluate)=>{
|
|
|
2593
2862
|
};$h_once.makeFunctionConstructor(makeFunctionConstructor);
|
|
2594
2863
|
})
|
|
2595
2864
|
,
|
|
2596
|
-
// === functors[
|
|
2865
|
+
// === functors[17] ===
|
|
2597
2866
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([]); /* eslint-disable no-restricted-globals */
|
|
2598
2867
|
/**
|
|
2599
2868
|
* @file Exports {@code whitelist}, a recursively defined
|
|
@@ -3817,6 +4086,10 @@ const whitelist= {
|
|
|
3817
4086
|
'[[Proto]]': '%FunctionPrototype%',
|
|
3818
4087
|
constructor: '%InertAsyncGeneratorFunction%',
|
|
3819
4088
|
prototype: '%AsyncGeneratorPrototype%',
|
|
4089
|
+
// length prop added here for React Native jsc-android
|
|
4090
|
+
// https://github.com/endojs/endo/issues/660
|
|
4091
|
+
// https://github.com/react-native-community/jsc-android-buildscripts/issues/181
|
|
4092
|
+
length: 'number',
|
|
3820
4093
|
'@@toStringTag': 'string'},
|
|
3821
4094
|
|
|
3822
4095
|
|
|
@@ -3899,6 +4172,10 @@ const whitelist= {
|
|
|
3899
4172
|
// Properties of the AsyncFunction Prototype Object
|
|
3900
4173
|
'[[Proto]]': '%FunctionPrototype%',
|
|
3901
4174
|
constructor: '%InertAsyncFunction%',
|
|
4175
|
+
// length prop added here for React Native jsc-android
|
|
4176
|
+
// https://github.com/endojs/endo/issues/660
|
|
4177
|
+
// https://github.com/react-native-community/jsc-android-buildscripts/issues/181
|
|
4178
|
+
length: 'number',
|
|
3902
4179
|
'@@toStringTag': 'string'},
|
|
3903
4180
|
|
|
3904
4181
|
|
|
@@ -3964,12 +4241,12 @@ const whitelist= {
|
|
|
3964
4241
|
|
|
3965
4242
|
|
|
3966
4243
|
lockdown: fn,
|
|
3967
|
-
harden: fn,
|
|
4244
|
+
harden: { ...fn, isFake: 'boolean'},
|
|
3968
4245
|
|
|
3969
4246
|
'%InitialGetStackString%': fn};$h_once.whitelist(whitelist);
|
|
3970
4247
|
})
|
|
3971
4248
|
,
|
|
3972
|
-
// === functors[
|
|
4249
|
+
// === functors[18] ===
|
|
3973
4250
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,assign,create,defineProperty,entries,freeze,objectHasOwnProperty,unscopablesSymbol,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["assign", [$h_a => (assign = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["unscopablesSymbol", [$h_a => (unscopablesSymbol = $h_a)]]]],["./make-eval-function.js", [["makeEvalFunction", [$h_a => (makeEvalFunction = $h_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor", [$h_a => (makeFunctionConstructor = $h_a)]]]],["./whitelist.js", [["constantProperties", [$h_a => (constantProperties = $h_a)]],["universalPropertyNames", [$h_a => (universalPropertyNames = $h_a)]]]]]);
|
|
3974
4251
|
|
|
3975
4252
|
|
|
@@ -4139,7 +4416,7 @@ const setGlobalObjectEvaluators= (
|
|
|
4139
4416
|
};$h_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
|
|
4140
4417
|
})
|
|
4141
4418
|
,
|
|
4142
|
-
// === functors[
|
|
4419
|
+
// === functors[19] ===
|
|
4143
4420
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let ReferenceError,TypeError,Map,Set,arrayJoin,arrayMap,arrayPush,create,freeze,mapGet,mapHas,mapSet,setAdd,promiseCatch,promiseThen,values,weakmapGet,assert;$h_imports([["./commons.js", [["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["Set", [$h_a => (Set = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["promiseCatch", [$h_a => (promiseCatch = $h_a)]],["promiseThen", [$h_a => (promiseThen = $h_a)]],["values", [$h_a => (values = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
4144
4421
|
|
|
4145
4422
|
|
|
@@ -4505,7 +4782,7 @@ const load= async(
|
|
|
4505
4782
|
};$h_once.load(load);
|
|
4506
4783
|
})
|
|
4507
4784
|
,
|
|
4508
|
-
// === functors[
|
|
4785
|
+
// === functors[20] ===
|
|
4509
4786
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,weakmapSet,assert;$h_imports([["./module-load.js", [["makeAlias", [$h_a => (makeAlias = $h_a)]]]],["./commons.js", [["Proxy", [$h_a => (Proxy = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["reflectGet", [$h_a => (reflectGet = $h_a)]],["reflectGetOwnPropertyDescriptor", [$h_a => (reflectGetOwnPropertyDescriptor = $h_a)]],["reflectHas", [$h_a => (reflectHas = $h_a)]],["reflectIsExtensible", [$h_a => (reflectIsExtensible = $h_a)]],["reflectPreventExtensions", [$h_a => (reflectPreventExtensions = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
4510
4787
|
|
|
4511
4788
|
|
|
@@ -4680,7 +4957,7 @@ $h_once.deferExports(deferExports);const getDeferredExports=(
|
|
|
4680
4957
|
};$h_once.getDeferredExports(getDeferredExports);
|
|
4681
4958
|
})
|
|
4682
4959
|
,
|
|
4683
|
-
// === functors[
|
|
4960
|
+
// === functors[21] ===
|
|
4684
4961
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,reflectHas,assign,compartmentEvaluate;$h_imports([["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h_a => (getDeferredExports = $h_a)]]]],["./commons.js", [["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["SyntaxError", [$h_a => (SyntaxError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayForEach", [$h_a => (arrayForEach = $h_a)]],["arrayIncludes", [$h_a => (arrayIncludes = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["arraySome", [$h_a => (arraySome = $h_a)]],["arraySort", [$h_a => (arraySort = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["isArray", [$h_a => (isArray = $h_a)]],["keys", [$h_a => (keys = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["reflectHas", [$h_a => (reflectHas = $h_a)]],["assign", [$h_a => (assign = $h_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h_a => (compartmentEvaluate = $h_a)]]]]]);
|
|
4685
4962
|
|
|
4686
4963
|
|
|
@@ -5174,7 +5451,7 @@ $h_once.makeThirdPartyModuleInstance(makeThirdPartyModuleInstance);const make
|
|
|
5174
5451
|
};$h_once.makeModuleInstance(makeModuleInstance);
|
|
5175
5452
|
})
|
|
5176
5453
|
,
|
|
5177
|
-
// === functors[
|
|
5454
|
+
// === functors[22] ===
|
|
5178
5455
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let assert,makeModuleInstance,makeThirdPartyModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isObject,mapGet,mapHas,mapSet,weakmapGet;$h_imports([["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./module-instance.js", [["makeModuleInstance", [$h_a => (makeModuleInstance = $h_a)]],["makeThirdPartyModuleInstance", [$h_a => (makeThirdPartyModuleInstance = $h_a)]]]],["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["isArray", [$h_a => (isArray = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]]]);
|
|
5179
5456
|
|
|
5180
5457
|
|
|
@@ -5354,7 +5631,7 @@ const instantiate= (
|
|
|
5354
5631
|
};$h_once.instantiate(instantiate);
|
|
5355
5632
|
})
|
|
5356
5633
|
,
|
|
5357
|
-
// === functors[
|
|
5634
|
+
// === functors[23] ===
|
|
5358
5635
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { 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)]]]],["./whitelist.js", [["sharedGlobalPropertyNames", [$h_a => (sharedGlobalPropertyNames = $h_a)]]]],["./module-load.js", [["load", [$h_a => (load = $h_a)]]]],["./module-link.js", [["link", [$h_a => (link = $h_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h_a => (getDeferredExports = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h_a => (compartmentEvaluate = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]]]);
|
|
5359
5636
|
|
|
5360
5637
|
|
|
@@ -5653,7 +5930,7 @@ const makeCompartmentConstructor= (
|
|
|
5653
5930
|
};$h_once.makeCompartmentConstructor(makeCompartmentConstructor);
|
|
5654
5931
|
})
|
|
5655
5932
|
,
|
|
5656
|
-
// === functors[
|
|
5933
|
+
// === functors[24] ===
|
|
5657
5934
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,WeakSet,arrayFilter,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isObject,objectHasOwnProperty,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,whitelist;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["is", [$h_a => (is = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["values", [$h_a => (values = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./whitelist.js", [["constantProperties", [$h_a => (constantProperties = $h_a)]],["sharedGlobalPropertyNames", [$h_a => (sharedGlobalPropertyNames = $h_a)]],["universalPropertyNames", [$h_a => (universalPropertyNames = $h_a)]],["whitelist", [$h_a => (whitelist = $h_a)]]]]]);
|
|
5658
5935
|
|
|
5659
5936
|
|
|
@@ -5827,7 +6104,7 @@ const getGlobalIntrinsics= (globalObject)=>{
|
|
|
5827
6104
|
};$h_once.getGlobalIntrinsics(getGlobalIntrinsics);
|
|
5828
6105
|
})
|
|
5829
6106
|
,
|
|
5830
|
-
// === functors[
|
|
6107
|
+
// === functors[25] ===
|
|
5831
6108
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([]); /**
|
|
5832
6109
|
* @file Exports {@code enablements}, a recursively defined
|
|
5833
6110
|
* JSON record defining the optimum set of intrinsics properties
|
|
@@ -5871,7 +6148,7 @@ const getGlobalIntrinsics= (globalObject)=>{
|
|
|
5871
6148
|
* <ul>
|
|
5872
6149
|
* <li>true, in which case this property is simply repaired. The
|
|
5873
6150
|
* value associated with that property is not traversed. For
|
|
5874
|
-
*
|
|
6151
|
+
* example, {@code "Function.prototype.name"} leads to true,
|
|
5875
6152
|
* meaning that the {@code "name"} property of {@code
|
|
5876
6153
|
* "Function.prototype"} should be repaired (which is needed
|
|
5877
6154
|
* when inheriting from @code{Function} and setting the subclass's
|
|
@@ -6050,7 +6327,7 @@ const severeEnablements= {
|
|
|
6050
6327
|
'%SetPrototype%': '*'};$h_once.severeEnablements(severeEnablements);
|
|
6051
6328
|
})
|
|
6052
6329
|
,
|
|
6053
|
-
// === functors[
|
|
6330
|
+
// === functors[26] ===
|
|
6054
6331
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getOwnPropertyNames,isObject,objectHasOwnProperty,ownKeys,setHas,minEnablements,moderateEnablements,severeEnablements;$h_imports([["./commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayForEach", [$h_a => (arrayForEach = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["setHas", [$h_a => (setHas = $h_a)]]]],["./enablements.js", [["minEnablements", [$h_a => (minEnablements = $h_a)]],["moderateEnablements", [$h_a => (moderateEnablements = $h_a)]],["severeEnablements", [$h_a => (severeEnablements = $h_a)]]]]]);
|
|
6055
6332
|
|
|
6056
6333
|
|
|
@@ -6257,7 +6534,7 @@ function enablePropertyOverrides(
|
|
|
6257
6534
|
}$h_once.default( enablePropertyOverrides);
|
|
6258
6535
|
})
|
|
6259
6536
|
,
|
|
6260
|
-
// === functors[
|
|
6537
|
+
// === functors[27] ===
|
|
6261
6538
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let arrayPush,freeze,assert;$h_imports([["./commons.js", [["arrayPush", [$h_a => (arrayPush = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
6262
6539
|
|
|
6263
6540
|
|
|
@@ -6377,7 +6654,7 @@ const makeEnvironmentCaptor= (aGlobal)=>{
|
|
|
6377
6654
|
freeze(makeEnvironmentCaptor);
|
|
6378
6655
|
})
|
|
6379
6656
|
,
|
|
6380
|
-
// === functors[
|
|
6657
|
+
// === functors[28] ===
|
|
6381
6658
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let WeakSet,arrayFilter,arrayMap,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["isError", [$h_a => (isError = $h_a)]],["stringEndsWith", [$h_a => (stringEndsWith = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
6382
6659
|
|
|
6383
6660
|
|
|
@@ -6759,7 +7036,7 @@ const filterConsole= (baseConsole, filter, _topic= undefined)=> {
|
|
|
6759
7036
|
freeze(filterConsole);
|
|
6760
7037
|
})
|
|
6761
7038
|
,
|
|
6762
|
-
// === functors[
|
|
7039
|
+
// === functors[29] ===
|
|
6763
7040
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FinalizationRegistry,Map,mapGet,mapDelete,WeakMap,mapSet,finalizationRegistryRegister,weakmapSet,weakmapGet,mapEntries,mapHas;$h_imports([["../commons.js", [["FinalizationRegistry", [$h_a => (FinalizationRegistry = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapDelete", [$h_a => (mapDelete = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["finalizationRegistryRegister", [$h_a => (finalizationRegistryRegister = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["mapEntries", [$h_a => (mapEntries = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]]]]]);
|
|
6764
7041
|
|
|
6765
7042
|
|
|
@@ -6884,7 +7161,7 @@ const makeRejectionHandlers= (reportReason)=>{
|
|
|
6884
7161
|
};$h_once.makeRejectionHandlers(makeRejectionHandlers);
|
|
6885
7162
|
})
|
|
6886
7163
|
,
|
|
6887
|
-
// === functors[
|
|
7164
|
+
// === functors[30] ===
|
|
6888
7165
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h_imports([["../commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]]]],["./assert.js", [["loggedErrorHandler", [$h_a => (defaultHandler = $h_a)]]]],["./console.js", [["makeCausalConsole", [$h_a => (makeCausalConsole = $h_a)]]]],["./unhandled-rejection.js", [["makeRejectionHandlers", [$h_a => (makeRejectionHandlers = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
6889
7166
|
|
|
6890
7167
|
|
|
@@ -7027,7 +7304,7 @@ const tameConsole= (
|
|
|
7027
7304
|
};$h_once.tameConsole(tameConsole);
|
|
7028
7305
|
})
|
|
7029
7306
|
,
|
|
7030
|
-
// === functors[
|
|
7307
|
+
// === functors[31] ===
|
|
7031
7308
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,regexpTest,weakmapGet,weakmapSet,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arraySlice", [$h_a => (arraySlice = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["reflectSet", [$h_a => (reflectSet = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]],["regexpTest", [$h_a => (regexpTest = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]]]);
|
|
7032
7309
|
|
|
7033
7310
|
|
|
@@ -7367,7 +7644,7 @@ const tameV8ErrorConstructor= (
|
|
|
7367
7644
|
};$h_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
|
|
7368
7645
|
})
|
|
7369
7646
|
,
|
|
7370
|
-
// === functors[
|
|
7647
|
+
// === functors[32] ===
|
|
7371
7648
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_ERROR,TypeError,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,NativeErrors,tameV8ErrorConstructor;$h_imports([["../commons.js", [["FERAL_ERROR", [$h_a => (FERAL_ERROR = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["setPrototypeOf", [$h_a => (setPrototypeOf = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]]]],["../whitelist.js", [["NativeErrors", [$h_a => (NativeErrors = $h_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor", [$h_a => (tameV8ErrorConstructor = $h_a)]]]]]);
|
|
7372
7649
|
|
|
7373
7650
|
|
|
@@ -7621,7 +7898,7 @@ function tameErrorConstructor(
|
|
|
7621
7898
|
}$h_once.default( tameErrorConstructor);
|
|
7622
7899
|
})
|
|
7623
7900
|
,
|
|
7624
|
-
// === functors[
|
|
7901
|
+
// === functors[33] ===
|
|
7625
7902
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,InertCompartment;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["Float32Array", [$h_a => (Float32Array = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["iterateArray", [$h_a => (iterateArray = $h_a)]],["iterateMap", [$h_a => (iterateMap = $h_a)]],["iterateSet", [$h_a => (iterateSet = $h_a)]],["iterateString", [$h_a => (iterateString = $h_a)]],["matchAllRegExp", [$h_a => (matchAllRegExp = $h_a)]],["matchAllSymbol", [$h_a => (matchAllSymbol = $h_a)]],["regexpPrototype", [$h_a => (regexpPrototype = $h_a)]]]],["./compartment-shim.js", [["InertCompartment", [$h_a => (InertCompartment = $h_a)]]]]]);
|
|
7626
7903
|
|
|
7627
7904
|
|
|
@@ -7764,7 +8041,7 @@ const getAnonymousIntrinsics= ()=> {
|
|
|
7764
8041
|
};$h_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
|
|
7765
8042
|
})
|
|
7766
8043
|
,
|
|
7767
|
-
// === functors[
|
|
8044
|
+
// === functors[34] ===
|
|
7768
8045
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Set,String,TypeError,WeakMap,WeakSet,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isObject,objectHasOwnProperty,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,assert;$h_imports([["./commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["arrayForEach", [$h_a => (arrayForEach = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["isInteger", [$h_a => (isInteger = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["preventExtensions", [$h_a => (preventExtensions = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["setForEach", [$h_a => (setForEach = $h_a)]],["setHas", [$h_a => (setHas = $h_a)]],["toStringTagSymbol", [$h_a => (toStringTagSymbol = $h_a)]],["typedArrayPrototype", [$h_a => (typedArrayPrototype = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
7769
8046
|
|
|
7770
8047
|
|
|
@@ -8007,7 +8284,7 @@ const makeHardener= ()=> {
|
|
|
8007
8284
|
};$h_once.makeHardener(makeHardener);
|
|
8008
8285
|
})
|
|
8009
8286
|
,
|
|
8010
|
-
// === functors[
|
|
8287
|
+
// === functors[35] ===
|
|
8011
8288
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Date,TypeError,apply,construct,defineProperties;$h_imports([["./commons.js", [["Date", [$h_a => (Date = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]]]]]);
|
|
8012
8289
|
|
|
8013
8290
|
|
|
@@ -8124,7 +8401,7 @@ function tameDateConstructor(dateTaming= 'safe') {
|
|
|
8124
8401
|
}$h_once.default( tameDateConstructor);
|
|
8125
8402
|
})
|
|
8126
8403
|
,
|
|
8127
|
-
// === functors[
|
|
8404
|
+
// === functors[36] ===
|
|
8128
8405
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,globalThis,getOwnPropertyDescriptor,defineProperty;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]]]]]);Object.defineProperty(tameDomains, 'name', {value: "tameDomains"});$h_once.tameDomains(tameDomains);
|
|
8129
8406
|
|
|
8130
8407
|
|
|
@@ -8174,7 +8451,7 @@ function tameDomains(domainTaming= 'safe') {
|
|
|
8174
8451
|
}
|
|
8175
8452
|
})
|
|
8176
8453
|
,
|
|
8177
|
-
// === functors[
|
|
8454
|
+
// === functors[37] ===
|
|
8178
8455
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { 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)]]]]]);
|
|
8179
8456
|
|
|
8180
8457
|
|
|
@@ -8313,7 +8590,7 @@ function tameFunctionConstructors() {
|
|
|
8313
8590
|
}$h_once.default( tameFunctionConstructors);
|
|
8314
8591
|
})
|
|
8315
8592
|
,
|
|
8316
|
-
// === functors[
|
|
8593
|
+
// === functors[38] ===
|
|
8317
8594
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let WeakSet,defineProperty,freeze,functionPrototype,functionToString,stringEndsWith,weaksetAdd,weaksetHas;$h_imports([["./commons.js", [["WeakSet", [$h_a => (WeakSet = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["functionPrototype", [$h_a => (functionPrototype = $h_a)]],["functionToString", [$h_a => (functionToString = $h_a)]],["stringEndsWith", [$h_a => (stringEndsWith = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]]]);
|
|
8318
8595
|
|
|
8319
8596
|
|
|
@@ -8366,7 +8643,33 @@ const tameFunctionToString= ()=> {
|
|
|
8366
8643
|
};$h_once.tameFunctionToString(tameFunctionToString);
|
|
8367
8644
|
})
|
|
8368
8645
|
,
|
|
8369
|
-
// === functors[
|
|
8646
|
+
// === functors[39] ===
|
|
8647
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,freeze;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]]]);
|
|
8648
|
+
|
|
8649
|
+
|
|
8650
|
+
const tameHarden= (safeHarden, hardenTaming)=> {
|
|
8651
|
+
if( hardenTaming!== 'safe'&& hardenTaming!== 'unsafe') {
|
|
8652
|
+
throw new TypeError( `unrecognized fakeHardenOption ${hardenTaming}`);
|
|
8653
|
+
}
|
|
8654
|
+
|
|
8655
|
+
if( hardenTaming=== 'safe') {
|
|
8656
|
+
return safeHarden;
|
|
8657
|
+
}
|
|
8658
|
+
|
|
8659
|
+
// In on the joke
|
|
8660
|
+
Object.isExtensible= ()=> false;
|
|
8661
|
+
Object.isFrozen= ()=> true;
|
|
8662
|
+
Object.isSealed= ()=> true;
|
|
8663
|
+
Reflect.isExtensible= ()=> false;
|
|
8664
|
+
|
|
8665
|
+
const fakeHarden= (arg)=>arg;
|
|
8666
|
+
fakeHarden.isFake= true;
|
|
8667
|
+
return freeze(fakeHarden);
|
|
8668
|
+
};$h_once.tameHarden(tameHarden);
|
|
8669
|
+
freeze(tameHarden);
|
|
8670
|
+
})
|
|
8671
|
+
,
|
|
8672
|
+
// === functors[40] ===
|
|
8370
8673
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Number,String,TypeError,defineProperty,getOwnPropertyNames,isObject,regexpExec,assert;$h_imports([["./commons.js", [["Number", [$h_a => (Number = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
8371
8674
|
|
|
8372
8675
|
|
|
@@ -8450,7 +8753,7 @@ function tameLocaleMethods(intrinsics, localeTaming= 'safe') {
|
|
|
8450
8753
|
}$h_once.default( tameLocaleMethods);
|
|
8451
8754
|
})
|
|
8452
8755
|
,
|
|
8453
|
-
// === functors[
|
|
8756
|
+
// === functors[41] ===
|
|
8454
8757
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Math,TypeError,create,getOwnPropertyDescriptors,objectPrototype;$h_imports([["./commons.js", [["Math", [$h_a => (Math = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["create", [$h_a => (create = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["objectPrototype", [$h_a => (objectPrototype = $h_a)]]]]]);
|
|
8455
8758
|
|
|
8456
8759
|
|
|
@@ -8478,7 +8781,7 @@ function tameMathObject(mathTaming= 'safe') {
|
|
|
8478
8781
|
}$h_once.default( tameMathObject);
|
|
8479
8782
|
})
|
|
8480
8783
|
,
|
|
8481
|
-
// === functors[
|
|
8784
|
+
// === functors[42] ===
|
|
8482
8785
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_REG_EXP,TypeError,construct,defineProperties,getOwnPropertyDescriptor,speciesSymbol;$h_imports([["./commons.js", [["FERAL_REG_EXP", [$h_a => (FERAL_REG_EXP = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["speciesSymbol", [$h_a => (speciesSymbol = $h_a)]]]]]);
|
|
8483
8786
|
|
|
8484
8787
|
|
|
@@ -8533,7 +8836,7 @@ function tameRegExpConstructor(regExpTaming= 'safe') {
|
|
|
8533
8836
|
}$h_once.default( tameRegExpConstructor);
|
|
8534
8837
|
})
|
|
8535
8838
|
,
|
|
8536
|
-
// === functors[
|
|
8839
|
+
// === functors[43] ===
|
|
8537
8840
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let whitelist,FunctionInstance,isAccessorPermit,Map,String,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isObject,mapGet,objectHasOwnProperty,ownKeys,symbolKeyFor;$h_imports([["./whitelist.js", [["whitelist", [$h_a => (whitelist = $h_a)]],["FunctionInstance", [$h_a => (FunctionInstance = $h_a)]],["isAccessorPermit", [$h_a => (isAccessorPermit = $h_a)]]]],["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayIncludes", [$h_a => (arrayIncludes = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["symbolKeyFor", [$h_a => (symbolKeyFor = $h_a)]]]]]);
|
|
8538
8841
|
|
|
8539
8842
|
|
|
@@ -8848,8 +9151,9 @@ function whitelistIntrinsics(
|
|
|
8848
9151
|
}$h_once.default( whitelistIntrinsics);
|
|
8849
9152
|
})
|
|
8850
9153
|
,
|
|
8851
|
-
// === functors[
|
|
8852
|
-
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,arrayMap,globalThis,is,ownKeys,stringSplit,noEvalEvaluate,enJoin,makeHardener,makeIntrinsicsCollector,whitelistIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameConsole,tameErrorConstructor,assert,makeAssert,makeEnvironmentCaptor,getAnonymousIntrinsics,makeCompartmentConstructor;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["FERAL_EVAL", [$h_a => (FERAL_EVAL = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["is", [$h_a => (is = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["stringSplit", [$h_a => (stringSplit = $h_a)]],["noEvalEvaluate", [$h_a => (noEvalEvaluate = $h_a)]]]],["./error/stringify-utils.js", [["enJoin", [$h_a => (enJoin = $h_a)]]]],["./make-hardener.js", [["makeHardener", [$h_a => (makeHardener = $h_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector", [$h_a => (makeIntrinsicsCollector = $h_a)]]]],["./whitelist-intrinsics.js", [["default", [$h_a => (whitelistIntrinsics = $h_a)]]]],["./tame-function-constructors.js", [["default", [$h_a => (tameFunctionConstructors = $h_a)]]]],["./tame-date-constructor.js", [["default", [$h_a => (tameDateConstructor = $h_a)]]]],["./tame-math-object.js", [["default", [$h_a => (tameMathObject = $h_a)]]]],["./tame-regexp-constructor.js", [["default", [$h_a => (tameRegExpConstructor = $h_a)]]]],["./enable-property-overrides.js", [["default", [$h_a => (enablePropertyOverrides = $h_a)]]]],["./tame-locale-methods.js", [["default", [$h_a => (tameLocaleMethods = $h_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties", [$h_a => (setGlobalObjectConstantProperties = $h_a)]],["setGlobalObjectMutableProperties", [$h_a => (setGlobalObjectMutableProperties = $h_a)]],["setGlobalObjectEvaluators", [$h_a => (setGlobalObjectEvaluators = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]],["./whitelist.js", [["initialGlobalPropertyNames", [$h_a => (initialGlobalPropertyNames = $h_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString", [$h_a => (tameFunctionToString = $h_a)]]]],["./tame-domains.js", [["tameDomains", [$h_a => (tameDomains = $h_a)]]]],["./error/tame-console.js", [["tameConsole", [$h_a => (tameConsole = $h_a)]]]],["./error/tame-error-constructor.js", [["default", [$h_a => (tameErrorConstructor = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]],["makeAssert", [$h_a => (makeAssert = $h_a)]]]],["./environment-options.js", [["makeEnvironmentCaptor", [$h_a => (makeEnvironmentCaptor = $h_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics", [$h_a => (getAnonymousIntrinsics = $h_a)]]]],["./compartment-shim.js", [["makeCompartmentConstructor", [$h_a => (makeCompartmentConstructor = $h_a)]]]]]);
|
|
9154
|
+
// === functors[44] ===
|
|
9155
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,arrayMap,globalThis,is,ownKeys,stringSplit,noEvalEvaluate,enJoin,makeHardener,makeIntrinsicsCollector,whitelistIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameConsole,tameErrorConstructor,assert,makeAssert,makeEnvironmentCaptor,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["FERAL_EVAL", [$h_a => (FERAL_EVAL = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["is", [$h_a => (is = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["stringSplit", [$h_a => (stringSplit = $h_a)]],["noEvalEvaluate", [$h_a => (noEvalEvaluate = $h_a)]]]],["./error/stringify-utils.js", [["enJoin", [$h_a => (enJoin = $h_a)]]]],["./make-hardener.js", [["makeHardener", [$h_a => (makeHardener = $h_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector", [$h_a => (makeIntrinsicsCollector = $h_a)]]]],["./whitelist-intrinsics.js", [["default", [$h_a => (whitelistIntrinsics = $h_a)]]]],["./tame-function-constructors.js", [["default", [$h_a => (tameFunctionConstructors = $h_a)]]]],["./tame-date-constructor.js", [["default", [$h_a => (tameDateConstructor = $h_a)]]]],["./tame-math-object.js", [["default", [$h_a => (tameMathObject = $h_a)]]]],["./tame-regexp-constructor.js", [["default", [$h_a => (tameRegExpConstructor = $h_a)]]]],["./enable-property-overrides.js", [["default", [$h_a => (enablePropertyOverrides = $h_a)]]]],["./tame-locale-methods.js", [["default", [$h_a => (tameLocaleMethods = $h_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties", [$h_a => (setGlobalObjectConstantProperties = $h_a)]],["setGlobalObjectMutableProperties", [$h_a => (setGlobalObjectMutableProperties = $h_a)]],["setGlobalObjectEvaluators", [$h_a => (setGlobalObjectEvaluators = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]],["./whitelist.js", [["initialGlobalPropertyNames", [$h_a => (initialGlobalPropertyNames = $h_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString", [$h_a => (tameFunctionToString = $h_a)]]]],["./tame-domains.js", [["tameDomains", [$h_a => (tameDomains = $h_a)]]]],["./error/tame-console.js", [["tameConsole", [$h_a => (tameConsole = $h_a)]]]],["./error/tame-error-constructor.js", [["default", [$h_a => (tameErrorConstructor = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]],["makeAssert", [$h_a => (makeAssert = $h_a)]]]],["./environment-options.js", [["makeEnvironmentCaptor", [$h_a => (makeEnvironmentCaptor = $h_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics", [$h_a => (getAnonymousIntrinsics = $h_a)]]]],["./compartment-shim.js", [["makeCompartmentConstructor", [$h_a => (makeCompartmentConstructor = $h_a)]]]],["./tame-harden.js", [["tameHarden", [$h_a => (tameHarden = $h_a)]]]]]);
|
|
9156
|
+
|
|
8853
9157
|
|
|
8854
9158
|
|
|
8855
9159
|
|
|
@@ -8918,7 +9222,7 @@ let priorLockdown;
|
|
|
8918
9222
|
* @param {T} ref
|
|
8919
9223
|
* @returns {T}
|
|
8920
9224
|
*/
|
|
8921
|
-
const
|
|
9225
|
+
const safeHarden= makeHardener();
|
|
8922
9226
|
|
|
8923
9227
|
/**
|
|
8924
9228
|
* @callback Transform
|
|
@@ -9025,6 +9329,7 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9025
9329
|
/** @param {string} debugName */
|
|
9026
9330
|
(debugName)=>debugName!== ''),
|
|
9027
9331
|
|
|
9332
|
+
__hardenTaming__= getenv('LOCKDOWN_HARDEN_TAMING', 'safe'),
|
|
9028
9333
|
dateTaming= 'safe', // deprecated
|
|
9029
9334
|
mathTaming= 'safe', // deprecated
|
|
9030
9335
|
...extraOptions}=
|
|
@@ -9115,7 +9420,8 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9115
9420
|
const { addIntrinsics, completePrototypes, finalIntrinsics}=
|
|
9116
9421
|
makeIntrinsicsCollector();
|
|
9117
9422
|
|
|
9118
|
-
|
|
9423
|
+
const tamedHarden= tameHarden(safeHarden, __hardenTaming__);
|
|
9424
|
+
addIntrinsics({ harden: tamedHarden});
|
|
9119
9425
|
|
|
9120
9426
|
addIntrinsics(tameFunctionConstructors());
|
|
9121
9427
|
|
|
@@ -9228,7 +9534,7 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9228
9534
|
|
|
9229
9535
|
// Finally register and optionally freeze all the intrinsics. This
|
|
9230
9536
|
// must be the operation that modifies the intrinsics.
|
|
9231
|
-
|
|
9537
|
+
tamedHarden(intrinsics);
|
|
9232
9538
|
|
|
9233
9539
|
// Reveal harden after lockdown.
|
|
9234
9540
|
// Harden is dangerous before lockdown because hardening just
|
|
@@ -9238,7 +9544,7 @@ const repairIntrinsics= (options= {})=> {
|
|
|
9238
9544
|
// scope signals whether such code should attempt to use harden in the
|
|
9239
9545
|
// defense of its own API.
|
|
9240
9546
|
// @ts-ignore harden not yet recognized on globalThis.
|
|
9241
|
-
globalThis.harden=
|
|
9547
|
+
globalThis.harden= tamedHarden;
|
|
9242
9548
|
|
|
9243
9549
|
// Returning `true` indicates that this is a JS to SES transition.
|
|
9244
9550
|
return true;
|
|
@@ -9256,7 +9562,7 @@ const lockdown= (options= {})=> {
|
|
|
9256
9562
|
};$h_once.lockdown(lockdown);
|
|
9257
9563
|
})
|
|
9258
9564
|
,
|
|
9259
|
-
// === functors[
|
|
9565
|
+
// === functors[45] ===
|
|
9260
9566
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let globalThis,TypeError,assign,tameFunctionToString,getGlobalIntrinsics,lockdown,makeCompartmentConstructor,assert;$h_imports([["./src/commons.js", [["globalThis", [$h_a => (globalThis = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["assign", [$h_a => (assign = $h_a)]]]],["./src/tame-function-tostring.js", [["tameFunctionToString", [$h_a => (tameFunctionToString = $h_a)]]]],["./src/intrinsics.js", [["getGlobalIntrinsics", [$h_a => (getGlobalIntrinsics = $h_a)]]]],["./src/lockdown-shim.js", [["lockdown", [$h_a => (lockdown = $h_a)]]]],["./src/compartment-shim.js", [["makeCompartmentConstructor", [$h_a => (makeCompartmentConstructor = $h_a)]]]],["./src/error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
9261
9567
|
|
|
9262
9568
|
|
|
@@ -9360,6 +9666,8 @@ assign(globalThis, {
|
|
|
9360
9666
|
getOwnPropertyNames: cell("getOwnPropertyNames"),
|
|
9361
9667
|
getPrototypeOf: cell("getPrototypeOf"),
|
|
9362
9668
|
is: cell("is"),
|
|
9669
|
+
isFrozen: cell("isFrozen"),
|
|
9670
|
+
isSealed: cell("isSealed"),
|
|
9363
9671
|
isExtensible: cell("isExtensible"),
|
|
9364
9672
|
keys: cell("keys"),
|
|
9365
9673
|
objectPrototype: cell("objectPrototype"),
|
|
@@ -9459,6 +9767,10 @@ assign(globalThis, {
|
|
|
9459
9767
|
},
|
|
9460
9768
|
{
|
|
9461
9769
|
},
|
|
9770
|
+
{
|
|
9771
|
+
makeLRUCacheMap: cell("makeLRUCacheMap"),
|
|
9772
|
+
makeNoteLogArgsArrayKit: cell("makeNoteLogArgsArrayKit"),
|
|
9773
|
+
},
|
|
9462
9774
|
{
|
|
9463
9775
|
an: cell("an"),
|
|
9464
9776
|
bestEffortStringify: cell("bestEffortStringify"),
|
|
@@ -9608,6 +9920,9 @@ assign(globalThis, {
|
|
|
9608
9920
|
{
|
|
9609
9921
|
tameFunctionToString: cell("tameFunctionToString"),
|
|
9610
9922
|
},
|
|
9923
|
+
{
|
|
9924
|
+
tameHarden: cell("tameHarden"),
|
|
9925
|
+
},
|
|
9611
9926
|
{
|
|
9612
9927
|
default: cell("default"),
|
|
9613
9928
|
},
|
|
@@ -9688,6 +10003,8 @@ function observeImports(map, importName, importIndex) {
|
|
|
9688
10003
|
getOwnPropertyNames: cells[0].getOwnPropertyNames.set,
|
|
9689
10004
|
getPrototypeOf: cells[0].getPrototypeOf.set,
|
|
9690
10005
|
is: cells[0].is.set,
|
|
10006
|
+
isFrozen: cells[0].isFrozen.set,
|
|
10007
|
+
isSealed: cells[0].isSealed.set,
|
|
9691
10008
|
isExtensible: cells[0].isExtensible.set,
|
|
9692
10009
|
keys: cells[0].keys.set,
|
|
9693
10010
|
objectPrototype: cells[0].objectPrototype.set,
|
|
@@ -9800,55 +10117,56 @@ function observeImports(map, importName, importIndex) {
|
|
|
9800
10117
|
functors[2]({
|
|
9801
10118
|
imports(entries) {
|
|
9802
10119
|
const map = new Map(entries);
|
|
9803
|
-
observeImports(map, "
|
|
10120
|
+
observeImports(map, "./internal-types.js", 1);
|
|
9804
10121
|
},
|
|
9805
10122
|
liveVar: {
|
|
9806
10123
|
},
|
|
9807
10124
|
onceVar: {
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
enJoin: cells[2].enJoin.set,
|
|
10125
|
+
makeLRUCacheMap: cells[2].makeLRUCacheMap.set,
|
|
10126
|
+
makeNoteLogArgsArrayKit: cells[2].makeNoteLogArgsArrayKit.set,
|
|
9811
10127
|
},
|
|
9812
10128
|
importMeta: {},
|
|
9813
10129
|
});
|
|
9814
10130
|
functors[3]({
|
|
9815
10131
|
imports(entries) {
|
|
9816
10132
|
const map = new Map(entries);
|
|
10133
|
+
observeImports(map, "../commons.js", 0);
|
|
9817
10134
|
},
|
|
9818
10135
|
liveVar: {
|
|
9819
10136
|
},
|
|
9820
10137
|
onceVar: {
|
|
10138
|
+
an: cells[3].an.set,
|
|
10139
|
+
bestEffortStringify: cells[3].bestEffortStringify.set,
|
|
10140
|
+
enJoin: cells[3].enJoin.set,
|
|
9821
10141
|
},
|
|
9822
10142
|
importMeta: {},
|
|
9823
10143
|
});
|
|
9824
10144
|
functors[4]({
|
|
9825
10145
|
imports(entries) {
|
|
9826
10146
|
const map = new Map(entries);
|
|
9827
|
-
observeImports(map, "../commons.js", 0);
|
|
9828
|
-
observeImports(map, "./internal-types.js", 1);
|
|
9829
|
-
observeImports(map, "./stringify-utils.js", 2);
|
|
9830
|
-
observeImports(map, "./types.js", 3);
|
|
9831
10147
|
},
|
|
9832
10148
|
liveVar: {
|
|
9833
10149
|
},
|
|
9834
10150
|
onceVar: {
|
|
9835
|
-
unredactedDetails: cells[4].unredactedDetails.set,
|
|
9836
|
-
loggedErrorHandler: cells[4].loggedErrorHandler.set,
|
|
9837
|
-
makeAssert: cells[4].makeAssert.set,
|
|
9838
|
-
assert: cells[4].assert.set,
|
|
9839
10151
|
},
|
|
9840
10152
|
importMeta: {},
|
|
9841
10153
|
});
|
|
9842
10154
|
functors[5]({
|
|
9843
10155
|
imports(entries) {
|
|
9844
10156
|
const map = new Map(entries);
|
|
9845
|
-
observeImports(map, "
|
|
9846
|
-
observeImports(map, "./
|
|
10157
|
+
observeImports(map, "../commons.js", 0);
|
|
10158
|
+
observeImports(map, "./internal-types.js", 1);
|
|
10159
|
+
observeImports(map, "./note-log-args.js", 2);
|
|
10160
|
+
observeImports(map, "./stringify-utils.js", 3);
|
|
10161
|
+
observeImports(map, "./types.js", 4);
|
|
9847
10162
|
},
|
|
9848
10163
|
liveVar: {
|
|
9849
10164
|
},
|
|
9850
10165
|
onceVar: {
|
|
9851
|
-
|
|
10166
|
+
unredactedDetails: cells[5].unredactedDetails.set,
|
|
10167
|
+
loggedErrorHandler: cells[5].loggedErrorHandler.set,
|
|
10168
|
+
makeAssert: cells[5].makeAssert.set,
|
|
10169
|
+
assert: cells[5].assert.set,
|
|
9852
10170
|
},
|
|
9853
10171
|
importMeta: {},
|
|
9854
10172
|
});
|
|
@@ -9856,12 +10174,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
9856
10174
|
imports(entries) {
|
|
9857
10175
|
const map = new Map(entries);
|
|
9858
10176
|
observeImports(map, "./commons.js", 0);
|
|
10177
|
+
observeImports(map, "./error/assert.js", 5);
|
|
9859
10178
|
},
|
|
9860
10179
|
liveVar: {
|
|
9861
10180
|
},
|
|
9862
10181
|
onceVar: {
|
|
9863
|
-
|
|
9864
|
-
getScopeConstants: cells[6].getScopeConstants.set,
|
|
10182
|
+
makeEvalScopeKit: cells[6].makeEvalScopeKit.set,
|
|
9865
10183
|
},
|
|
9866
10184
|
importMeta: {},
|
|
9867
10185
|
});
|
|
@@ -9869,12 +10187,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
9869
10187
|
imports(entries) {
|
|
9870
10188
|
const map = new Map(entries);
|
|
9871
10189
|
observeImports(map, "./commons.js", 0);
|
|
9872
|
-
observeImports(map, "./scope-constants.js", 6);
|
|
9873
10190
|
},
|
|
9874
10191
|
liveVar: {
|
|
9875
10192
|
},
|
|
9876
10193
|
onceVar: {
|
|
9877
|
-
|
|
10194
|
+
isValidIdentifierName: cells[7].isValidIdentifierName.set,
|
|
10195
|
+
getScopeConstants: cells[7].getScopeConstants.set,
|
|
9878
10196
|
},
|
|
9879
10197
|
importMeta: {},
|
|
9880
10198
|
});
|
|
@@ -9882,14 +10200,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
9882
10200
|
imports(entries) {
|
|
9883
10201
|
const map = new Map(entries);
|
|
9884
10202
|
observeImports(map, "./commons.js", 0);
|
|
9885
|
-
observeImports(map, "./
|
|
10203
|
+
observeImports(map, "./scope-constants.js", 7);
|
|
9886
10204
|
},
|
|
9887
10205
|
liveVar: {
|
|
9888
10206
|
},
|
|
9889
10207
|
onceVar: {
|
|
9890
|
-
|
|
9891
|
-
strictScopeTerminatorHandler: cells[8].strictScopeTerminatorHandler.set,
|
|
9892
|
-
strictScopeTerminator: cells[8].strictScopeTerminator.set,
|
|
10208
|
+
makeEvaluate: cells[8].makeEvaluate.set,
|
|
9893
10209
|
},
|
|
9894
10210
|
importMeta: {},
|
|
9895
10211
|
});
|
|
@@ -9897,12 +10213,14 @@ function observeImports(map, importName, importIndex) {
|
|
|
9897
10213
|
imports(entries) {
|
|
9898
10214
|
const map = new Map(entries);
|
|
9899
10215
|
observeImports(map, "./commons.js", 0);
|
|
9900
|
-
observeImports(map, "./
|
|
10216
|
+
observeImports(map, "./error/assert.js", 5);
|
|
9901
10217
|
},
|
|
9902
10218
|
liveVar: {
|
|
9903
10219
|
},
|
|
9904
10220
|
onceVar: {
|
|
9905
|
-
|
|
10221
|
+
alwaysThrowHandler: cells[9].alwaysThrowHandler.set,
|
|
10222
|
+
strictScopeTerminatorHandler: cells[9].strictScopeTerminatorHandler.set,
|
|
10223
|
+
strictScopeTerminator: cells[9].strictScopeTerminator.set,
|
|
9906
10224
|
},
|
|
9907
10225
|
importMeta: {},
|
|
9908
10226
|
});
|
|
@@ -9910,11 +10228,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
9910
10228
|
imports(entries) {
|
|
9911
10229
|
const map = new Map(entries);
|
|
9912
10230
|
observeImports(map, "./commons.js", 0);
|
|
10231
|
+
observeImports(map, "./strict-scope-terminator.js", 9);
|
|
9913
10232
|
},
|
|
9914
10233
|
liveVar: {
|
|
9915
10234
|
},
|
|
9916
10235
|
onceVar: {
|
|
9917
|
-
|
|
10236
|
+
createSloppyGlobalsScopeTerminator: cells[10].createSloppyGlobalsScopeTerminator.set,
|
|
9918
10237
|
},
|
|
9919
10238
|
importMeta: {},
|
|
9920
10239
|
});
|
|
@@ -9922,19 +10241,11 @@ function observeImports(map, importName, importIndex) {
|
|
|
9922
10241
|
imports(entries) {
|
|
9923
10242
|
const map = new Map(entries);
|
|
9924
10243
|
observeImports(map, "./commons.js", 0);
|
|
9925
|
-
observeImports(map, "./get-source-url.js", 10);
|
|
9926
10244
|
},
|
|
9927
10245
|
liveVar: {
|
|
9928
10246
|
},
|
|
9929
10247
|
onceVar: {
|
|
9930
|
-
|
|
9931
|
-
evadeHtmlCommentTest: cells[11].evadeHtmlCommentTest.set,
|
|
9932
|
-
rejectImportExpressions: cells[11].rejectImportExpressions.set,
|
|
9933
|
-
evadeImportExpressionTest: cells[11].evadeImportExpressionTest.set,
|
|
9934
|
-
rejectSomeDirectEvalExpressions: cells[11].rejectSomeDirectEvalExpressions.set,
|
|
9935
|
-
mandatoryTransforms: cells[11].mandatoryTransforms.set,
|
|
9936
|
-
applyTransforms: cells[11].applyTransforms.set,
|
|
9937
|
-
transforms: cells[11].transforms.set,
|
|
10248
|
+
getSourceURL: cells[11].getSourceURL.set,
|
|
9938
10249
|
},
|
|
9939
10250
|
importMeta: {},
|
|
9940
10251
|
});
|
|
@@ -9942,17 +10253,19 @@ function observeImports(map, importName, importIndex) {
|
|
|
9942
10253
|
imports(entries) {
|
|
9943
10254
|
const map = new Map(entries);
|
|
9944
10255
|
observeImports(map, "./commons.js", 0);
|
|
9945
|
-
observeImports(map, "./
|
|
9946
|
-
observeImports(map, "./eval-scope.js", 5);
|
|
9947
|
-
observeImports(map, "./make-evaluate.js", 7);
|
|
9948
|
-
observeImports(map, "./sloppy-globals-scope-terminator.js", 9);
|
|
9949
|
-
observeImports(map, "./strict-scope-terminator.js", 8);
|
|
9950
|
-
observeImports(map, "./transforms.js", 11);
|
|
10256
|
+
observeImports(map, "./get-source-url.js", 11);
|
|
9951
10257
|
},
|
|
9952
10258
|
liveVar: {
|
|
9953
10259
|
},
|
|
9954
10260
|
onceVar: {
|
|
9955
|
-
|
|
10261
|
+
rejectHtmlComments: cells[12].rejectHtmlComments.set,
|
|
10262
|
+
evadeHtmlCommentTest: cells[12].evadeHtmlCommentTest.set,
|
|
10263
|
+
rejectImportExpressions: cells[12].rejectImportExpressions.set,
|
|
10264
|
+
evadeImportExpressionTest: cells[12].evadeImportExpressionTest.set,
|
|
10265
|
+
rejectSomeDirectEvalExpressions: cells[12].rejectSomeDirectEvalExpressions.set,
|
|
10266
|
+
mandatoryTransforms: cells[12].mandatoryTransforms.set,
|
|
10267
|
+
applyTransforms: cells[12].applyTransforms.set,
|
|
10268
|
+
transforms: cells[12].transforms.set,
|
|
9956
10269
|
},
|
|
9957
10270
|
importMeta: {},
|
|
9958
10271
|
});
|
|
@@ -9960,75 +10273,75 @@ function observeImports(map, importName, importIndex) {
|
|
|
9960
10273
|
imports(entries) {
|
|
9961
10274
|
const map = new Map(entries);
|
|
9962
10275
|
observeImports(map, "./commons.js", 0);
|
|
9963
|
-
observeImports(map, "./
|
|
9964
|
-
observeImports(map, "./
|
|
10276
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10277
|
+
observeImports(map, "./eval-scope.js", 6);
|
|
10278
|
+
observeImports(map, "./make-evaluate.js", 8);
|
|
10279
|
+
observeImports(map, "./sloppy-globals-scope-terminator.js", 10);
|
|
10280
|
+
observeImports(map, "./strict-scope-terminator.js", 9);
|
|
10281
|
+
observeImports(map, "./transforms.js", 12);
|
|
9965
10282
|
},
|
|
9966
10283
|
liveVar: {
|
|
9967
10284
|
},
|
|
9968
10285
|
onceVar: {
|
|
9969
|
-
|
|
9970
|
-
compartmentEvaluate: cells[13].compartmentEvaluate.set,
|
|
10286
|
+
makeSafeEvaluator: cells[13].makeSafeEvaluator.set,
|
|
9971
10287
|
},
|
|
9972
10288
|
importMeta: {},
|
|
9973
10289
|
});
|
|
9974
10290
|
functors[14]({
|
|
9975
10291
|
imports(entries) {
|
|
9976
10292
|
const map = new Map(entries);
|
|
10293
|
+
observeImports(map, "./commons.js", 0);
|
|
10294
|
+
observeImports(map, "./make-safe-evaluator.js", 13);
|
|
10295
|
+
observeImports(map, "./transforms.js", 12);
|
|
9977
10296
|
},
|
|
9978
10297
|
liveVar: {
|
|
9979
10298
|
},
|
|
9980
10299
|
onceVar: {
|
|
9981
|
-
|
|
10300
|
+
provideCompartmentEvaluator: cells[14].provideCompartmentEvaluator.set,
|
|
10301
|
+
compartmentEvaluate: cells[14].compartmentEvaluate.set,
|
|
9982
10302
|
},
|
|
9983
10303
|
importMeta: {},
|
|
9984
10304
|
});
|
|
9985
10305
|
functors[15]({
|
|
9986
10306
|
imports(entries) {
|
|
9987
10307
|
const map = new Map(entries);
|
|
9988
|
-
observeImports(map, "./commons.js", 0);
|
|
9989
|
-
observeImports(map, "./error/assert.js", 4);
|
|
9990
10308
|
},
|
|
9991
10309
|
liveVar: {
|
|
9992
10310
|
},
|
|
9993
10311
|
onceVar: {
|
|
9994
|
-
|
|
10312
|
+
makeEvalFunction: cells[15].makeEvalFunction.set,
|
|
9995
10313
|
},
|
|
9996
10314
|
importMeta: {},
|
|
9997
10315
|
});
|
|
9998
10316
|
functors[16]({
|
|
9999
10317
|
imports(entries) {
|
|
10000
10318
|
const map = new Map(entries);
|
|
10319
|
+
observeImports(map, "./commons.js", 0);
|
|
10320
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10001
10321
|
},
|
|
10002
10322
|
liveVar: {
|
|
10003
10323
|
},
|
|
10004
10324
|
onceVar: {
|
|
10005
|
-
|
|
10006
|
-
universalPropertyNames: cells[16].universalPropertyNames.set,
|
|
10007
|
-
initialGlobalPropertyNames: cells[16].initialGlobalPropertyNames.set,
|
|
10008
|
-
sharedGlobalPropertyNames: cells[16].sharedGlobalPropertyNames.set,
|
|
10009
|
-
uniqueGlobalPropertyNames: cells[16].uniqueGlobalPropertyNames.set,
|
|
10010
|
-
NativeErrors: cells[16].NativeErrors.set,
|
|
10011
|
-
FunctionInstance: cells[16].FunctionInstance.set,
|
|
10012
|
-
isAccessorPermit: cells[16].isAccessorPermit.set,
|
|
10013
|
-
whitelist: cells[16].whitelist.set,
|
|
10325
|
+
makeFunctionConstructor: cells[16].makeFunctionConstructor.set,
|
|
10014
10326
|
},
|
|
10015
10327
|
importMeta: {},
|
|
10016
10328
|
});
|
|
10017
10329
|
functors[17]({
|
|
10018
10330
|
imports(entries) {
|
|
10019
10331
|
const map = new Map(entries);
|
|
10020
|
-
observeImports(map, "./commons.js", 0);
|
|
10021
|
-
observeImports(map, "./make-eval-function.js", 14);
|
|
10022
|
-
observeImports(map, "./make-function-constructor.js", 15);
|
|
10023
|
-
observeImports(map, "./whitelist.js", 16);
|
|
10024
10332
|
},
|
|
10025
10333
|
liveVar: {
|
|
10026
10334
|
},
|
|
10027
10335
|
onceVar: {
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10336
|
+
constantProperties: cells[17].constantProperties.set,
|
|
10337
|
+
universalPropertyNames: cells[17].universalPropertyNames.set,
|
|
10338
|
+
initialGlobalPropertyNames: cells[17].initialGlobalPropertyNames.set,
|
|
10339
|
+
sharedGlobalPropertyNames: cells[17].sharedGlobalPropertyNames.set,
|
|
10340
|
+
uniqueGlobalPropertyNames: cells[17].uniqueGlobalPropertyNames.set,
|
|
10341
|
+
NativeErrors: cells[17].NativeErrors.set,
|
|
10342
|
+
FunctionInstance: cells[17].FunctionInstance.set,
|
|
10343
|
+
isAccessorPermit: cells[17].isAccessorPermit.set,
|
|
10344
|
+
whitelist: cells[17].whitelist.set,
|
|
10032
10345
|
},
|
|
10033
10346
|
importMeta: {},
|
|
10034
10347
|
});
|
|
@@ -10036,13 +10349,17 @@ function observeImports(map, importName, importIndex) {
|
|
|
10036
10349
|
imports(entries) {
|
|
10037
10350
|
const map = new Map(entries);
|
|
10038
10351
|
observeImports(map, "./commons.js", 0);
|
|
10039
|
-
observeImports(map, "./
|
|
10352
|
+
observeImports(map, "./make-eval-function.js", 15);
|
|
10353
|
+
observeImports(map, "./make-function-constructor.js", 16);
|
|
10354
|
+
observeImports(map, "./whitelist.js", 17);
|
|
10040
10355
|
},
|
|
10041
10356
|
liveVar: {
|
|
10042
10357
|
},
|
|
10043
10358
|
onceVar: {
|
|
10044
|
-
|
|
10045
|
-
|
|
10359
|
+
setGlobalObjectSymbolUnscopables: cells[18].setGlobalObjectSymbolUnscopables.set,
|
|
10360
|
+
setGlobalObjectConstantProperties: cells[18].setGlobalObjectConstantProperties.set,
|
|
10361
|
+
setGlobalObjectMutableProperties: cells[18].setGlobalObjectMutableProperties.set,
|
|
10362
|
+
setGlobalObjectEvaluators: cells[18].setGlobalObjectEvaluators.set,
|
|
10046
10363
|
},
|
|
10047
10364
|
importMeta: {},
|
|
10048
10365
|
});
|
|
@@ -10050,14 +10367,13 @@ function observeImports(map, importName, importIndex) {
|
|
|
10050
10367
|
imports(entries) {
|
|
10051
10368
|
const map = new Map(entries);
|
|
10052
10369
|
observeImports(map, "./commons.js", 0);
|
|
10053
|
-
observeImports(map, "./error/assert.js",
|
|
10054
|
-
observeImports(map, "./module-load.js", 18);
|
|
10370
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10055
10371
|
},
|
|
10056
10372
|
liveVar: {
|
|
10057
10373
|
},
|
|
10058
10374
|
onceVar: {
|
|
10059
|
-
|
|
10060
|
-
|
|
10375
|
+
makeAlias: cells[19].makeAlias.set,
|
|
10376
|
+
load: cells[19].load.set,
|
|
10061
10377
|
},
|
|
10062
10378
|
importMeta: {},
|
|
10063
10379
|
});
|
|
@@ -10065,15 +10381,14 @@ function observeImports(map, importName, importIndex) {
|
|
|
10065
10381
|
imports(entries) {
|
|
10066
10382
|
const map = new Map(entries);
|
|
10067
10383
|
observeImports(map, "./commons.js", 0);
|
|
10068
|
-
observeImports(map, "./
|
|
10069
|
-
observeImports(map, "./
|
|
10070
|
-
observeImports(map, "./module-proxy.js", 19);
|
|
10384
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10385
|
+
observeImports(map, "./module-load.js", 19);
|
|
10071
10386
|
},
|
|
10072
10387
|
liveVar: {
|
|
10073
10388
|
},
|
|
10074
10389
|
onceVar: {
|
|
10075
|
-
|
|
10076
|
-
|
|
10390
|
+
deferExports: cells[20].deferExports.set,
|
|
10391
|
+
getDeferredExports: cells[20].getDeferredExports.set,
|
|
10077
10392
|
},
|
|
10078
10393
|
importMeta: {},
|
|
10079
10394
|
});
|
|
@@ -10081,14 +10396,15 @@ function observeImports(map, importName, importIndex) {
|
|
|
10081
10396
|
imports(entries) {
|
|
10082
10397
|
const map = new Map(entries);
|
|
10083
10398
|
observeImports(map, "./commons.js", 0);
|
|
10084
|
-
observeImports(map, "./
|
|
10085
|
-
observeImports(map, "./
|
|
10399
|
+
observeImports(map, "./compartment-evaluate.js", 14);
|
|
10400
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10401
|
+
observeImports(map, "./module-proxy.js", 20);
|
|
10086
10402
|
},
|
|
10087
10403
|
liveVar: {
|
|
10088
10404
|
},
|
|
10089
10405
|
onceVar: {
|
|
10090
|
-
|
|
10091
|
-
|
|
10406
|
+
makeThirdPartyModuleInstance: cells[21].makeThirdPartyModuleInstance.set,
|
|
10407
|
+
makeModuleInstance: cells[21].makeModuleInstance.set,
|
|
10092
10408
|
},
|
|
10093
10409
|
importMeta: {},
|
|
10094
10410
|
});
|
|
@@ -10096,21 +10412,14 @@ function observeImports(map, importName, importIndex) {
|
|
|
10096
10412
|
imports(entries) {
|
|
10097
10413
|
const map = new Map(entries);
|
|
10098
10414
|
observeImports(map, "./commons.js", 0);
|
|
10099
|
-
observeImports(map, "./
|
|
10100
|
-
observeImports(map, "./
|
|
10101
|
-
observeImports(map, "./global-object.js", 17);
|
|
10102
|
-
observeImports(map, "./make-safe-evaluator.js", 12);
|
|
10103
|
-
observeImports(map, "./module-link.js", 21);
|
|
10104
|
-
observeImports(map, "./module-load.js", 18);
|
|
10105
|
-
observeImports(map, "./module-proxy.js", 19);
|
|
10106
|
-
observeImports(map, "./whitelist.js", 16);
|
|
10415
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10416
|
+
observeImports(map, "./module-instance.js", 21);
|
|
10107
10417
|
},
|
|
10108
10418
|
liveVar: {
|
|
10109
10419
|
},
|
|
10110
10420
|
onceVar: {
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
makeCompartmentConstructor: cells[22].makeCompartmentConstructor.set,
|
|
10421
|
+
link: cells[22].link.set,
|
|
10422
|
+
instantiate: cells[22].instantiate.set,
|
|
10114
10423
|
},
|
|
10115
10424
|
importMeta: {},
|
|
10116
10425
|
});
|
|
@@ -10118,39 +10427,48 @@ function observeImports(map, importName, importIndex) {
|
|
|
10118
10427
|
imports(entries) {
|
|
10119
10428
|
const map = new Map(entries);
|
|
10120
10429
|
observeImports(map, "./commons.js", 0);
|
|
10121
|
-
observeImports(map, "./
|
|
10430
|
+
observeImports(map, "./compartment-evaluate.js", 14);
|
|
10431
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10432
|
+
observeImports(map, "./global-object.js", 18);
|
|
10433
|
+
observeImports(map, "./make-safe-evaluator.js", 13);
|
|
10434
|
+
observeImports(map, "./module-link.js", 22);
|
|
10435
|
+
observeImports(map, "./module-load.js", 19);
|
|
10436
|
+
observeImports(map, "./module-proxy.js", 20);
|
|
10437
|
+
observeImports(map, "./whitelist.js", 17);
|
|
10122
10438
|
},
|
|
10123
10439
|
liveVar: {
|
|
10124
10440
|
},
|
|
10125
10441
|
onceVar: {
|
|
10126
|
-
|
|
10127
|
-
|
|
10442
|
+
InertCompartment: cells[23].InertCompartment.set,
|
|
10443
|
+
CompartmentPrototype: cells[23].CompartmentPrototype.set,
|
|
10444
|
+
makeCompartmentConstructor: cells[23].makeCompartmentConstructor.set,
|
|
10128
10445
|
},
|
|
10129
10446
|
importMeta: {},
|
|
10130
10447
|
});
|
|
10131
10448
|
functors[24]({
|
|
10132
10449
|
imports(entries) {
|
|
10133
10450
|
const map = new Map(entries);
|
|
10451
|
+
observeImports(map, "./commons.js", 0);
|
|
10452
|
+
observeImports(map, "./whitelist.js", 17);
|
|
10134
10453
|
},
|
|
10135
10454
|
liveVar: {
|
|
10136
10455
|
},
|
|
10137
10456
|
onceVar: {
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
severeEnablements: cells[24].severeEnablements.set,
|
|
10457
|
+
makeIntrinsicsCollector: cells[24].makeIntrinsicsCollector.set,
|
|
10458
|
+
getGlobalIntrinsics: cells[24].getGlobalIntrinsics.set,
|
|
10141
10459
|
},
|
|
10142
10460
|
importMeta: {},
|
|
10143
10461
|
});
|
|
10144
10462
|
functors[25]({
|
|
10145
10463
|
imports(entries) {
|
|
10146
10464
|
const map = new Map(entries);
|
|
10147
|
-
observeImports(map, "./commons.js", 0);
|
|
10148
|
-
observeImports(map, "./enablements.js", 24);
|
|
10149
10465
|
},
|
|
10150
10466
|
liveVar: {
|
|
10151
10467
|
},
|
|
10152
10468
|
onceVar: {
|
|
10153
|
-
|
|
10469
|
+
minEnablements: cells[25].minEnablements.set,
|
|
10470
|
+
moderateEnablements: cells[25].moderateEnablements.set,
|
|
10471
|
+
severeEnablements: cells[25].severeEnablements.set,
|
|
10154
10472
|
},
|
|
10155
10473
|
importMeta: {},
|
|
10156
10474
|
});
|
|
@@ -10158,29 +10476,25 @@ function observeImports(map, importName, importIndex) {
|
|
|
10158
10476
|
imports(entries) {
|
|
10159
10477
|
const map = new Map(entries);
|
|
10160
10478
|
observeImports(map, "./commons.js", 0);
|
|
10161
|
-
observeImports(map, "./
|
|
10479
|
+
observeImports(map, "./enablements.js", 25);
|
|
10162
10480
|
},
|
|
10163
10481
|
liveVar: {
|
|
10164
10482
|
},
|
|
10165
10483
|
onceVar: {
|
|
10166
|
-
|
|
10484
|
+
default: cells[26].default.set,
|
|
10167
10485
|
},
|
|
10168
10486
|
importMeta: {},
|
|
10169
10487
|
});
|
|
10170
10488
|
functors[27]({
|
|
10171
10489
|
imports(entries) {
|
|
10172
10490
|
const map = new Map(entries);
|
|
10173
|
-
observeImports(map, "
|
|
10174
|
-
observeImports(map, "./
|
|
10175
|
-
observeImports(map, "./types.js", 3);
|
|
10491
|
+
observeImports(map, "./commons.js", 0);
|
|
10492
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10176
10493
|
},
|
|
10177
10494
|
liveVar: {
|
|
10178
10495
|
},
|
|
10179
10496
|
onceVar: {
|
|
10180
|
-
|
|
10181
|
-
makeCausalConsole: cells[27].makeCausalConsole.set,
|
|
10182
|
-
filterConsole: cells[27].filterConsole.set,
|
|
10183
|
-
consoleWhitelist: cells[27].consoleWhitelist.set,
|
|
10497
|
+
makeEnvironmentCaptor: cells[27].makeEnvironmentCaptor.set,
|
|
10184
10498
|
},
|
|
10185
10499
|
importMeta: {},
|
|
10186
10500
|
});
|
|
@@ -10188,11 +10502,16 @@ function observeImports(map, importName, importIndex) {
|
|
|
10188
10502
|
imports(entries) {
|
|
10189
10503
|
const map = new Map(entries);
|
|
10190
10504
|
observeImports(map, "../commons.js", 0);
|
|
10505
|
+
observeImports(map, "./internal-types.js", 1);
|
|
10506
|
+
observeImports(map, "./types.js", 4);
|
|
10191
10507
|
},
|
|
10192
10508
|
liveVar: {
|
|
10193
10509
|
},
|
|
10194
10510
|
onceVar: {
|
|
10195
|
-
|
|
10511
|
+
makeLoggingConsoleKit: cells[28].makeLoggingConsoleKit.set,
|
|
10512
|
+
makeCausalConsole: cells[28].makeCausalConsole.set,
|
|
10513
|
+
filterConsole: cells[28].filterConsole.set,
|
|
10514
|
+
consoleWhitelist: cells[28].consoleWhitelist.set,
|
|
10196
10515
|
},
|
|
10197
10516
|
importMeta: {},
|
|
10198
10517
|
});
|
|
@@ -10200,16 +10519,11 @@ function observeImports(map, importName, importIndex) {
|
|
|
10200
10519
|
imports(entries) {
|
|
10201
10520
|
const map = new Map(entries);
|
|
10202
10521
|
observeImports(map, "../commons.js", 0);
|
|
10203
|
-
observeImports(map, "./assert.js", 4);
|
|
10204
|
-
observeImports(map, "./console.js", 27);
|
|
10205
|
-
observeImports(map, "./internal-types.js", 1);
|
|
10206
|
-
observeImports(map, "./types.js", 3);
|
|
10207
|
-
observeImports(map, "./unhandled-rejection.js", 28);
|
|
10208
10522
|
},
|
|
10209
10523
|
liveVar: {
|
|
10210
10524
|
},
|
|
10211
10525
|
onceVar: {
|
|
10212
|
-
|
|
10526
|
+
makeRejectionHandlers: cells[29].makeRejectionHandlers.set,
|
|
10213
10527
|
},
|
|
10214
10528
|
importMeta: {},
|
|
10215
10529
|
});
|
|
@@ -10217,13 +10531,16 @@ function observeImports(map, importName, importIndex) {
|
|
|
10217
10531
|
imports(entries) {
|
|
10218
10532
|
const map = new Map(entries);
|
|
10219
10533
|
observeImports(map, "../commons.js", 0);
|
|
10534
|
+
observeImports(map, "./assert.js", 5);
|
|
10535
|
+
observeImports(map, "./console.js", 28);
|
|
10536
|
+
observeImports(map, "./internal-types.js", 1);
|
|
10537
|
+
observeImports(map, "./types.js", 4);
|
|
10538
|
+
observeImports(map, "./unhandled-rejection.js", 29);
|
|
10220
10539
|
},
|
|
10221
10540
|
liveVar: {
|
|
10222
10541
|
},
|
|
10223
10542
|
onceVar: {
|
|
10224
|
-
|
|
10225
|
-
shortenCallSiteString: cells[30].shortenCallSiteString.set,
|
|
10226
|
-
tameV8ErrorConstructor: cells[30].tameV8ErrorConstructor.set,
|
|
10543
|
+
tameConsole: cells[30].tameConsole.set,
|
|
10227
10544
|
},
|
|
10228
10545
|
importMeta: {},
|
|
10229
10546
|
});
|
|
@@ -10231,26 +10548,27 @@ function observeImports(map, importName, importIndex) {
|
|
|
10231
10548
|
imports(entries) {
|
|
10232
10549
|
const map = new Map(entries);
|
|
10233
10550
|
observeImports(map, "../commons.js", 0);
|
|
10234
|
-
observeImports(map, "../whitelist.js", 16);
|
|
10235
|
-
observeImports(map, "./tame-v8-error-constructor.js", 30);
|
|
10236
10551
|
},
|
|
10237
10552
|
liveVar: {
|
|
10238
10553
|
},
|
|
10239
10554
|
onceVar: {
|
|
10240
|
-
|
|
10555
|
+
filterFileName: cells[31].filterFileName.set,
|
|
10556
|
+
shortenCallSiteString: cells[31].shortenCallSiteString.set,
|
|
10557
|
+
tameV8ErrorConstructor: cells[31].tameV8ErrorConstructor.set,
|
|
10241
10558
|
},
|
|
10242
10559
|
importMeta: {},
|
|
10243
10560
|
});
|
|
10244
10561
|
functors[32]({
|
|
10245
10562
|
imports(entries) {
|
|
10246
10563
|
const map = new Map(entries);
|
|
10247
|
-
observeImports(map, "
|
|
10248
|
-
observeImports(map, "
|
|
10564
|
+
observeImports(map, "../commons.js", 0);
|
|
10565
|
+
observeImports(map, "../whitelist.js", 17);
|
|
10566
|
+
observeImports(map, "./tame-v8-error-constructor.js", 31);
|
|
10249
10567
|
},
|
|
10250
10568
|
liveVar: {
|
|
10251
10569
|
},
|
|
10252
10570
|
onceVar: {
|
|
10253
|
-
|
|
10571
|
+
default: cells[32].default.set,
|
|
10254
10572
|
},
|
|
10255
10573
|
importMeta: {},
|
|
10256
10574
|
});
|
|
@@ -10258,13 +10576,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
10258
10576
|
imports(entries) {
|
|
10259
10577
|
const map = new Map(entries);
|
|
10260
10578
|
observeImports(map, "./commons.js", 0);
|
|
10261
|
-
observeImports(map, "./
|
|
10579
|
+
observeImports(map, "./compartment-shim.js", 23);
|
|
10262
10580
|
},
|
|
10263
10581
|
liveVar: {
|
|
10264
10582
|
},
|
|
10265
10583
|
onceVar: {
|
|
10266
|
-
|
|
10267
|
-
makeHardener: cells[33].makeHardener.set,
|
|
10584
|
+
getAnonymousIntrinsics: cells[33].getAnonymousIntrinsics.set,
|
|
10268
10585
|
},
|
|
10269
10586
|
importMeta: {},
|
|
10270
10587
|
});
|
|
@@ -10272,11 +10589,13 @@ function observeImports(map, importName, importIndex) {
|
|
|
10272
10589
|
imports(entries) {
|
|
10273
10590
|
const map = new Map(entries);
|
|
10274
10591
|
observeImports(map, "./commons.js", 0);
|
|
10592
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10275
10593
|
},
|
|
10276
10594
|
liveVar: {
|
|
10277
10595
|
},
|
|
10278
10596
|
onceVar: {
|
|
10279
|
-
|
|
10597
|
+
isTypedArray: cells[34].isTypedArray.set,
|
|
10598
|
+
makeHardener: cells[34].makeHardener.set,
|
|
10280
10599
|
},
|
|
10281
10600
|
importMeta: {},
|
|
10282
10601
|
});
|
|
@@ -10288,7 +10607,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
10288
10607
|
liveVar: {
|
|
10289
10608
|
},
|
|
10290
10609
|
onceVar: {
|
|
10291
|
-
|
|
10610
|
+
default: cells[35].default.set,
|
|
10292
10611
|
},
|
|
10293
10612
|
importMeta: {},
|
|
10294
10613
|
});
|
|
@@ -10300,7 +10619,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
10300
10619
|
liveVar: {
|
|
10301
10620
|
},
|
|
10302
10621
|
onceVar: {
|
|
10303
|
-
|
|
10622
|
+
tameDomains: cells[36].tameDomains.set,
|
|
10304
10623
|
},
|
|
10305
10624
|
importMeta: {},
|
|
10306
10625
|
});
|
|
@@ -10312,7 +10631,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
10312
10631
|
liveVar: {
|
|
10313
10632
|
},
|
|
10314
10633
|
onceVar: {
|
|
10315
|
-
|
|
10634
|
+
default: cells[37].default.set,
|
|
10316
10635
|
},
|
|
10317
10636
|
importMeta: {},
|
|
10318
10637
|
});
|
|
@@ -10320,12 +10639,11 @@ function observeImports(map, importName, importIndex) {
|
|
|
10320
10639
|
imports(entries) {
|
|
10321
10640
|
const map = new Map(entries);
|
|
10322
10641
|
observeImports(map, "./commons.js", 0);
|
|
10323
|
-
observeImports(map, "./error/assert.js", 4);
|
|
10324
10642
|
},
|
|
10325
10643
|
liveVar: {
|
|
10326
10644
|
},
|
|
10327
10645
|
onceVar: {
|
|
10328
|
-
|
|
10646
|
+
tameFunctionToString: cells[38].tameFunctionToString.set,
|
|
10329
10647
|
},
|
|
10330
10648
|
importMeta: {},
|
|
10331
10649
|
});
|
|
@@ -10337,7 +10655,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
10337
10655
|
liveVar: {
|
|
10338
10656
|
},
|
|
10339
10657
|
onceVar: {
|
|
10340
|
-
|
|
10658
|
+
tameHarden: cells[39].tameHarden.set,
|
|
10341
10659
|
},
|
|
10342
10660
|
importMeta: {},
|
|
10343
10661
|
});
|
|
@@ -10345,6 +10663,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
10345
10663
|
imports(entries) {
|
|
10346
10664
|
const map = new Map(entries);
|
|
10347
10665
|
observeImports(map, "./commons.js", 0);
|
|
10666
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10348
10667
|
},
|
|
10349
10668
|
liveVar: {
|
|
10350
10669
|
},
|
|
@@ -10357,7 +10676,6 @@ function observeImports(map, importName, importIndex) {
|
|
|
10357
10676
|
imports(entries) {
|
|
10358
10677
|
const map = new Map(entries);
|
|
10359
10678
|
observeImports(map, "./commons.js", 0);
|
|
10360
|
-
observeImports(map, "./whitelist.js", 16);
|
|
10361
10679
|
},
|
|
10362
10680
|
liveVar: {
|
|
10363
10681
|
},
|
|
@@ -10370,45 +10688,71 @@ function observeImports(map, importName, importIndex) {
|
|
|
10370
10688
|
imports(entries) {
|
|
10371
10689
|
const map = new Map(entries);
|
|
10372
10690
|
observeImports(map, "./commons.js", 0);
|
|
10373
|
-
observeImports(map, "./compartment-shim.js", 22);
|
|
10374
|
-
observeImports(map, "./enable-property-overrides.js", 25);
|
|
10375
|
-
observeImports(map, "./environment-options.js", 26);
|
|
10376
|
-
observeImports(map, "./error/assert.js", 4);
|
|
10377
|
-
observeImports(map, "./error/stringify-utils.js", 2);
|
|
10378
|
-
observeImports(map, "./error/tame-console.js", 29);
|
|
10379
|
-
observeImports(map, "./error/tame-error-constructor.js", 31);
|
|
10380
|
-
observeImports(map, "./get-anonymous-intrinsics.js", 32);
|
|
10381
|
-
observeImports(map, "./global-object.js", 17);
|
|
10382
|
-
observeImports(map, "./intrinsics.js", 23);
|
|
10383
|
-
observeImports(map, "./make-hardener.js", 33);
|
|
10384
|
-
observeImports(map, "./make-safe-evaluator.js", 12);
|
|
10385
|
-
observeImports(map, "./tame-date-constructor.js", 34);
|
|
10386
|
-
observeImports(map, "./tame-domains.js", 35);
|
|
10387
|
-
observeImports(map, "./tame-function-constructors.js", 36);
|
|
10388
|
-
observeImports(map, "./tame-function-tostring.js", 37);
|
|
10389
|
-
observeImports(map, "./tame-locale-methods.js", 38);
|
|
10390
|
-
observeImports(map, "./tame-math-object.js", 39);
|
|
10391
|
-
observeImports(map, "./tame-regexp-constructor.js", 40);
|
|
10392
|
-
observeImports(map, "./whitelist-intrinsics.js", 41);
|
|
10393
|
-
observeImports(map, "./whitelist.js", 16);
|
|
10394
10691
|
},
|
|
10395
10692
|
liveVar: {
|
|
10396
10693
|
},
|
|
10397
10694
|
onceVar: {
|
|
10398
|
-
|
|
10399
|
-
lockdown: cells[42].lockdown.set,
|
|
10695
|
+
default: cells[42].default.set,
|
|
10400
10696
|
},
|
|
10401
10697
|
importMeta: {},
|
|
10402
10698
|
});
|
|
10403
10699
|
functors[43]({
|
|
10700
|
+
imports(entries) {
|
|
10701
|
+
const map = new Map(entries);
|
|
10702
|
+
observeImports(map, "./commons.js", 0);
|
|
10703
|
+
observeImports(map, "./whitelist.js", 17);
|
|
10704
|
+
},
|
|
10705
|
+
liveVar: {
|
|
10706
|
+
},
|
|
10707
|
+
onceVar: {
|
|
10708
|
+
default: cells[43].default.set,
|
|
10709
|
+
},
|
|
10710
|
+
importMeta: {},
|
|
10711
|
+
});
|
|
10712
|
+
functors[44]({
|
|
10713
|
+
imports(entries) {
|
|
10714
|
+
const map = new Map(entries);
|
|
10715
|
+
observeImports(map, "./commons.js", 0);
|
|
10716
|
+
observeImports(map, "./compartment-shim.js", 23);
|
|
10717
|
+
observeImports(map, "./enable-property-overrides.js", 26);
|
|
10718
|
+
observeImports(map, "./environment-options.js", 27);
|
|
10719
|
+
observeImports(map, "./error/assert.js", 5);
|
|
10720
|
+
observeImports(map, "./error/stringify-utils.js", 3);
|
|
10721
|
+
observeImports(map, "./error/tame-console.js", 30);
|
|
10722
|
+
observeImports(map, "./error/tame-error-constructor.js", 32);
|
|
10723
|
+
observeImports(map, "./get-anonymous-intrinsics.js", 33);
|
|
10724
|
+
observeImports(map, "./global-object.js", 18);
|
|
10725
|
+
observeImports(map, "./intrinsics.js", 24);
|
|
10726
|
+
observeImports(map, "./make-hardener.js", 34);
|
|
10727
|
+
observeImports(map, "./make-safe-evaluator.js", 13);
|
|
10728
|
+
observeImports(map, "./tame-date-constructor.js", 35);
|
|
10729
|
+
observeImports(map, "./tame-domains.js", 36);
|
|
10730
|
+
observeImports(map, "./tame-function-constructors.js", 37);
|
|
10731
|
+
observeImports(map, "./tame-function-tostring.js", 38);
|
|
10732
|
+
observeImports(map, "./tame-harden.js", 39);
|
|
10733
|
+
observeImports(map, "./tame-locale-methods.js", 40);
|
|
10734
|
+
observeImports(map, "./tame-math-object.js", 41);
|
|
10735
|
+
observeImports(map, "./tame-regexp-constructor.js", 42);
|
|
10736
|
+
observeImports(map, "./whitelist-intrinsics.js", 43);
|
|
10737
|
+
observeImports(map, "./whitelist.js", 17);
|
|
10738
|
+
},
|
|
10739
|
+
liveVar: {
|
|
10740
|
+
},
|
|
10741
|
+
onceVar: {
|
|
10742
|
+
repairIntrinsics: cells[44].repairIntrinsics.set,
|
|
10743
|
+
lockdown: cells[44].lockdown.set,
|
|
10744
|
+
},
|
|
10745
|
+
importMeta: {},
|
|
10746
|
+
});
|
|
10747
|
+
functors[45]({
|
|
10404
10748
|
imports(entries) {
|
|
10405
10749
|
const map = new Map(entries);
|
|
10406
10750
|
observeImports(map, "./src/commons.js", 0);
|
|
10407
|
-
observeImports(map, "./src/compartment-shim.js",
|
|
10408
|
-
observeImports(map, "./src/error/assert.js",
|
|
10409
|
-
observeImports(map, "./src/intrinsics.js",
|
|
10410
|
-
observeImports(map, "./src/lockdown-shim.js",
|
|
10411
|
-
observeImports(map, "./src/tame-function-tostring.js",
|
|
10751
|
+
observeImports(map, "./src/compartment-shim.js", 23);
|
|
10752
|
+
observeImports(map, "./src/error/assert.js", 5);
|
|
10753
|
+
observeImports(map, "./src/intrinsics.js", 24);
|
|
10754
|
+
observeImports(map, "./src/lockdown-shim.js", 44);
|
|
10755
|
+
observeImports(map, "./src/tame-function-tostring.js", 38);
|
|
10412
10756
|
},
|
|
10413
10757
|
liveVar: {
|
|
10414
10758
|
},
|