ses 0.16.0 → 0.16.1
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 +8 -0
- package/dist/lockdown.cjs +585 -453
- package/dist/lockdown.mjs +585 -453
- package/dist/lockdown.umd.js +585 -453
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +585 -453
- package/dist/ses.mjs +585 -453
- package/dist/ses.umd.js +585 -453
- package/dist/ses.umd.min.js +1 -1
- package/package.json +2 -3
- package/src/transforms.js +1 -1
- package/CHANGELOG.md +0 -550
package/dist/lockdown.cjs
CHANGED
|
@@ -78,9 +78,10 @@ const {
|
|
|
78
78
|
toStringTag: toStringTagSymbol,
|
|
79
79
|
iterator: iteratorSymbol,
|
|
80
80
|
matchAll: matchAllSymbol,
|
|
81
|
+
unscopables: unscopablesSymbol,
|
|
81
82
|
keyFor: symbolKeyFor,
|
|
82
83
|
for: symbolFor}=
|
|
83
|
-
Symbol;$h_once.speciesSymbol(speciesSymbol);$h_once.toStringTagSymbol(toStringTagSymbol);$h_once.iteratorSymbol(iteratorSymbol);$h_once.matchAllSymbol(matchAllSymbol);$h_once.symbolKeyFor(symbolKeyFor);$h_once.symbolFor(symbolFor);
|
|
84
|
+
Symbol;$h_once.speciesSymbol(speciesSymbol);$h_once.toStringTagSymbol(toStringTagSymbol);$h_once.iteratorSymbol(iteratorSymbol);$h_once.matchAllSymbol(matchAllSymbol);$h_once.unscopablesSymbol(unscopablesSymbol);$h_once.symbolKeyFor(symbolKeyFor);$h_once.symbolFor(symbolFor);
|
|
84
85
|
|
|
85
86
|
const { isInteger}= Number;$h_once.isInteger(isInteger);
|
|
86
87
|
|
|
@@ -1353,77 +1354,96 @@ const assert= makeAssert();$h_once.assert(assert);
|
|
|
1353
1354
|
})
|
|
1354
1355
|
,
|
|
1355
1356
|
// === functors[5] ===
|
|
1356
|
-
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let
|
|
1357
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_EVAL,create,defineProperties,freeze,assert;$h_imports([["./commons.js", [["FERAL_EVAL", [$h_a => (FERAL_EVAL = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
1357
1358
|
|
|
1358
|
-
/**
|
|
1359
|
-
* buildOptimizer()
|
|
1360
|
-
* Given an array of indentifier, the optimizer return a `const` declaration
|
|
1361
|
-
* destructring `this`.
|
|
1362
|
-
*
|
|
1363
|
-
* @param {Array<string>} constants
|
|
1364
|
-
*/
|
|
1365
|
-
function buildOptimizer(constants) {
|
|
1366
|
-
// No need to build an optimizer when there are no constants.
|
|
1367
|
-
if( constants.length=== 0) return '';
|
|
1368
|
-
// Use 'this' to avoid going through the scope proxy, which is unecessary
|
|
1369
|
-
// since the optimizer only needs references to the safe global.
|
|
1370
|
-
return `const {${arrayJoin(constants,',') }} = this;`;
|
|
1371
|
-
}
|
|
1372
1359
|
|
|
1373
|
-
/**
|
|
1374
|
-
* makeEvaluateFactory()
|
|
1375
|
-
* The factory create 'evaluate' functions with the correct optimizer
|
|
1376
|
-
* inserted.
|
|
1377
|
-
*
|
|
1378
|
-
* @param {Array<string>} [constants]
|
|
1379
|
-
*/
|
|
1380
|
-
const makeEvaluateFactory= (constants= [])=> {
|
|
1381
|
-
const optimizer= buildOptimizer(constants);
|
|
1382
1360
|
|
|
1383
|
-
|
|
1384
|
-
// a function in strict mode that evaluates the provided code using direct
|
|
1385
|
-
// eval, and thus in strict mode in the same scope. We must be very careful
|
|
1386
|
-
// to not create new names in this scope
|
|
1361
|
+
const { details: d}= assert;
|
|
1387
1362
|
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1363
|
+
// We attempt to frustrate stack bumping attacks on the safe evaluator
|
|
1364
|
+
// (`make-safe-evaluator.js`).
|
|
1365
|
+
// A stack bumping attack forces an API call to throw a stack overflow
|
|
1366
|
+
// `RangeError` at an inopportune time.
|
|
1367
|
+
// The attacker arranges for the stack to be sufficiently deep that the API
|
|
1368
|
+
// consumes exactly enough stack frames to throw an exception.
|
|
1369
|
+
//
|
|
1370
|
+
// For the safe evaluator, an exception thrown between adding and then deleting
|
|
1371
|
+
// `eval` on `evalScope` could leak the real `eval` to an attacker's lexical
|
|
1372
|
+
// scope.
|
|
1373
|
+
// This would be sufficiently disastrous that we guard against it twice.
|
|
1374
|
+
// First, we delete `eval` from `evalScope` immediately before rendering it to
|
|
1375
|
+
// the guest program's lexical scope.
|
|
1376
|
+
//
|
|
1377
|
+
// If the attacker manages to arrange for `eval` to throw an exception after we
|
|
1378
|
+
// call `allowNextEvalToBeUnsafe` but before the guest program accesses `eval`,
|
|
1379
|
+
// it would be able to access `eval` once more in its own code.
|
|
1380
|
+
// Although they could do no harm with a direct `eval`, they would be able to
|
|
1381
|
+
// escape to the true global scope with an indirect `eval`.
|
|
1382
|
+
//
|
|
1383
|
+
// prepareStack(depth, () => {
|
|
1384
|
+
// (eval)('');
|
|
1385
|
+
// });
|
|
1386
|
+
// const unsafeEval = (eval);
|
|
1387
|
+
// const safeEval = (eval);
|
|
1388
|
+
// const realGlobal = unsafeEval('globalThis');
|
|
1389
|
+
//
|
|
1390
|
+
// To protect against that case, we also delete `eval` from the `evalScope` in
|
|
1391
|
+
// a `finally` block surrounding the call to the safe evaluator.
|
|
1392
|
+
// The only way to reach this case is if `eval` remains on `evalScope` due to
|
|
1393
|
+
// an attack, so we assume that attack would have have invalided our isolation
|
|
1394
|
+
// and revoke all future access to the evaluator.
|
|
1395
|
+
//
|
|
1396
|
+
// To defeat a stack bumping attack, we must use fewer stack frames to recover
|
|
1397
|
+
// in that `finally` block than we used in the `try` block.
|
|
1398
|
+
// We have no reliable guarantees about how many stack frames a block of
|
|
1399
|
+
// JavaScript will consume.
|
|
1400
|
+
// Function inlining, tail-call optimization, variations in the size of a stack
|
|
1401
|
+
// frame, and block scopes may affect the depth of the stack.
|
|
1402
|
+
// The only number of acceptable stack frames to use in the finally block is
|
|
1403
|
+
// zero.
|
|
1404
|
+
// We only use property assignment and deletion in the safe evaluator's
|
|
1405
|
+
// `finally` block.
|
|
1406
|
+
// We use `delete evalScope.eval` to withhold the evaluator.
|
|
1407
|
+
// We assign an envelope object over `evalScopeKit.revoked` to revoke the
|
|
1408
|
+
// evaluator.
|
|
1409
|
+
//
|
|
1410
|
+
// This is why we supply a meaningfully named function for
|
|
1411
|
+
// `allowNextEvalToBeUnsafe` but do not provide a corresponding
|
|
1412
|
+
// `revokeAccessToUnsafeEval` or even simply `revoke`.
|
|
1413
|
+
// These recovery routines are expressed inline in the safe evaluator.
|
|
1414
|
+
|
|
1415
|
+
const makeEvalScopeKit= ()=> {
|
|
1416
|
+
const evalScope= create(null);
|
|
1417
|
+
const oneTimeEvalProperties= freeze({
|
|
1418
|
+
eval: {
|
|
1419
|
+
get() {
|
|
1420
|
+
delete evalScope.eval;
|
|
1421
|
+
return FERAL_EVAL;
|
|
1422
|
+
},
|
|
1423
|
+
enumerable: false,
|
|
1424
|
+
configurable: true}});
|
|
1397
1425
|
|
|
1398
|
-
// Notes:
|
|
1399
|
-
// - everything in the 'optimizer' string is looked up in the proxy
|
|
1400
|
-
// (including an 'arguments[0]', which points at the Proxy).
|
|
1401
|
-
// - keywords like 'function' which are reserved keywords, and cannot be
|
|
1402
|
-
// used as a variable, so they are not part of the optimizer.
|
|
1403
|
-
// - when 'eval' is looked up in the proxy, and it's the first time it is
|
|
1404
|
-
// looked up after allowNextEvalToBeUnsafe is turned on, the proxy returns
|
|
1405
|
-
// the powerful, unsafe eval intrinsic, and flips allowNextEvalToBeUnsafe
|
|
1406
|
-
// back to false. Any reference to 'eval' in that string will get the tamed
|
|
1407
|
-
// evaluator.
|
|
1408
1426
|
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
+
|
|
1428
|
+
const evalScopeKit= {
|
|
1429
|
+
evalScope,
|
|
1430
|
+
allowNextEvalToBeUnsafe() {
|
|
1431
|
+
if( evalScopeKit.revoked!== null) {
|
|
1432
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
1433
|
+
assert.fail(
|
|
1434
|
+
d `a handler did not reset allowNextEvalToBeUnsafe ${this.revoked.err}`);
|
|
1435
|
+
|
|
1436
|
+
}
|
|
1437
|
+
// Allow next reference to eval produce the unsafe FERAL_EVAL.
|
|
1438
|
+
// We avoid defineProperty because it consumes an extra stack frame taming
|
|
1439
|
+
// its return value.
|
|
1440
|
+
defineProperties(evalScope, oneTimeEvalProperties);
|
|
1441
|
+
},
|
|
1442
|
+
revoked: null};
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
return evalScopeKit;
|
|
1446
|
+
};$h_once.makeEvalScopeKit(makeEvalScopeKit);
|
|
1427
1447
|
})
|
|
1428
1448
|
,
|
|
1429
1449
|
// === functors[6] ===
|
|
@@ -1506,7 +1526,7 @@ const keywords= [
|
|
|
1506
1526
|
|
|
1507
1527
|
/**
|
|
1508
1528
|
* identifierPattern
|
|
1509
|
-
* Simplified validation of
|
|
1529
|
+
* Simplified validation of identifier names: may only contain alphanumeric
|
|
1510
1530
|
* characters (or "$" or "_"), and may not start with a digit. This is safe
|
|
1511
1531
|
* and does not reduces the compatibility of the shim. The motivation for
|
|
1512
1532
|
* this limitation was to decrease the complexity of the implementation,
|
|
@@ -1573,44 +1593,156 @@ function isImmutableDataProperty(obj, name) {
|
|
|
1573
1593
|
* safe and only prevent performance optimization.
|
|
1574
1594
|
*
|
|
1575
1595
|
* @param {Object} globalObject
|
|
1576
|
-
* @param {Object}
|
|
1596
|
+
* @param {Object} globalLexicals
|
|
1577
1597
|
*/
|
|
1578
|
-
const getScopeConstants= (globalObject,
|
|
1598
|
+
const getScopeConstants= (globalObject, globalLexicals= {})=> {
|
|
1579
1599
|
// getOwnPropertyNames() does ignore Symbols so we don't need to
|
|
1580
1600
|
// filter them out.
|
|
1581
|
-
const
|
|
1582
|
-
const
|
|
1601
|
+
const globalObjectNames= getOwnPropertyNames(globalObject);
|
|
1602
|
+
const globalLexicalNames= getOwnPropertyNames(globalLexicals);
|
|
1583
1603
|
|
|
1584
1604
|
// Collect all valid & immutable identifiers from the endowments.
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1605
|
+
const globalLexicalConstants= arrayFilter(
|
|
1606
|
+
globalLexicalNames,
|
|
1587
1607
|
(name)=>
|
|
1588
|
-
isValidIdentifierName(name)&&
|
|
1608
|
+
isValidIdentifierName(name)&&
|
|
1609
|
+
isImmutableDataProperty(globalLexicals, name));
|
|
1589
1610
|
|
|
1590
1611
|
|
|
1591
1612
|
// Collect all valid & immutable identifiers from the global that
|
|
1592
|
-
// are also not present in the
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1613
|
+
// are also not present in the endowments (immutable or not).
|
|
1614
|
+
const globalObjectConstants= arrayFilter(
|
|
1615
|
+
globalObjectNames,
|
|
1595
1616
|
(name)=>
|
|
1596
1617
|
// Can't define a constant: it would prevent a
|
|
1597
1618
|
// lookup on the endowments.
|
|
1598
|
-
!arrayIncludes(
|
|
1619
|
+
!arrayIncludes(globalLexicalNames, name)&&
|
|
1599
1620
|
isValidIdentifierName(name)&&
|
|
1600
1621
|
isImmutableDataProperty(globalObject, name));
|
|
1601
1622
|
|
|
1602
1623
|
|
|
1603
|
-
return
|
|
1624
|
+
return {
|
|
1625
|
+
globalObjectConstants,
|
|
1626
|
+
globalLexicalConstants};
|
|
1627
|
+
|
|
1604
1628
|
};$h_once.getScopeConstants(getScopeConstants);
|
|
1605
1629
|
})
|
|
1606
1630
|
,
|
|
1607
1631
|
// === functors[7] ===
|
|
1608
|
-
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let
|
|
1632
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,arrayJoin,apply,getScopeConstants;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["apply", [$h_a => (apply = $h_a)]]]],["./scope-constants.js", [["getScopeConstants", [$h_a => (getScopeConstants = $h_a)]]]]]);
|
|
1609
1633
|
|
|
1610
1634
|
|
|
1611
1635
|
|
|
1612
1636
|
|
|
1637
|
+
/**
|
|
1638
|
+
* buildOptimizer()
|
|
1639
|
+
* Given an array of identifiers, the optimizer returns a `const` declaration
|
|
1640
|
+
* destructuring `this.${name}`.
|
|
1641
|
+
*
|
|
1642
|
+
* @param {Array<string>} constants
|
|
1643
|
+
* @param {string} name
|
|
1644
|
+
*/
|
|
1645
|
+
function buildOptimizer(constants, name) {
|
|
1646
|
+
// No need to build an optimizer when there are no constants.
|
|
1647
|
+
if( constants.length=== 0) return '';
|
|
1648
|
+
// Use 'this' to avoid going through the scope proxy, which is unnecessary
|
|
1649
|
+
// since the optimizer only needs references to the safe global.
|
|
1650
|
+
// Destructure the constants from the target scope object.
|
|
1651
|
+
return `const {${arrayJoin(constants,',') }} = this.${name};`;
|
|
1652
|
+
}
|
|
1613
1653
|
|
|
1654
|
+
/**
|
|
1655
|
+
* makeEvaluate()
|
|
1656
|
+
* Create an 'evaluate' function with the correct optimizer inserted.
|
|
1657
|
+
*
|
|
1658
|
+
* @param {object} context
|
|
1659
|
+
* @param {object} context.evalScope
|
|
1660
|
+
* @param {object} context.globalLexicals
|
|
1661
|
+
* @param {object} context.globalObject
|
|
1662
|
+
* @param {object} context.scopeTerminator
|
|
1663
|
+
*/
|
|
1664
|
+
const makeEvaluate= (context)=>{
|
|
1665
|
+
const { globalObjectConstants, globalLexicalConstants}= getScopeConstants(
|
|
1666
|
+
context.globalObject,
|
|
1667
|
+
context.globalLexicals);
|
|
1668
|
+
|
|
1669
|
+
const globalObjectOptimizer= buildOptimizer(
|
|
1670
|
+
globalObjectConstants,
|
|
1671
|
+
'globalObject');
|
|
1672
|
+
|
|
1673
|
+
const globalLexicalOptimizer= buildOptimizer(
|
|
1674
|
+
globalLexicalConstants,
|
|
1675
|
+
'globalLexicals');
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
// Create a function in sloppy mode, so that we can use 'with'. It returns
|
|
1679
|
+
// a function in strict mode that evaluates the provided code using direct
|
|
1680
|
+
// eval, and thus in strict mode in the same scope. We must be very careful
|
|
1681
|
+
// to not create new names in this scope
|
|
1682
|
+
|
|
1683
|
+
// 1: we use multiple nested 'with' to catch all free variable names. The
|
|
1684
|
+
// `this` value of the outer sloppy function holds the different scope
|
|
1685
|
+
// layers, from inner to outer:
|
|
1686
|
+
// a) `evalScope` which must release the `FERAL_EVAL` as 'eval' once for
|
|
1687
|
+
// every invocation of the inner `evaluate` function in order to
|
|
1688
|
+
// trigger direct eval. The direct eval semantics is what allows the
|
|
1689
|
+
// evaluated code to lookup free variable names on the other scope
|
|
1690
|
+
// objects and not in global scope.
|
|
1691
|
+
// b) `globalLexicals` which provide a way to introduce free variables
|
|
1692
|
+
// that are not available on the globalObject.
|
|
1693
|
+
// c) `globalObject` is the global scope object of the evaluator, aka the
|
|
1694
|
+
// Compartment's `globalThis`.
|
|
1695
|
+
// d) `scopeTerminator` is a proxy object which prevents free variable
|
|
1696
|
+
// lookups to escape to the start compartment's global object.
|
|
1697
|
+
// 2: `optimizer`s catch constant variable names for speed.
|
|
1698
|
+
// 3: The inner strict `evaluate` function should be passed two parameters:
|
|
1699
|
+
// a) its arguments[0] is the source to be directly evaluated.
|
|
1700
|
+
// b) its 'this' is the this binding seen by the code being
|
|
1701
|
+
// directly evaluated (the globalObject).
|
|
1702
|
+
|
|
1703
|
+
// Notes:
|
|
1704
|
+
// - The `optimizer` strings only lookup values on the `globalObject` and
|
|
1705
|
+
// `globalLexicals` objects by construct. Keywords like 'function' are
|
|
1706
|
+
// reserved and cannot be used as a variable, so they are excluded from the
|
|
1707
|
+
// optimizer. Furthermore to prevent shadowing 'eval', while a valid
|
|
1708
|
+
// identifier, that name is also explicitly excluded.
|
|
1709
|
+
// - when 'eval' is looked up in the `evalScope`, the powerful unsafe eval
|
|
1710
|
+
// intrinsic is returned after automatically removing it from the
|
|
1711
|
+
// `evalScope`. Any further reference to 'eval' in the evaluate string will
|
|
1712
|
+
// get the tamed evaluator from the `globalObject`, if any.
|
|
1713
|
+
|
|
1714
|
+
// TODO https://github.com/endojs/endo/issues/816
|
|
1715
|
+
// The optimizer currently runs under sloppy mode, and although we doubt that
|
|
1716
|
+
// there is any vulnerability introduced just by running the optimizer
|
|
1717
|
+
// sloppy, we are much more confident in the semantics of strict mode.
|
|
1718
|
+
// The `evaluate` function can be and is reused across multiple evaluations.
|
|
1719
|
+
// Since the optimizer should not be re-evaluated every time, it cannot be
|
|
1720
|
+
// inside the `evaluate` closure. While we could potentially nest an
|
|
1721
|
+
// intermediate layer of `() => {'use strict'; ${optimizers}; ...`, it
|
|
1722
|
+
// doesn't seem worth the overhead and complexity.
|
|
1723
|
+
const evaluateFactory= FERAL_FUNCTION( `
|
|
1724
|
+
with (this.scopeTerminator) {
|
|
1725
|
+
with (this.globalObject) {
|
|
1726
|
+
with (this.globalLexicals) {
|
|
1727
|
+
with (this.evalScope) {
|
|
1728
|
+
${globalObjectOptimizer }
|
|
1729
|
+
${globalLexicalOptimizer }
|
|
1730
|
+
return function() {
|
|
1731
|
+
'use strict';
|
|
1732
|
+
return eval(arguments[0]);
|
|
1733
|
+
};
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
`);
|
|
1739
|
+
|
|
1740
|
+
return apply(evaluateFactory, context, []);
|
|
1741
|
+
};$h_once.makeEvaluate(makeEvaluate);
|
|
1742
|
+
})
|
|
1743
|
+
,
|
|
1744
|
+
// === functors[8] ===
|
|
1745
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,globalThis,immutableObject,assert;$h_imports([["./commons.js", [["Proxy", [$h_a => (Proxy = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["immutableObject", [$h_a => (immutableObject = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
1614
1746
|
|
|
1615
1747
|
|
|
1616
1748
|
|
|
@@ -1630,9 +1762,9 @@ const { details: d, quote: q}= assert;
|
|
|
1630
1762
|
* This is an object that throws if any property is called. It's used as
|
|
1631
1763
|
* a proxy handler which throws on any trap called.
|
|
1632
1764
|
* It's made from a proxy with a get trap that throws. It's safe to
|
|
1633
|
-
* create one and share it between all
|
|
1765
|
+
* create one and share it between all Proxy handlers.
|
|
1634
1766
|
*/
|
|
1635
|
-
const
|
|
1767
|
+
const alwaysThrowHandler= new Proxy(
|
|
1636
1768
|
immutableObject,
|
|
1637
1769
|
freeze({
|
|
1638
1770
|
get(_shadow, prop) {
|
|
@@ -1645,180 +1777,120 @@ const alwaysThrowHandler= new Proxy(
|
|
|
1645
1777
|
|
|
1646
1778
|
|
|
1647
1779
|
/*
|
|
1648
|
-
*
|
|
1649
|
-
*
|
|
1650
|
-
*
|
|
1651
|
-
*
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
* which lives as the 'eval' property of the safeGlobal.
|
|
1658
|
-
* - route all other property lookups at the safeGlobal.
|
|
1659
|
-
* - hide the unsafeGlobal which lives on the scope chain above the 'with'.
|
|
1660
|
-
* - ensure the Proxy invariants despite some global properties being frozen.
|
|
1661
|
-
*/
|
|
1662
|
-
const createScopeHandler= (
|
|
1663
|
-
globalObject,
|
|
1664
|
-
globalLexicals= {},
|
|
1665
|
-
{ sloppyGlobalsMode= false}= {})=>
|
|
1666
|
-
{
|
|
1667
|
-
// This flag allow us to determine if the eval() call is an done by the
|
|
1668
|
-
// compartment's code or if it is user-land invocation, so we can react
|
|
1669
|
-
// differently.
|
|
1670
|
-
// Using a flag on an object with a single mutable property allows a safe
|
|
1671
|
-
// evaluator to signal to the scope proxy without consuming a stack frame.
|
|
1672
|
-
// Consuming a stack frame could possibly allow an attacker to control the
|
|
1673
|
-
// stack depth before calling `evaluate` to cause a RangeError before this
|
|
1674
|
-
// flag can be reset, leaving the unsafe evaluator available.
|
|
1675
|
-
const scopeController= {
|
|
1676
|
-
allowNextEvalToBeUnsafe: false};
|
|
1677
|
-
|
|
1678
|
-
seal(scopeController);
|
|
1780
|
+
* scopeProxyHandlerProperties
|
|
1781
|
+
* scopeTerminatorHandler manages a strictScopeTerminator Proxy which serves as
|
|
1782
|
+
* the final scope boundary that will always return "undefined" in order
|
|
1783
|
+
* to prevent access to "start compartment globals".
|
|
1784
|
+
*/$h_once.alwaysThrowHandler(alwaysThrowHandler);
|
|
1785
|
+
const scopeProxyHandlerProperties= {
|
|
1786
|
+
get(_shadow, _prop) {
|
|
1787
|
+
return undefined;
|
|
1788
|
+
},
|
|
1679
1789
|
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1790
|
+
set(_shadow, prop, _value) {
|
|
1791
|
+
// We should only hit this if the has() hook returned true matches the v8
|
|
1792
|
+
// ReferenceError message "Uncaught ReferenceError: xyz is not defined"
|
|
1793
|
+
throw new ReferenceError( `${String(prop)} is not defined`);
|
|
1794
|
+
},
|
|
1685
1795
|
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
// test that it is true rather than merely truthy
|
|
1691
|
-
if( scopeController.allowNextEvalToBeUnsafe=== true) {
|
|
1692
|
-
// revoke before use
|
|
1693
|
-
scopeController.allowNextEvalToBeUnsafe= false;
|
|
1694
|
-
return FERAL_EVAL;
|
|
1695
|
-
}
|
|
1696
|
-
// fall through
|
|
1697
|
-
}
|
|
1796
|
+
has(_shadow, prop) {
|
|
1797
|
+
// we must at least return true for all properties on the realm globalThis
|
|
1798
|
+
return prop in globalThis;
|
|
1799
|
+
},
|
|
1698
1800
|
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
// only use the globalLexicals carry globalLexicals and live binding
|
|
1705
|
-
// traps.
|
|
1706
|
-
// The globalLexicals are captured as a snapshot of what's passed to
|
|
1707
|
-
// the Compartment constructor, wherein all accessors and setters are
|
|
1708
|
-
// eliminated and the result frozen.
|
|
1709
|
-
// The live binding traps do use accessors, and none of those accessors
|
|
1710
|
-
// make use of their receiver.
|
|
1711
|
-
// Live binding traps provide no avenue for user code to observe the
|
|
1712
|
-
// receiver.
|
|
1713
|
-
return reflectGet(globalLexicals, prop, globalObject);
|
|
1714
|
-
}
|
|
1801
|
+
// note: this is likely a bug of safari
|
|
1802
|
+
// https://bugs.webkit.org/show_bug.cgi?id=195534
|
|
1803
|
+
getPrototypeOf() {
|
|
1804
|
+
return null;
|
|
1805
|
+
},
|
|
1715
1806
|
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1807
|
+
// Chip has seen this happen single stepping under the Chrome/v8 debugger.
|
|
1808
|
+
// TODO record how to reliably reproduce, and to test if this fix helps.
|
|
1809
|
+
// TODO report as bug to v8 or Chrome, and record issue link here.
|
|
1810
|
+
getOwnPropertyDescriptor(_target, prop) {
|
|
1811
|
+
// Coerce with `String` in case prop is a symbol.
|
|
1812
|
+
const quotedProp= q(String(prop));
|
|
1813
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
1814
|
+
console.warn(
|
|
1815
|
+
`getOwnPropertyDescriptor trap on scopeTerminatorHandler for ${quotedProp}`,
|
|
1816
|
+
new TypeError().stack);
|
|
1719
1817
|
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
if( prop in globalLexicals) {
|
|
1723
|
-
const desc= getOwnPropertyDescriptor(globalLexicals, prop);
|
|
1724
|
-
if( objectHasOwnProperty(desc, 'value')) {
|
|
1725
|
-
// Work around a peculiar behavior in the specs, where
|
|
1726
|
-
// value properties are defined on the receiver.
|
|
1727
|
-
return reflectSet(globalLexicals, prop, value);
|
|
1728
|
-
}
|
|
1729
|
-
// Ensure that the 'this' value on setters resolves
|
|
1730
|
-
// to the safeGlobal, not to the globalLexicals object.
|
|
1731
|
-
return reflectSet(globalLexicals, prop, value, globalObject);
|
|
1732
|
-
}
|
|
1818
|
+
return undefined;
|
|
1819
|
+
}};
|
|
1733
1820
|
|
|
1734
|
-
// Properties of the global.
|
|
1735
|
-
return reflectSet(globalObject, prop, value);
|
|
1736
|
-
},
|
|
1737
1821
|
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
// the lack of ReferenceError in the 'typeof' case. Must either reliably
|
|
1746
|
-
// distinguish these two cases (the trap behavior might be different), or
|
|
1747
|
-
// we rely on a mandatory source-to-source transform to change 'typeof abc'
|
|
1748
|
-
// to XXX. We already need a mandatory parse to prevent the 'import',
|
|
1749
|
-
// since it's a special form instead of merely being a global variable/
|
|
1750
|
-
|
|
1751
|
-
// note: if we make has() return true always, then we must implement a
|
|
1752
|
-
// set() trap to avoid subverting the protection of strict mode (it would
|
|
1753
|
-
// accept assignments to undefined globals, when it ought to throw
|
|
1754
|
-
// ReferenceError for such assignments)
|
|
1755
|
-
|
|
1756
|
-
has(_shadow, prop) {
|
|
1757
|
-
// unsafeGlobal: hide all properties of the current global
|
|
1758
|
-
// at the expense of 'typeof' being wrong for those properties. For
|
|
1759
|
-
// example, in the browser, evaluating 'document = 3', will add
|
|
1760
|
-
// a property to globalObject instead of throwing a ReferenceError.
|
|
1761
|
-
|
|
1762
|
-
// !!!!! WARNING: DANGER ZONE !!!!!!
|
|
1763
|
-
// The order of the conditions in the `||` expression below is of the
|
|
1764
|
-
// utmost importance. Under no circumstances should `eval` be checked
|
|
1765
|
-
// after `globalObject`. The prototype of the global object is under
|
|
1766
|
-
// full control of user code and may be replaced by a proxy with a
|
|
1767
|
-
// `has` trap. If we allow that trap to trigger while the
|
|
1768
|
-
// `allowNextEvalToBeUnsafe` flag is down, it could allow user code
|
|
1769
|
-
// to get a hold of `FERAL_EVAL`, resulting in a complete escape of
|
|
1770
|
-
// the compartment.
|
|
1771
|
-
// !!!!! WARNING: DANGER ZONE !!!!!!
|
|
1772
|
-
return(
|
|
1773
|
-
sloppyGlobalsMode||
|
|
1774
|
-
scopeController.allowNextEvalToBeUnsafe&& prop=== 'eval'||
|
|
1775
|
-
prop in globalLexicals||
|
|
1776
|
-
prop in globalObject||
|
|
1777
|
-
prop in globalThis);
|
|
1822
|
+
// The scope handler's prototype is a proxy that throws if any trap other
|
|
1823
|
+
// than get/set/has are run (like getOwnPropertyDescriptors, apply,
|
|
1824
|
+
// getPrototypeOf).
|
|
1825
|
+
const strictScopeTerminatorHandler= freeze(
|
|
1826
|
+
create(
|
|
1827
|
+
alwaysThrowHandler,
|
|
1828
|
+
getOwnPropertyDescriptors(scopeProxyHandlerProperties)));$h_once.strictScopeTerminatorHandler(strictScopeTerminatorHandler);
|
|
1778
1829
|
|
|
1779
|
-
},
|
|
1780
1830
|
|
|
1781
|
-
// note: this is likely a bug of safari
|
|
1782
|
-
// https://bugs.webkit.org/show_bug.cgi?id=195534
|
|
1783
1831
|
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1832
|
+
const strictScopeTerminator= new Proxy(
|
|
1833
|
+
immutableObject,
|
|
1834
|
+
strictScopeTerminatorHandler);$h_once.strictScopeTerminator(strictScopeTerminator);
|
|
1835
|
+
})
|
|
1836
|
+
,
|
|
1837
|
+
// === functors[9] ===
|
|
1838
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Proxy,create,freeze,getOwnPropertyDescriptors,immutableObject,reflectSet,strictScopeTerminatorHandler,alwaysThrowHandler;$h_imports([["./commons.js", [["Proxy", [$h_a => (Proxy = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["immutableObject", [$h_a => (immutableObject = $h_a)]],["reflectSet", [$h_a => (reflectSet = $h_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler", [$h_a => (strictScopeTerminatorHandler = $h_a)]],["alwaysThrowHandler", [$h_a => (alwaysThrowHandler = $h_a)]]]]]);
|
|
1787
1839
|
|
|
1788
|
-
// Chip has seen this happen single stepping under the Chrome/v8 debugger.
|
|
1789
|
-
// TODO record how to reliably reproduce, and to test if this fix helps.
|
|
1790
|
-
// TODO report as bug to v8 or Chrome, and record issue link here.
|
|
1791
1840
|
|
|
1792
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
1793
|
-
// Coerce with `String` in case prop is a symbol.
|
|
1794
|
-
const quotedProp= q(String(prop));
|
|
1795
|
-
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
1796
|
-
console.warn(
|
|
1797
|
-
`getOwnPropertyDescriptor trap on scopeHandler for ${quotedProp}`,
|
|
1798
|
-
new TypeError().stack);
|
|
1799
1841
|
|
|
1800
|
-
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/*
|
|
1852
|
+
* createSloppyGlobalsScopeTerminator()
|
|
1853
|
+
* strictScopeTerminatorHandler manages a scopeTerminator Proxy which serves as
|
|
1854
|
+
* the final scope boundary that will always return "undefined" in order
|
|
1855
|
+
* to prevent access to "start compartment globals". When "sloppyGlobalsMode"
|
|
1856
|
+
* is true, the Proxy will perform sets on the "globalObject".
|
|
1857
|
+
*/
|
|
1858
|
+
const createSloppyGlobalsScopeTerminator= (globalObject)=>{
|
|
1859
|
+
const scopeProxyHandlerProperties= {
|
|
1860
|
+
// inherit scopeTerminator behavior
|
|
1861
|
+
...strictScopeTerminatorHandler,
|
|
1862
|
+
|
|
1863
|
+
// Redirect set properties to the globalObject.
|
|
1864
|
+
set(_shadow, prop, value) {
|
|
1865
|
+
return reflectSet(globalObject, prop, value);
|
|
1866
|
+
},
|
|
1867
|
+
|
|
1868
|
+
// Always claim to have a potential property in order to be the recipient of a set
|
|
1869
|
+
has(_shadow, _prop) {
|
|
1870
|
+
return true;
|
|
1801
1871
|
}};
|
|
1802
1872
|
|
|
1803
1873
|
|
|
1804
1874
|
// The scope handler's prototype is a proxy that throws if any trap other
|
|
1805
1875
|
// than get/set/has are run (like getOwnPropertyDescriptors, apply,
|
|
1806
1876
|
// getPrototypeOf).
|
|
1807
|
-
const
|
|
1877
|
+
const sloppyGlobalsScopeTerminatorHandler= freeze(
|
|
1808
1878
|
create(
|
|
1809
1879
|
alwaysThrowHandler,
|
|
1810
1880
|
getOwnPropertyDescriptors(scopeProxyHandlerProperties)));
|
|
1811
1881
|
|
|
1812
1882
|
|
|
1813
1883
|
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1884
|
+
const sloppyGlobalsScopeTerminator= new Proxy(
|
|
1885
|
+
immutableObject,
|
|
1886
|
+
sloppyGlobalsScopeTerminatorHandler);
|
|
1887
|
+
|
|
1817
1888
|
|
|
1818
|
-
|
|
1889
|
+
return sloppyGlobalsScopeTerminator;
|
|
1890
|
+
};$h_once.createSloppyGlobalsScopeTerminator(createSloppyGlobalsScopeTerminator);
|
|
1819
1891
|
})
|
|
1820
1892
|
,
|
|
1821
|
-
// === functors[
|
|
1893
|
+
// === functors[10] ===
|
|
1822
1894
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_REG_EXP,regexpExec,stringSlice;$h_imports([["./commons.js", [["FERAL_REG_EXP", [$h_a => (FERAL_REG_EXP = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]],["stringSlice", [$h_a => (stringSlice = $h_a)]]]]]);
|
|
1823
1895
|
|
|
1824
1896
|
// Captures a key and value of the form #key=value or @key=value
|
|
@@ -1868,7 +1940,7 @@ const getSourceURL= (src)=>{
|
|
|
1868
1940
|
};$h_once.getSourceURL(getSourceURL);
|
|
1869
1941
|
})
|
|
1870
1942
|
,
|
|
1871
|
-
// === functors[
|
|
1943
|
+
// === functors[11] ===
|
|
1872
1944
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_REG_EXP,SyntaxError,stringReplace,stringSearch,stringSlice,stringSplit,getSourceURL;$h_imports([["./commons.js", [["FERAL_REG_EXP", [$h_a => (FERAL_REG_EXP = $h_a)]],["SyntaxError", [$h_a => (SyntaxError = $h_a)]],["stringReplace", [$h_a => (stringReplace = $h_a)]],["stringSearch", [$h_a => (stringSearch = $h_a)]],["stringSlice", [$h_a => (stringSlice = $h_a)]],["stringSplit", [$h_a => (stringSplit = $h_a)]]]],["./get-source-url.js", [["getSourceURL", [$h_a => (getSourceURL = $h_a)]]]]]);
|
|
1873
1945
|
|
|
1874
1946
|
|
|
@@ -1975,7 +2047,7 @@ const evadeHtmlCommentTest= (src)=>{
|
|
|
1975
2047
|
// /////////////////////////////////////////////////////////////////////////////
|
|
1976
2048
|
$h_once.evadeHtmlCommentTest(evadeHtmlCommentTest);
|
|
1977
2049
|
const importPattern= new FERAL_REG_EXP(
|
|
1978
|
-
'(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))',
|
|
2050
|
+
'(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))',
|
|
1979
2051
|
'g');
|
|
1980
2052
|
|
|
1981
2053
|
|
|
@@ -2122,13 +2194,8 @@ const applyTransforms= (source, transforms)=> {
|
|
|
2122
2194
|
};$h_once.applyTransforms(applyTransforms);
|
|
2123
2195
|
})
|
|
2124
2196
|
,
|
|
2125
|
-
// === functors[
|
|
2126
|
-
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2197
|
+
// === functors[12] ===
|
|
2198
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let apply,freeze,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h_imports([["./commons.js", [["apply", [$h_a => (apply = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminator", [$h_a => (strictScopeTerminator = $h_a)]]]],["./sloppy-globals-scope-terminator.js", [["createSloppyGlobalsScopeTerminator", [$h_a => (createSloppyGlobalsScopeTerminator = $h_a)]]]],["./eval-scope.js", [["makeEvalScopeKit", [$h_a => (makeEvalScopeKit = $h_a)]]]],["./transforms.js", [["applyTransforms", [$h_a => (applyTransforms = $h_a)]],["mandatoryTransforms", [$h_a => (mandatoryTransforms = $h_a)]]]],["./make-evaluate.js", [["makeEvaluate", [$h_a => (makeEvaluate = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
2132
2199
|
|
|
2133
2200
|
|
|
2134
2201
|
|
|
@@ -2151,37 +2218,33 @@ const { details: d}= assert;
|
|
|
2151
2218
|
* @param {Object} [options.globalLexicals]
|
|
2152
2219
|
* @param {Array<Transform>} [options.globalTransforms]
|
|
2153
2220
|
* @param {bool} [options.sloppyGlobalsMode]
|
|
2154
|
-
* @param {WeakSet} [options.knownScopeProxies]
|
|
2155
2221
|
*/
|
|
2156
2222
|
const makeSafeEvaluator= ({
|
|
2157
2223
|
globalObject,
|
|
2158
2224
|
globalLexicals= {},
|
|
2159
2225
|
globalTransforms= [],
|
|
2160
|
-
sloppyGlobalsMode= false
|
|
2161
|
-
knownScopeProxies= new WeakSet()}=
|
|
2226
|
+
sloppyGlobalsMode= false}=
|
|
2162
2227
|
{})=> {
|
|
2163
|
-
const
|
|
2164
|
-
|
|
2228
|
+
const scopeTerminator= sloppyGlobalsMode?
|
|
2229
|
+
createSloppyGlobalsScopeTerminator(globalObject):
|
|
2230
|
+
strictScopeTerminator;
|
|
2231
|
+
const evalScopeKit= makeEvalScopeKit();
|
|
2232
|
+
const { evalScope}= evalScopeKit;
|
|
2233
|
+
|
|
2234
|
+
const evaluateContext= freeze({
|
|
2235
|
+
evalScope,
|
|
2165
2236
|
globalLexicals,
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
const { proxy: scopeProxy, revoke: revokeScopeProxy}= proxyRevocable(
|
|
2171
|
-
immutableObject,
|
|
2172
|
-
scopeHandler);
|
|
2237
|
+
globalObject,
|
|
2238
|
+
scopeTerminator});
|
|
2173
2239
|
|
|
2174
|
-
weaksetAdd(knownScopeProxies, scopeProxy);
|
|
2175
2240
|
|
|
2176
2241
|
// Defer creating the actual evaluator to first use.
|
|
2177
2242
|
// Creating a compartment should be possible in no-eval environments
|
|
2178
2243
|
// It also allows more global constants to be captured by the optimizer
|
|
2179
2244
|
let evaluate;
|
|
2180
|
-
const
|
|
2245
|
+
const provideEvaluate= ()=> {
|
|
2181
2246
|
if( !evaluate) {
|
|
2182
|
-
|
|
2183
|
-
const evaluateFactory= makeEvaluateFactory(constants);
|
|
2184
|
-
evaluate= apply(evaluateFactory, scopeProxy, []);
|
|
2247
|
+
evaluate= makeEvaluate(evaluateContext);
|
|
2185
2248
|
}
|
|
2186
2249
|
};
|
|
2187
2250
|
|
|
@@ -2191,7 +2254,7 @@ const makeSafeEvaluator= ({
|
|
|
2191
2254
|
* @param {Array<Transform>} [options.localTransforms]
|
|
2192
2255
|
*/
|
|
2193
2256
|
const safeEvaluate= (source, { localTransforms= []}= {})=> {
|
|
2194
|
-
|
|
2257
|
+
provideEvaluate();
|
|
2195
2258
|
|
|
2196
2259
|
// Execute the mandatory transforms last to ensure that any rewritten code
|
|
2197
2260
|
// meets those mandatory requirements.
|
|
@@ -2201,9 +2264,12 @@ const makeSafeEvaluator= ({
|
|
|
2201
2264
|
mandatoryTransforms]);
|
|
2202
2265
|
|
|
2203
2266
|
|
|
2204
|
-
scopeController.allowNextEvalToBeUnsafe= true;
|
|
2205
2267
|
let err;
|
|
2206
2268
|
try {
|
|
2269
|
+
// Allow next reference to eval produce the unsafe FERAL_EVAL.
|
|
2270
|
+
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
2271
|
+
evalScopeKit.allowNextEvalToBeUnsafe();
|
|
2272
|
+
|
|
2207
2273
|
// Ensure that "this" resolves to the safe global.
|
|
2208
2274
|
return apply(evaluate, globalObject, [source]);
|
|
2209
2275
|
}catch( e) {
|
|
@@ -2211,15 +2277,14 @@ const makeSafeEvaluator= ({
|
|
|
2211
2277
|
err= e;
|
|
2212
2278
|
throw e;
|
|
2213
2279
|
}finally {
|
|
2214
|
-
const unsafeEvalWasStillExposed=
|
|
2215
|
-
|
|
2280
|
+
const unsafeEvalWasStillExposed=( 'eval'in evalScope);
|
|
2281
|
+
delete evalScope.eval;
|
|
2216
2282
|
if( unsafeEvalWasStillExposed) {
|
|
2217
|
-
// Barring a defect in the SES shim, the
|
|
2283
|
+
// Barring a defect in the SES shim, the evalScope should allow the
|
|
2218
2284
|
// powerful, unsafe `eval` to be used by `evaluate` exactly once, as the
|
|
2219
2285
|
// very first name that it attempts to access from the lexical scope.
|
|
2220
2286
|
// A defect in the SES shim could throw an exception after we set
|
|
2221
|
-
// `
|
|
2222
|
-
// calls `eval` internally.
|
|
2287
|
+
// `evalScope.eval` and before `evaluate` calls `eval` internally.
|
|
2223
2288
|
// If we get here, SES is very broken.
|
|
2224
2289
|
// This condition is one where this vat is now hopelessly confused, and
|
|
2225
2290
|
// the vat as a whole should be aborted.
|
|
@@ -2229,7 +2294,7 @@ const makeSafeEvaluator= ({
|
|
|
2229
2294
|
// variable resolution via the scopeHandler, and throw an error with
|
|
2230
2295
|
// diagnostic info including the thrown error if any from evaluating the
|
|
2231
2296
|
// source code.
|
|
2232
|
-
|
|
2297
|
+
evalScopeKit.revoked= { err};
|
|
2233
2298
|
// TODO A GOOD PLACE TO PANIC(), i.e., kill the vat incarnation.
|
|
2234
2299
|
// See https://github.com/Agoric/SES-shim/issues/490
|
|
2235
2300
|
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
@@ -2242,7 +2307,7 @@ const makeSafeEvaluator= ({
|
|
|
2242
2307
|
};$h_once.makeSafeEvaluator(makeSafeEvaluator);
|
|
2243
2308
|
})
|
|
2244
2309
|
,
|
|
2245
|
-
// === functors[
|
|
2310
|
+
// === functors[13] ===
|
|
2246
2311
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,arrayPush,create,defineProperties,getOwnPropertyDescriptors,evadeHtmlCommentTest,evadeImportExpressionTest,rejectSomeDirectEvalExpressions,makeSafeEvaluator;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]]]],["./transforms.js", [["evadeHtmlCommentTest", [$h_a => (evadeHtmlCommentTest = $h_a)]],["evadeImportExpressionTest", [$h_a => (evadeImportExpressionTest = $h_a)]],["rejectSomeDirectEvalExpressions", [$h_a => (rejectSomeDirectEvalExpressions = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]]]);
|
|
2247
2312
|
|
|
2248
2313
|
|
|
@@ -2273,11 +2338,7 @@ const provideCompartmentEvaluator= (compartmentFields, options)=> {
|
|
|
2273
2338
|
// shared evaluator so we need to build a new one
|
|
2274
2339
|
|
|
2275
2340
|
let { globalTransforms}= compartmentFields;
|
|
2276
|
-
const {
|
|
2277
|
-
globalObject,
|
|
2278
|
-
globalLexicals,
|
|
2279
|
-
knownScopeProxies}=
|
|
2280
|
-
compartmentFields;
|
|
2341
|
+
const { globalObject, globalLexicals}= compartmentFields;
|
|
2281
2342
|
|
|
2282
2343
|
let localObject= globalLexicals;
|
|
2283
2344
|
if( __moduleShimLexicals__!== undefined) {
|
|
@@ -2302,8 +2363,7 @@ const provideCompartmentEvaluator= (compartmentFields, options)=> {
|
|
|
2302
2363
|
globalObject,
|
|
2303
2364
|
globalLexicals: localObject,
|
|
2304
2365
|
globalTransforms,
|
|
2305
|
-
sloppyGlobalsMode
|
|
2306
|
-
knownScopeProxies}));
|
|
2366
|
+
sloppyGlobalsMode}));
|
|
2307
2367
|
|
|
2308
2368
|
}
|
|
2309
2369
|
|
|
@@ -2311,7 +2371,7 @@ const provideCompartmentEvaluator= (compartmentFields, options)=> {
|
|
|
2311
2371
|
};$h_once.provideCompartmentEvaluator(provideCompartmentEvaluator);
|
|
2312
2372
|
|
|
2313
2373
|
const compartmentEvaluate= (compartmentFields, source, options)=> {
|
|
2314
|
-
// Perform this check first to avoid
|
|
2374
|
+
// Perform this check first to avoid unnecessary sanitizing.
|
|
2315
2375
|
// TODO Maybe relax string check and coerce instead:
|
|
2316
2376
|
// https://github.com/tc39/proposal-dynamic-code-brand-checks
|
|
2317
2377
|
if( typeof source!== 'string') {
|
|
@@ -2347,7 +2407,7 @@ const compartmentEvaluate= (compartmentFields, source, options)=> {
|
|
|
2347
2407
|
};$h_once.compartmentEvaluate(compartmentEvaluate);
|
|
2348
2408
|
})
|
|
2349
2409
|
,
|
|
2350
|
-
// === functors[
|
|
2410
|
+
// === functors[14] ===
|
|
2351
2411
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([]); /**
|
|
2352
2412
|
* makeEvalFunction()
|
|
2353
2413
|
* A safe version of the native eval function which relies on
|
|
@@ -2377,7 +2437,7 @@ const makeEvalFunction= (safeEvaluate)=>{
|
|
|
2377
2437
|
};$h_once.makeEvalFunction(makeEvalFunction);
|
|
2378
2438
|
})
|
|
2379
2439
|
,
|
|
2380
|
-
// === functors[
|
|
2440
|
+
// === functors[15] ===
|
|
2381
2441
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,arrayJoin,arrayPop,defineProperties,getPrototypeOf,assert;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayPop", [$h_a => (arrayPop = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
2382
2442
|
|
|
2383
2443
|
|
|
@@ -2460,7 +2520,7 @@ const makeFunctionConstructor= (safeEvaluate)=>{
|
|
|
2460
2520
|
};$h_once.makeFunctionConstructor(makeFunctionConstructor);
|
|
2461
2521
|
})
|
|
2462
2522
|
,
|
|
2463
|
-
// === functors[
|
|
2523
|
+
// === functors[16] ===
|
|
2464
2524
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([]); /* eslint-disable no-restricted-globals */
|
|
2465
2525
|
/**
|
|
2466
2526
|
* @file Exports {@code whitelist}, a recursively defined
|
|
@@ -3824,7 +3884,6 @@ const whitelist= {
|
|
|
3824
3884
|
name: getter,
|
|
3825
3885
|
// Should this be proposed?
|
|
3826
3886
|
toString: fn,
|
|
3827
|
-
__isKnownScopeProxy__: fn,
|
|
3828
3887
|
import: asyncFn,
|
|
3829
3888
|
load: asyncFn,
|
|
3830
3889
|
importNow: fn,
|
|
@@ -3837,12 +3896,51 @@ const whitelist= {
|
|
|
3837
3896
|
'%InitialGetStackString%': fn};$h_once.whitelist(whitelist);
|
|
3838
3897
|
})
|
|
3839
3898
|
,
|
|
3840
|
-
// === functors[
|
|
3841
|
-
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let defineProperty,objectHasOwnProperty,
|
|
3899
|
+
// === functors[17] ===
|
|
3900
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,assign,create,defineProperty,entries,freeze,objectHasOwnProperty,unscopablesSymbol,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["assign", [$h_a => (assign = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["unscopablesSymbol", [$h_a => (unscopablesSymbol = $h_a)]]]],["./make-eval-function.js", [["makeEvalFunction", [$h_a => (makeEvalFunction = $h_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor", [$h_a => (makeFunctionConstructor = $h_a)]]]],["./whitelist.js", [["constantProperties", [$h_a => (constantProperties = $h_a)]],["universalPropertyNames", [$h_a => (universalPropertyNames = $h_a)]]]]]);
|
|
3901
|
+
|
|
3902
|
+
|
|
3903
|
+
|
|
3904
|
+
|
|
3905
|
+
|
|
3842
3906
|
|
|
3843
3907
|
|
|
3844
3908
|
|
|
3845
3909
|
|
|
3910
|
+
|
|
3911
|
+
|
|
3912
|
+
|
|
3913
|
+
|
|
3914
|
+
/**
|
|
3915
|
+
* The host's ordinary global object is not provided by a `with` block, so
|
|
3916
|
+
* assigning to Symbol.unscopables has no effect.
|
|
3917
|
+
* Since this shim uses `with` blocks to create a confined lexical scope for
|
|
3918
|
+
* guest programs, we cannot emulate the proper behavior.
|
|
3919
|
+
* With this shim, assigning Symbol.unscopables causes the given lexical
|
|
3920
|
+
* names to fall through to the terminal scope proxy.
|
|
3921
|
+
* But, we can install this setter to prevent a program from proceding on
|
|
3922
|
+
* this false assumption.
|
|
3923
|
+
*
|
|
3924
|
+
* @param {Object} globalObject
|
|
3925
|
+
*/
|
|
3926
|
+
const setGlobalObjectSymbolUnscopables= (globalObject)=>{
|
|
3927
|
+
defineProperty(
|
|
3928
|
+
globalObject,
|
|
3929
|
+
unscopablesSymbol,
|
|
3930
|
+
freeze(
|
|
3931
|
+
assign(create(null), {
|
|
3932
|
+
set: freeze(()=> {
|
|
3933
|
+
throw new TypeError(
|
|
3934
|
+
`Cannot set Symbol.unscopables of a Compartment's globalThis`);
|
|
3935
|
+
|
|
3936
|
+
}),
|
|
3937
|
+
enumerable: false,
|
|
3938
|
+
configurable: false})));
|
|
3939
|
+
|
|
3940
|
+
|
|
3941
|
+
|
|
3942
|
+
};
|
|
3943
|
+
|
|
3846
3944
|
/**
|
|
3847
3945
|
* setGlobalObjectConstantProperties()
|
|
3848
3946
|
* Initializes a new global object using a process similar to ECMA specifications
|
|
@@ -3850,7 +3948,7 @@ const whitelist= {
|
|
|
3850
3948
|
* `setGlobalObjectMutableProperties`.
|
|
3851
3949
|
*
|
|
3852
3950
|
* @param {Object} globalObject
|
|
3853
|
-
|
|
3951
|
+
*/$h_once.setGlobalObjectSymbolUnscopables(setGlobalObjectSymbolUnscopables);
|
|
3854
3952
|
const setGlobalObjectConstantProperties= (globalObject)=>{
|
|
3855
3953
|
for( const [name, constant]of entries(constantProperties)) {
|
|
3856
3954
|
defineProperty(globalObject, name, {
|
|
@@ -3968,7 +4066,7 @@ const setGlobalObjectEvaluators= (
|
|
|
3968
4066
|
};$h_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
|
|
3969
4067
|
})
|
|
3970
4068
|
,
|
|
3971
|
-
// === functors[
|
|
4069
|
+
// === functors[18] ===
|
|
3972
4070
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let ReferenceError,TypeError,Map,Set,arrayJoin,arrayMap,arrayPush,create,freeze,mapGet,mapHas,mapSet,setAdd,promiseCatch,promiseThen,values,weakmapGet,assert;$h_imports([["./commons.js", [["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["Set", [$h_a => (Set = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["promiseCatch", [$h_a => (promiseCatch = $h_a)]],["promiseThen", [$h_a => (promiseThen = $h_a)]],["values", [$h_a => (values = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
3973
4071
|
|
|
3974
4072
|
|
|
@@ -4300,7 +4398,7 @@ const load= async(
|
|
|
4300
4398
|
};$h_once.load(load);
|
|
4301
4399
|
})
|
|
4302
4400
|
,
|
|
4303
|
-
// === functors[
|
|
4401
|
+
// === functors[19] ===
|
|
4304
4402
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,weakmapSet,assert;$h_imports([["./module-load.js", [["makeAlias", [$h_a => (makeAlias = $h_a)]]]],["./commons.js", [["Proxy", [$h_a => (Proxy = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["reflectGet", [$h_a => (reflectGet = $h_a)]],["reflectGetOwnPropertyDescriptor", [$h_a => (reflectGetOwnPropertyDescriptor = $h_a)]],["reflectHas", [$h_a => (reflectHas = $h_a)]],["reflectIsExtensible", [$h_a => (reflectIsExtensible = $h_a)]],["reflectPreventExtensions", [$h_a => (reflectPreventExtensions = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
4305
4403
|
|
|
4306
4404
|
|
|
@@ -4475,7 +4573,7 @@ $h_once.deferExports(deferExports);const getDeferredExports=(
|
|
|
4475
4573
|
};$h_once.getDeferredExports(getDeferredExports);
|
|
4476
4574
|
})
|
|
4477
4575
|
,
|
|
4478
|
-
// === functors[
|
|
4576
|
+
// === functors[20] ===
|
|
4479
4577
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,reflectHas,assign,compartmentEvaluate;$h_imports([["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h_a => (getDeferredExports = $h_a)]]]],["./commons.js", [["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["SyntaxError", [$h_a => (SyntaxError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayForEach", [$h_a => (arrayForEach = $h_a)]],["arrayIncludes", [$h_a => (arrayIncludes = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["arraySome", [$h_a => (arraySome = $h_a)]],["arraySort", [$h_a => (arraySort = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["isArray", [$h_a => (isArray = $h_a)]],["keys", [$h_a => (keys = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["reflectHas", [$h_a => (reflectHas = $h_a)]],["assign", [$h_a => (assign = $h_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h_a => (compartmentEvaluate = $h_a)]]]]]);
|
|
4480
4578
|
|
|
4481
4579
|
|
|
@@ -4953,7 +5051,7 @@ $h_once.makeThirdPartyModuleInstance(makeThirdPartyModuleInstance);const make
|
|
|
4953
5051
|
};$h_once.makeModuleInstance(makeModuleInstance);
|
|
4954
5052
|
})
|
|
4955
5053
|
,
|
|
4956
|
-
// === functors[
|
|
5054
|
+
// === functors[21] ===
|
|
4957
5055
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let assert,makeModuleInstance,makeThirdPartyModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isObject,mapGet,mapHas,mapSet,weakmapGet;$h_imports([["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./module-instance.js", [["makeModuleInstance", [$h_a => (makeModuleInstance = $h_a)]],["makeThirdPartyModuleInstance", [$h_a => (makeThirdPartyModuleInstance = $h_a)]]]],["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["isArray", [$h_a => (isArray = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]]]);
|
|
4958
5056
|
|
|
4959
5057
|
|
|
@@ -5151,9 +5249,8 @@ const instantiate= (
|
|
|
5151
5249
|
};$h_once.instantiate(instantiate);
|
|
5152
5250
|
})
|
|
5153
5251
|
,
|
|
5154
|
-
// === functors[
|
|
5155
|
-
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Map,ReferenceError,TypeError,WeakMap,
|
|
5156
|
-
|
|
5252
|
+
// === functors[22] ===
|
|
5253
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Map,ReferenceError,TypeError,WeakMap,arrayFilter,arrayJoin,assign,defineProperties,entries,freeze,getOwnPropertyNames,promiseThen,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,isValidIdentifierName,sharedGlobalPropertyNames,load,link,getDeferredExports,assert,compartmentEvaluate,makeSafeEvaluator;$h_imports([["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["assign", [$h_a => (assign = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["promiseThen", [$h_a => (promiseThen = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]]]],["./global-object.js", [["setGlobalObjectSymbolUnscopables", [$h_a => (setGlobalObjectSymbolUnscopables = $h_a)]],["setGlobalObjectConstantProperties", [$h_a => (setGlobalObjectConstantProperties = $h_a)]],["setGlobalObjectMutableProperties", [$h_a => (setGlobalObjectMutableProperties = $h_a)]],["setGlobalObjectEvaluators", [$h_a => (setGlobalObjectEvaluators = $h_a)]]]],["./scope-constants.js", [["isValidIdentifierName", [$h_a => (isValidIdentifierName = $h_a)]]]],["./whitelist.js", [["sharedGlobalPropertyNames", [$h_a => (sharedGlobalPropertyNames = $h_a)]]]],["./module-load.js", [["load", [$h_a => (load = $h_a)]]]],["./module-link.js", [["link", [$h_a => (link = $h_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h_a => (getDeferredExports = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h_a => (compartmentEvaluate = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]]]);
|
|
5157
5254
|
|
|
5158
5255
|
|
|
5159
5256
|
|
|
@@ -5273,12 +5370,6 @@ const CompartmentPrototype= {
|
|
|
5273
5370
|
return '[object Compartment]';
|
|
5274
5371
|
},
|
|
5275
5372
|
|
|
5276
|
-
/* eslint-disable-next-line no-underscore-dangle */
|
|
5277
|
-
__isKnownScopeProxy__(value) {
|
|
5278
|
-
const { knownScopeProxies}= weakmapGet(privateFields, this);
|
|
5279
|
-
return weaksetHas(knownScopeProxies, value);
|
|
5280
|
-
},
|
|
5281
|
-
|
|
5282
5373
|
module(specifier) {
|
|
5283
5374
|
if( typeof specifier!== 'string') {
|
|
5284
5375
|
throw new TypeError('first argument of module() must be a string');
|
|
@@ -5431,6 +5522,8 @@ const makeCompartmentConstructor= (
|
|
|
5431
5522
|
|
|
5432
5523
|
const globalObject= {};
|
|
5433
5524
|
|
|
5525
|
+
setGlobalObjectSymbolUnscopables(globalObject);
|
|
5526
|
+
|
|
5434
5527
|
// We must initialize all constant properties first because
|
|
5435
5528
|
// `makeSafeEvaluator` may use them to create optimized bindings
|
|
5436
5529
|
// in the evaluator.
|
|
@@ -5438,13 +5531,11 @@ const makeCompartmentConstructor= (
|
|
|
5438
5531
|
// evaluator is no longer eagerly created
|
|
5439
5532
|
setGlobalObjectConstantProperties(globalObject);
|
|
5440
5533
|
|
|
5441
|
-
const knownScopeProxies= new WeakSet();
|
|
5442
5534
|
const { safeEvaluate}= makeSafeEvaluator({
|
|
5443
5535
|
globalObject,
|
|
5444
5536
|
globalLexicals,
|
|
5445
5537
|
globalTransforms,
|
|
5446
|
-
sloppyGlobalsMode: false
|
|
5447
|
-
knownScopeProxies});
|
|
5538
|
+
sloppyGlobalsMode: false});
|
|
5448
5539
|
|
|
5449
5540
|
|
|
5450
5541
|
setGlobalObjectMutableProperties(globalObject, {
|
|
@@ -5467,7 +5558,6 @@ const makeCompartmentConstructor= (
|
|
|
5467
5558
|
name: `${name}`,
|
|
5468
5559
|
globalTransforms,
|
|
5469
5560
|
globalObject,
|
|
5470
|
-
knownScopeProxies,
|
|
5471
5561
|
globalLexicals,
|
|
5472
5562
|
safeEvaluate,
|
|
5473
5563
|
resolveHook,
|
|
@@ -5488,7 +5578,7 @@ const makeCompartmentConstructor= (
|
|
|
5488
5578
|
};$h_once.makeCompartmentConstructor(makeCompartmentConstructor);
|
|
5489
5579
|
})
|
|
5490
5580
|
,
|
|
5491
|
-
// === functors[
|
|
5581
|
+
// === functors[23] ===
|
|
5492
5582
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,WeakSet,arrayFilter,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isObject,objectHasOwnProperty,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,whitelist;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["is", [$h_a => (is = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["values", [$h_a => (values = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./whitelist.js", [["constantProperties", [$h_a => (constantProperties = $h_a)]],["sharedGlobalPropertyNames", [$h_a => (sharedGlobalPropertyNames = $h_a)]],["universalPropertyNames", [$h_a => (universalPropertyNames = $h_a)]],["whitelist", [$h_a => (whitelist = $h_a)]]]]]);
|
|
5493
5583
|
|
|
5494
5584
|
|
|
@@ -5662,7 +5752,7 @@ const getGlobalIntrinsics= (globalObject)=>{
|
|
|
5662
5752
|
};$h_once.getGlobalIntrinsics(getGlobalIntrinsics);
|
|
5663
5753
|
})
|
|
5664
5754
|
,
|
|
5665
|
-
// === functors[
|
|
5755
|
+
// === functors[24] ===
|
|
5666
5756
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { $h_imports([]); /**
|
|
5667
5757
|
* @file Exports {@code enablements}, a recursively defined
|
|
5668
5758
|
* JSON record defining the optimum set of intrinsics properties
|
|
@@ -5873,7 +5963,7 @@ const severeEnablements= {
|
|
|
5873
5963
|
'%TypedArrayPrototype%': '*'};$h_once.severeEnablements(severeEnablements);
|
|
5874
5964
|
})
|
|
5875
5965
|
,
|
|
5876
|
-
// === functors[
|
|
5966
|
+
// === functors[25] ===
|
|
5877
5967
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getOwnPropertyNames,isObject,objectHasOwnProperty,ownKeys,setHas,minEnablements,moderateEnablements,severeEnablements;$h_imports([["./commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayForEach", [$h_a => (arrayForEach = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["setHas", [$h_a => (setHas = $h_a)]]]],["./enablements.js", [["minEnablements", [$h_a => (minEnablements = $h_a)]],["moderateEnablements", [$h_a => (moderateEnablements = $h_a)]],["severeEnablements", [$h_a => (severeEnablements = $h_a)]]]]]);
|
|
5878
5968
|
|
|
5879
5969
|
|
|
@@ -6080,7 +6170,7 @@ function enablePropertyOverrides(
|
|
|
6080
6170
|
}$h_once.default( enablePropertyOverrides);
|
|
6081
6171
|
})
|
|
6082
6172
|
,
|
|
6083
|
-
// === functors[
|
|
6173
|
+
// === functors[26] ===
|
|
6084
6174
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let arrayPush,freeze,assert;$h_imports([["./commons.js", [["arrayPush", [$h_a => (arrayPush = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
6085
6175
|
|
|
6086
6176
|
|
|
@@ -6212,7 +6302,7 @@ const makeEnvironmentCaptor= (aGlobal)=>{
|
|
|
6212
6302
|
freeze(makeEnvironmentCaptor);
|
|
6213
6303
|
})
|
|
6214
6304
|
,
|
|
6215
|
-
// === functors[
|
|
6305
|
+
// === functors[27] ===
|
|
6216
6306
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let WeakSet,arrayFilter,arrayMap,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["isError", [$h_a => (isError = $h_a)]],["stringEndsWith", [$h_a => (stringEndsWith = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
6217
6307
|
|
|
6218
6308
|
|
|
@@ -6598,7 +6688,7 @@ const filterConsole= (baseConsole, filter, _topic= undefined)=> {
|
|
|
6598
6688
|
freeze(filterConsole);
|
|
6599
6689
|
})
|
|
6600
6690
|
,
|
|
6601
|
-
// === functors[
|
|
6691
|
+
// === functors[28] ===
|
|
6602
6692
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FinalizationRegistry,Map,mapGet,mapDelete,WeakMap,mapSet,finalizationRegistryRegister,weakmapSet,weakmapGet,mapEntries,mapHas;$h_imports([["../commons.js", [["FinalizationRegistry", [$h_a => (FinalizationRegistry = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapDelete", [$h_a => (mapDelete = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["finalizationRegistryRegister", [$h_a => (finalizationRegistryRegister = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["mapEntries", [$h_a => (mapEntries = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]]]]]);
|
|
6603
6693
|
|
|
6604
6694
|
|
|
@@ -6723,7 +6813,7 @@ const makeRejectionHandlers= (reportReason)=>{
|
|
|
6723
6813
|
};$h_once.makeRejectionHandlers(makeRejectionHandlers);
|
|
6724
6814
|
})
|
|
6725
6815
|
,
|
|
6726
|
-
// === functors[
|
|
6816
|
+
// === functors[29] ===
|
|
6727
6817
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h_imports([["../commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]]]],["./assert.js", [["loggedErrorHandler", [$h_a => (defaultHandler = $h_a)]]]],["./console.js", [["makeCausalConsole", [$h_a => (makeCausalConsole = $h_a)]]]],["./unhandled-rejection.js", [["makeRejectionHandlers", [$h_a => (makeRejectionHandlers = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
6728
6818
|
|
|
6729
6819
|
|
|
@@ -6866,7 +6956,7 @@ const tameConsole= (
|
|
|
6866
6956
|
};$h_once.tameConsole(tameConsole);
|
|
6867
6957
|
})
|
|
6868
6958
|
,
|
|
6869
|
-
// === functors[
|
|
6959
|
+
// === functors[30] ===
|
|
6870
6960
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,regexpTest,weakmapGet,weakmapSet,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arraySlice", [$h_a => (arraySlice = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["reflectSet", [$h_a => (reflectSet = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]],["regexpTest", [$h_a => (regexpTest = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]]]);
|
|
6871
6961
|
|
|
6872
6962
|
|
|
@@ -7206,7 +7296,7 @@ const tameV8ErrorConstructor= (
|
|
|
7206
7296
|
};$h_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
|
|
7207
7297
|
})
|
|
7208
7298
|
,
|
|
7209
|
-
// === functors[
|
|
7299
|
+
// === functors[31] ===
|
|
7210
7300
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_ERROR,TypeError,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,NativeErrors,tameV8ErrorConstructor;$h_imports([["../commons.js", [["FERAL_ERROR", [$h_a => (FERAL_ERROR = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["setPrototypeOf", [$h_a => (setPrototypeOf = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]]]],["../whitelist.js", [["NativeErrors", [$h_a => (NativeErrors = $h_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor", [$h_a => (tameV8ErrorConstructor = $h_a)]]]]]);
|
|
7211
7301
|
|
|
7212
7302
|
|
|
@@ -7460,7 +7550,7 @@ function tameErrorConstructor(
|
|
|
7460
7550
|
}$h_once.default( tameErrorConstructor);
|
|
7461
7551
|
})
|
|
7462
7552
|
,
|
|
7463
|
-
// === functors[
|
|
7553
|
+
// === functors[32] ===
|
|
7464
7554
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,InertCompartment;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["Float32Array", [$h_a => (Float32Array = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["iterateArray", [$h_a => (iterateArray = $h_a)]],["iterateMap", [$h_a => (iterateMap = $h_a)]],["iterateSet", [$h_a => (iterateSet = $h_a)]],["iterateString", [$h_a => (iterateString = $h_a)]],["matchAllRegExp", [$h_a => (matchAllRegExp = $h_a)]],["matchAllSymbol", [$h_a => (matchAllSymbol = $h_a)]],["regexpPrototype", [$h_a => (regexpPrototype = $h_a)]]]],["./compartment-shim.js", [["InertCompartment", [$h_a => (InertCompartment = $h_a)]]]]]);
|
|
7465
7555
|
|
|
7466
7556
|
|
|
@@ -7601,7 +7691,7 @@ const getAnonymousIntrinsics= ()=> {
|
|
|
7601
7691
|
};$h_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
|
|
7602
7692
|
})
|
|
7603
7693
|
,
|
|
7604
|
-
// === functors[
|
|
7694
|
+
// === functors[33] ===
|
|
7605
7695
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Set,String,TypeError,WeakMap,WeakSet,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isObject,objectHasOwnProperty,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,assert;$h_imports([["./commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["arrayForEach", [$h_a => (arrayForEach = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["isInteger", [$h_a => (isInteger = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["preventExtensions", [$h_a => (preventExtensions = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["setForEach", [$h_a => (setForEach = $h_a)]],["setHas", [$h_a => (setHas = $h_a)]],["toStringTagSymbol", [$h_a => (toStringTagSymbol = $h_a)]],["typedArrayPrototype", [$h_a => (typedArrayPrototype = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
7606
7696
|
|
|
7607
7697
|
|
|
@@ -7844,7 +7934,7 @@ const makeHardener= ()=> {
|
|
|
7844
7934
|
};$h_once.makeHardener(makeHardener);
|
|
7845
7935
|
})
|
|
7846
7936
|
,
|
|
7847
|
-
// === functors[
|
|
7937
|
+
// === functors[34] ===
|
|
7848
7938
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Date,TypeError,apply,construct,defineProperties;$h_imports([["./commons.js", [["Date", [$h_a => (Date = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]]]]]);
|
|
7849
7939
|
|
|
7850
7940
|
|
|
@@ -7961,7 +8051,7 @@ function tameDateConstructor(dateTaming= 'safe') {
|
|
|
7961
8051
|
}$h_once.default( tameDateConstructor);
|
|
7962
8052
|
})
|
|
7963
8053
|
,
|
|
7964
|
-
// === functors[
|
|
8054
|
+
// === functors[35] ===
|
|
7965
8055
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let TypeError,globalThis,getOwnPropertyDescriptor,defineProperty;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]]]]]);Object.defineProperty(tameDomains, 'name', {value: "tameDomains"});$h_once.tameDomains(tameDomains);
|
|
7966
8056
|
|
|
7967
8057
|
|
|
@@ -8010,7 +8100,7 @@ function tameDomains(domainTaming= 'safe') {
|
|
|
8010
8100
|
}
|
|
8011
8101
|
})
|
|
8012
8102
|
,
|
|
8013
|
-
// === functors[
|
|
8103
|
+
// === functors[36] ===
|
|
8014
8104
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,SyntaxError,TypeError,defineProperties,getPrototypeOf,setPrototypeOf;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["SyntaxError", [$h_a => (SyntaxError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["setPrototypeOf", [$h_a => (setPrototypeOf = $h_a)]]]]]);
|
|
8015
8105
|
|
|
8016
8106
|
|
|
@@ -8148,7 +8238,7 @@ function tameFunctionConstructors() {
|
|
|
8148
8238
|
}$h_once.default( tameFunctionConstructors);
|
|
8149
8239
|
})
|
|
8150
8240
|
,
|
|
8151
|
-
// === functors[
|
|
8241
|
+
// === functors[37] ===
|
|
8152
8242
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let WeakSet,defineProperty,freeze,functionPrototype,functionToString,stringEndsWith,weaksetAdd,weaksetHas;$h_imports([["./commons.js", [["WeakSet", [$h_a => (WeakSet = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["functionPrototype", [$h_a => (functionPrototype = $h_a)]],["functionToString", [$h_a => (functionToString = $h_a)]],["stringEndsWith", [$h_a => (stringEndsWith = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]]]);
|
|
8153
8243
|
|
|
8154
8244
|
|
|
@@ -8201,7 +8291,7 @@ const tameFunctionToString= ()=> {
|
|
|
8201
8291
|
};$h_once.tameFunctionToString(tameFunctionToString);
|
|
8202
8292
|
})
|
|
8203
8293
|
,
|
|
8204
|
-
// === functors[
|
|
8294
|
+
// === functors[38] ===
|
|
8205
8295
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Number,String,TypeError,defineProperty,getOwnPropertyNames,isObject,regexpExec,assert;$h_imports([["./commons.js", [["Number", [$h_a => (Number = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
8206
8296
|
|
|
8207
8297
|
|
|
@@ -8289,7 +8379,7 @@ function tameLocaleMethods(intrinsics, localeTaming= 'safe') {
|
|
|
8289
8379
|
}$h_once.default( tameLocaleMethods);
|
|
8290
8380
|
})
|
|
8291
8381
|
,
|
|
8292
|
-
// === functors[
|
|
8382
|
+
// === functors[39] ===
|
|
8293
8383
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let Math,TypeError,create,getOwnPropertyDescriptors,objectPrototype;$h_imports([["./commons.js", [["Math", [$h_a => (Math = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["create", [$h_a => (create = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["objectPrototype", [$h_a => (objectPrototype = $h_a)]]]]]);
|
|
8294
8384
|
|
|
8295
8385
|
|
|
@@ -8318,7 +8408,7 @@ function tameMathObject(mathTaming= 'safe') {
|
|
|
8318
8408
|
}$h_once.default( tameMathObject);
|
|
8319
8409
|
})
|
|
8320
8410
|
,
|
|
8321
|
-
// === functors[
|
|
8411
|
+
// === functors[40] ===
|
|
8322
8412
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_REG_EXP,TypeError,construct,defineProperties,getOwnPropertyDescriptor,speciesSymbol;$h_imports([["./commons.js", [["FERAL_REG_EXP", [$h_a => (FERAL_REG_EXP = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["speciesSymbol", [$h_a => (speciesSymbol = $h_a)]]]]]);
|
|
8323
8413
|
|
|
8324
8414
|
|
|
@@ -8373,7 +8463,7 @@ function tameRegExpConstructor(regExpTaming= 'safe') {
|
|
|
8373
8463
|
}$h_once.default( tameRegExpConstructor);
|
|
8374
8464
|
})
|
|
8375
8465
|
,
|
|
8376
|
-
// === functors[
|
|
8466
|
+
// === functors[41] ===
|
|
8377
8467
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let whitelist,FunctionInstance,isAccessorPermit,Map,String,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isObject,mapGet,objectHasOwnProperty,ownKeys,symbolKeyFor;$h_imports([["./whitelist.js", [["whitelist", [$h_a => (whitelist = $h_a)]],["FunctionInstance", [$h_a => (FunctionInstance = $h_a)]],["isAccessorPermit", [$h_a => (isAccessorPermit = $h_a)]]]],["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayIncludes", [$h_a => (arrayIncludes = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["symbolKeyFor", [$h_a => (symbolKeyFor = $h_a)]]]]]);
|
|
8378
8468
|
|
|
8379
8469
|
|
|
@@ -8688,7 +8778,7 @@ function whitelistIntrinsics(
|
|
|
8688
8778
|
}$h_once.default( whitelistIntrinsics);
|
|
8689
8779
|
})
|
|
8690
8780
|
,
|
|
8691
|
-
// === functors[
|
|
8781
|
+
// === functors[42] ===
|
|
8692
8782
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,arrayMap,globalThis,is,ownKeys,stringSplit,noEvalEvaluate,enJoin,makeHardener,makeIntrinsicsCollector,whitelistIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameConsole,tameErrorConstructor,assert,makeAssert,makeEnvironmentCaptor,getAnonymousIntrinsics,makeCompartmentConstructor;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["FERAL_EVAL", [$h_a => (FERAL_EVAL = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["is", [$h_a => (is = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["stringSplit", [$h_a => (stringSplit = $h_a)]],["noEvalEvaluate", [$h_a => (noEvalEvaluate = $h_a)]]]],["./error/stringify-utils.js", [["enJoin", [$h_a => (enJoin = $h_a)]]]],["./make-hardener.js", [["makeHardener", [$h_a => (makeHardener = $h_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector", [$h_a => (makeIntrinsicsCollector = $h_a)]]]],["./whitelist-intrinsics.js", [["default", [$h_a => (whitelistIntrinsics = $h_a)]]]],["./tame-function-constructors.js", [["default", [$h_a => (tameFunctionConstructors = $h_a)]]]],["./tame-date-constructor.js", [["default", [$h_a => (tameDateConstructor = $h_a)]]]],["./tame-math-object.js", [["default", [$h_a => (tameMathObject = $h_a)]]]],["./tame-regexp-constructor.js", [["default", [$h_a => (tameRegExpConstructor = $h_a)]]]],["./enable-property-overrides.js", [["default", [$h_a => (enablePropertyOverrides = $h_a)]]]],["./tame-locale-methods.js", [["default", [$h_a => (tameLocaleMethods = $h_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties", [$h_a => (setGlobalObjectConstantProperties = $h_a)]],["setGlobalObjectMutableProperties", [$h_a => (setGlobalObjectMutableProperties = $h_a)]],["setGlobalObjectEvaluators", [$h_a => (setGlobalObjectEvaluators = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]],["./whitelist.js", [["initialGlobalPropertyNames", [$h_a => (initialGlobalPropertyNames = $h_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString", [$h_a => (tameFunctionToString = $h_a)]]]],["./tame-domains.js", [["tameDomains", [$h_a => (tameDomains = $h_a)]]]],["./error/tame-console.js", [["tameConsole", [$h_a => (tameConsole = $h_a)]]]],["./error/tame-error-constructor.js", [["default", [$h_a => (tameErrorConstructor = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]],["makeAssert", [$h_a => (makeAssert = $h_a)]]]],["./environment-options.js", [["makeEnvironmentCaptor", [$h_a => (makeEnvironmentCaptor = $h_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics", [$h_a => (getAnonymousIntrinsics = $h_a)]]]],["./compartment-shim.js", [["makeCompartmentConstructor", [$h_a => (makeCompartmentConstructor = $h_a)]]]]]);
|
|
8693
8783
|
|
|
8694
8784
|
|
|
@@ -9103,7 +9193,7 @@ const lockdown= (options= {})=> {
|
|
|
9103
9193
|
};$h_once.lockdown(lockdown);
|
|
9104
9194
|
})
|
|
9105
9195
|
,
|
|
9106
|
-
// === functors[
|
|
9196
|
+
// === functors[43] ===
|
|
9107
9197
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, importMeta: $h____meta, }) => { let globalThis,TypeError,assign,tameFunctionToString,getGlobalIntrinsics,lockdown,makeCompartmentConstructor,assert;$h_imports([["./src/commons.js", [["globalThis", [$h_a => (globalThis = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["assign", [$h_a => (assign = $h_a)]]]],["./src/tame-function-tostring.js", [["tameFunctionToString", [$h_a => (tameFunctionToString = $h_a)]]]],["./src/intrinsics.js", [["getGlobalIntrinsics", [$h_a => (getGlobalIntrinsics = $h_a)]]]],["./src/lockdown-shim.js", [["lockdown", [$h_a => (lockdown = $h_a)]]]],["./src/compartment-shim.js", [["makeCompartmentConstructor", [$h_a => (makeCompartmentConstructor = $h_a)]]]],["./src/error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
9108
9198
|
|
|
9109
9199
|
|
|
@@ -9216,6 +9306,7 @@ assign(globalThis, {
|
|
|
9216
9306
|
toStringTagSymbol: cell("toStringTagSymbol"),
|
|
9217
9307
|
iteratorSymbol: cell("iteratorSymbol"),
|
|
9218
9308
|
matchAllSymbol: cell("matchAllSymbol"),
|
|
9309
|
+
unscopablesSymbol: cell("unscopablesSymbol"),
|
|
9219
9310
|
symbolKeyFor: cell("symbolKeyFor"),
|
|
9220
9311
|
symbolFor: cell("symbolFor"),
|
|
9221
9312
|
isInteger: cell("isInteger"),
|
|
@@ -9316,14 +9407,22 @@ assign(globalThis, {
|
|
|
9316
9407
|
assert: cell("assert"),
|
|
9317
9408
|
},
|
|
9318
9409
|
{
|
|
9319
|
-
|
|
9410
|
+
makeEvalScopeKit: cell("makeEvalScopeKit"),
|
|
9320
9411
|
},
|
|
9321
9412
|
{
|
|
9322
9413
|
isValidIdentifierName: cell("isValidIdentifierName"),
|
|
9323
9414
|
getScopeConstants: cell("getScopeConstants"),
|
|
9324
9415
|
},
|
|
9325
9416
|
{
|
|
9326
|
-
|
|
9417
|
+
makeEvaluate: cell("makeEvaluate"),
|
|
9418
|
+
},
|
|
9419
|
+
{
|
|
9420
|
+
alwaysThrowHandler: cell("alwaysThrowHandler"),
|
|
9421
|
+
strictScopeTerminatorHandler: cell("strictScopeTerminatorHandler"),
|
|
9422
|
+
strictScopeTerminator: cell("strictScopeTerminator"),
|
|
9423
|
+
},
|
|
9424
|
+
{
|
|
9425
|
+
createSloppyGlobalsScopeTerminator: cell("createSloppyGlobalsScopeTerminator"),
|
|
9327
9426
|
},
|
|
9328
9427
|
{
|
|
9329
9428
|
getSourceURL: cell("getSourceURL"),
|
|
@@ -9362,6 +9461,7 @@ assign(globalThis, {
|
|
|
9362
9461
|
whitelist: cell("whitelist"),
|
|
9363
9462
|
},
|
|
9364
9463
|
{
|
|
9464
|
+
setGlobalObjectSymbolUnscopables: cell("setGlobalObjectSymbolUnscopables"),
|
|
9365
9465
|
setGlobalObjectConstantProperties: cell("setGlobalObjectConstantProperties"),
|
|
9366
9466
|
setGlobalObjectMutableProperties: cell("setGlobalObjectMutableProperties"),
|
|
9367
9467
|
setGlobalObjectEvaluators: cell("setGlobalObjectEvaluators"),
|
|
@@ -9532,6 +9632,7 @@ assign(globalThis, {
|
|
|
9532
9632
|
toStringTagSymbol: cells[0].toStringTagSymbol.set,
|
|
9533
9633
|
iteratorSymbol: cells[0].iteratorSymbol.set,
|
|
9534
9634
|
matchAllSymbol: cells[0].matchAllSymbol.set,
|
|
9635
|
+
unscopablesSymbol: cells[0].unscopablesSymbol.set,
|
|
9535
9636
|
symbolKeyFor: cells[0].symbolKeyFor.set,
|
|
9536
9637
|
symbolFor: cells[0].symbolFor.set,
|
|
9537
9638
|
isInteger: cells[0].isInteger.set,
|
|
@@ -9674,11 +9775,12 @@ assign(globalThis, {
|
|
|
9674
9775
|
imports(entries) {
|
|
9675
9776
|
const map = new Map(entries);
|
|
9676
9777
|
observeImports(map, "./commons.js", 0);
|
|
9778
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9677
9779
|
},
|
|
9678
9780
|
liveVar: {
|
|
9679
9781
|
},
|
|
9680
9782
|
onceVar: {
|
|
9681
|
-
|
|
9783
|
+
makeEvalScopeKit: cells[5].makeEvalScopeKit.set,
|
|
9682
9784
|
},
|
|
9683
9785
|
importMeta: {},
|
|
9684
9786
|
});
|
|
@@ -9699,12 +9801,12 @@ assign(globalThis, {
|
|
|
9699
9801
|
imports(entries) {
|
|
9700
9802
|
const map = new Map(entries);
|
|
9701
9803
|
observeImports(map, "./commons.js", 0);
|
|
9702
|
-
observeImports(map, "./
|
|
9804
|
+
observeImports(map, "./scope-constants.js", 6);
|
|
9703
9805
|
},
|
|
9704
9806
|
liveVar: {
|
|
9705
9807
|
},
|
|
9706
9808
|
onceVar: {
|
|
9707
|
-
|
|
9809
|
+
makeEvaluate: cells[7].makeEvaluate.set,
|
|
9708
9810
|
},
|
|
9709
9811
|
importMeta: {},
|
|
9710
9812
|
});
|
|
@@ -9712,11 +9814,14 @@ assign(globalThis, {
|
|
|
9712
9814
|
imports(entries) {
|
|
9713
9815
|
const map = new Map(entries);
|
|
9714
9816
|
observeImports(map, "./commons.js", 0);
|
|
9817
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9715
9818
|
},
|
|
9716
9819
|
liveVar: {
|
|
9717
9820
|
},
|
|
9718
9821
|
onceVar: {
|
|
9719
|
-
|
|
9822
|
+
alwaysThrowHandler: cells[8].alwaysThrowHandler.set,
|
|
9823
|
+
strictScopeTerminatorHandler: cells[8].strictScopeTerminatorHandler.set,
|
|
9824
|
+
strictScopeTerminator: cells[8].strictScopeTerminator.set,
|
|
9720
9825
|
},
|
|
9721
9826
|
importMeta: {},
|
|
9722
9827
|
});
|
|
@@ -9724,18 +9829,12 @@ assign(globalThis, {
|
|
|
9724
9829
|
imports(entries) {
|
|
9725
9830
|
const map = new Map(entries);
|
|
9726
9831
|
observeImports(map, "./commons.js", 0);
|
|
9727
|
-
observeImports(map, "./
|
|
9832
|
+
observeImports(map, "./strict-scope-terminator.js", 8);
|
|
9728
9833
|
},
|
|
9729
9834
|
liveVar: {
|
|
9730
9835
|
},
|
|
9731
9836
|
onceVar: {
|
|
9732
|
-
|
|
9733
|
-
evadeHtmlCommentTest: cells[9].evadeHtmlCommentTest.set,
|
|
9734
|
-
rejectImportExpressions: cells[9].rejectImportExpressions.set,
|
|
9735
|
-
evadeImportExpressionTest: cells[9].evadeImportExpressionTest.set,
|
|
9736
|
-
rejectSomeDirectEvalExpressions: cells[9].rejectSomeDirectEvalExpressions.set,
|
|
9737
|
-
mandatoryTransforms: cells[9].mandatoryTransforms.set,
|
|
9738
|
-
applyTransforms: cells[9].applyTransforms.set,
|
|
9837
|
+
createSloppyGlobalsScopeTerminator: cells[9].createSloppyGlobalsScopeTerminator.set,
|
|
9739
9838
|
},
|
|
9740
9839
|
importMeta: {},
|
|
9741
9840
|
});
|
|
@@ -9743,16 +9842,11 @@ assign(globalThis, {
|
|
|
9743
9842
|
imports(entries) {
|
|
9744
9843
|
const map = new Map(entries);
|
|
9745
9844
|
observeImports(map, "./commons.js", 0);
|
|
9746
|
-
observeImports(map, "./error/assert.js", 4);
|
|
9747
|
-
observeImports(map, "./make-evaluate-factory.js", 5);
|
|
9748
|
-
observeImports(map, "./scope-constants.js", 6);
|
|
9749
|
-
observeImports(map, "./scope-handler.js", 7);
|
|
9750
|
-
observeImports(map, "./transforms.js", 9);
|
|
9751
9845
|
},
|
|
9752
9846
|
liveVar: {
|
|
9753
9847
|
},
|
|
9754
9848
|
onceVar: {
|
|
9755
|
-
|
|
9849
|
+
getSourceURL: cells[10].getSourceURL.set,
|
|
9756
9850
|
},
|
|
9757
9851
|
importMeta: {},
|
|
9758
9852
|
});
|
|
@@ -9760,25 +9854,36 @@ assign(globalThis, {
|
|
|
9760
9854
|
imports(entries) {
|
|
9761
9855
|
const map = new Map(entries);
|
|
9762
9856
|
observeImports(map, "./commons.js", 0);
|
|
9763
|
-
observeImports(map, "./
|
|
9764
|
-
observeImports(map, "./transforms.js", 9);
|
|
9857
|
+
observeImports(map, "./get-source-url.js", 10);
|
|
9765
9858
|
},
|
|
9766
9859
|
liveVar: {
|
|
9767
9860
|
},
|
|
9768
9861
|
onceVar: {
|
|
9769
|
-
|
|
9770
|
-
|
|
9862
|
+
rejectHtmlComments: cells[11].rejectHtmlComments.set,
|
|
9863
|
+
evadeHtmlCommentTest: cells[11].evadeHtmlCommentTest.set,
|
|
9864
|
+
rejectImportExpressions: cells[11].rejectImportExpressions.set,
|
|
9865
|
+
evadeImportExpressionTest: cells[11].evadeImportExpressionTest.set,
|
|
9866
|
+
rejectSomeDirectEvalExpressions: cells[11].rejectSomeDirectEvalExpressions.set,
|
|
9867
|
+
mandatoryTransforms: cells[11].mandatoryTransforms.set,
|
|
9868
|
+
applyTransforms: cells[11].applyTransforms.set,
|
|
9771
9869
|
},
|
|
9772
9870
|
importMeta: {},
|
|
9773
9871
|
});
|
|
9774
9872
|
functors[12]({
|
|
9775
9873
|
imports(entries) {
|
|
9776
9874
|
const map = new Map(entries);
|
|
9875
|
+
observeImports(map, "./commons.js", 0);
|
|
9876
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9877
|
+
observeImports(map, "./eval-scope.js", 5);
|
|
9878
|
+
observeImports(map, "./make-evaluate.js", 7);
|
|
9879
|
+
observeImports(map, "./sloppy-globals-scope-terminator.js", 9);
|
|
9880
|
+
observeImports(map, "./strict-scope-terminator.js", 8);
|
|
9881
|
+
observeImports(map, "./transforms.js", 11);
|
|
9777
9882
|
},
|
|
9778
9883
|
liveVar: {
|
|
9779
9884
|
},
|
|
9780
9885
|
onceVar: {
|
|
9781
|
-
|
|
9886
|
+
makeSafeEvaluator: cells[12].makeSafeEvaluator.set,
|
|
9782
9887
|
},
|
|
9783
9888
|
importMeta: {},
|
|
9784
9889
|
});
|
|
@@ -9786,12 +9891,14 @@ assign(globalThis, {
|
|
|
9786
9891
|
imports(entries) {
|
|
9787
9892
|
const map = new Map(entries);
|
|
9788
9893
|
observeImports(map, "./commons.js", 0);
|
|
9789
|
-
observeImports(map, "./
|
|
9894
|
+
observeImports(map, "./make-safe-evaluator.js", 12);
|
|
9895
|
+
observeImports(map, "./transforms.js", 11);
|
|
9790
9896
|
},
|
|
9791
9897
|
liveVar: {
|
|
9792
9898
|
},
|
|
9793
9899
|
onceVar: {
|
|
9794
|
-
|
|
9900
|
+
provideCompartmentEvaluator: cells[13].provideCompartmentEvaluator.set,
|
|
9901
|
+
compartmentEvaluate: cells[13].compartmentEvaluate.set,
|
|
9795
9902
|
},
|
|
9796
9903
|
importMeta: {},
|
|
9797
9904
|
});
|
|
@@ -9802,15 +9909,7 @@ assign(globalThis, {
|
|
|
9802
9909
|
liveVar: {
|
|
9803
9910
|
},
|
|
9804
9911
|
onceVar: {
|
|
9805
|
-
|
|
9806
|
-
universalPropertyNames: cells[14].universalPropertyNames.set,
|
|
9807
|
-
initialGlobalPropertyNames: cells[14].initialGlobalPropertyNames.set,
|
|
9808
|
-
sharedGlobalPropertyNames: cells[14].sharedGlobalPropertyNames.set,
|
|
9809
|
-
uniqueGlobalPropertyNames: cells[14].uniqueGlobalPropertyNames.set,
|
|
9810
|
-
NativeErrors: cells[14].NativeErrors.set,
|
|
9811
|
-
FunctionInstance: cells[14].FunctionInstance.set,
|
|
9812
|
-
isAccessorPermit: cells[14].isAccessorPermit.set,
|
|
9813
|
-
whitelist: cells[14].whitelist.set,
|
|
9912
|
+
makeEvalFunction: cells[14].makeEvalFunction.set,
|
|
9814
9913
|
},
|
|
9815
9914
|
importMeta: {},
|
|
9816
9915
|
});
|
|
@@ -9818,30 +9917,31 @@ assign(globalThis, {
|
|
|
9818
9917
|
imports(entries) {
|
|
9819
9918
|
const map = new Map(entries);
|
|
9820
9919
|
observeImports(map, "./commons.js", 0);
|
|
9821
|
-
observeImports(map, "./
|
|
9822
|
-
observeImports(map, "./make-function-constructor.js", 13);
|
|
9823
|
-
observeImports(map, "./whitelist.js", 14);
|
|
9920
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9824
9921
|
},
|
|
9825
9922
|
liveVar: {
|
|
9826
9923
|
},
|
|
9827
9924
|
onceVar: {
|
|
9828
|
-
|
|
9829
|
-
setGlobalObjectMutableProperties: cells[15].setGlobalObjectMutableProperties.set,
|
|
9830
|
-
setGlobalObjectEvaluators: cells[15].setGlobalObjectEvaluators.set,
|
|
9925
|
+
makeFunctionConstructor: cells[15].makeFunctionConstructor.set,
|
|
9831
9926
|
},
|
|
9832
9927
|
importMeta: {},
|
|
9833
9928
|
});
|
|
9834
9929
|
functors[16]({
|
|
9835
9930
|
imports(entries) {
|
|
9836
9931
|
const map = new Map(entries);
|
|
9837
|
-
observeImports(map, "./commons.js", 0);
|
|
9838
|
-
observeImports(map, "./error/assert.js", 4);
|
|
9839
9932
|
},
|
|
9840
9933
|
liveVar: {
|
|
9841
9934
|
},
|
|
9842
9935
|
onceVar: {
|
|
9843
|
-
|
|
9844
|
-
|
|
9936
|
+
constantProperties: cells[16].constantProperties.set,
|
|
9937
|
+
universalPropertyNames: cells[16].universalPropertyNames.set,
|
|
9938
|
+
initialGlobalPropertyNames: cells[16].initialGlobalPropertyNames.set,
|
|
9939
|
+
sharedGlobalPropertyNames: cells[16].sharedGlobalPropertyNames.set,
|
|
9940
|
+
uniqueGlobalPropertyNames: cells[16].uniqueGlobalPropertyNames.set,
|
|
9941
|
+
NativeErrors: cells[16].NativeErrors.set,
|
|
9942
|
+
FunctionInstance: cells[16].FunctionInstance.set,
|
|
9943
|
+
isAccessorPermit: cells[16].isAccessorPermit.set,
|
|
9944
|
+
whitelist: cells[16].whitelist.set,
|
|
9845
9945
|
},
|
|
9846
9946
|
importMeta: {},
|
|
9847
9947
|
});
|
|
@@ -9849,14 +9949,17 @@ assign(globalThis, {
|
|
|
9849
9949
|
imports(entries) {
|
|
9850
9950
|
const map = new Map(entries);
|
|
9851
9951
|
observeImports(map, "./commons.js", 0);
|
|
9852
|
-
observeImports(map, "./
|
|
9853
|
-
observeImports(map, "./
|
|
9952
|
+
observeImports(map, "./make-eval-function.js", 14);
|
|
9953
|
+
observeImports(map, "./make-function-constructor.js", 15);
|
|
9954
|
+
observeImports(map, "./whitelist.js", 16);
|
|
9854
9955
|
},
|
|
9855
9956
|
liveVar: {
|
|
9856
9957
|
},
|
|
9857
9958
|
onceVar: {
|
|
9858
|
-
|
|
9859
|
-
|
|
9959
|
+
setGlobalObjectSymbolUnscopables: cells[17].setGlobalObjectSymbolUnscopables.set,
|
|
9960
|
+
setGlobalObjectConstantProperties: cells[17].setGlobalObjectConstantProperties.set,
|
|
9961
|
+
setGlobalObjectMutableProperties: cells[17].setGlobalObjectMutableProperties.set,
|
|
9962
|
+
setGlobalObjectEvaluators: cells[17].setGlobalObjectEvaluators.set,
|
|
9860
9963
|
},
|
|
9861
9964
|
importMeta: {},
|
|
9862
9965
|
});
|
|
@@ -9864,15 +9967,13 @@ assign(globalThis, {
|
|
|
9864
9967
|
imports(entries) {
|
|
9865
9968
|
const map = new Map(entries);
|
|
9866
9969
|
observeImports(map, "./commons.js", 0);
|
|
9867
|
-
observeImports(map, "./compartment-evaluate.js", 11);
|
|
9868
9970
|
observeImports(map, "./error/assert.js", 4);
|
|
9869
|
-
observeImports(map, "./module-proxy.js", 17);
|
|
9870
9971
|
},
|
|
9871
9972
|
liveVar: {
|
|
9872
9973
|
},
|
|
9873
9974
|
onceVar: {
|
|
9874
|
-
|
|
9875
|
-
|
|
9975
|
+
makeAlias: cells[18].makeAlias.set,
|
|
9976
|
+
load: cells[18].load.set,
|
|
9876
9977
|
},
|
|
9877
9978
|
importMeta: {},
|
|
9878
9979
|
});
|
|
@@ -9881,13 +9982,13 @@ assign(globalThis, {
|
|
|
9881
9982
|
const map = new Map(entries);
|
|
9882
9983
|
observeImports(map, "./commons.js", 0);
|
|
9883
9984
|
observeImports(map, "./error/assert.js", 4);
|
|
9884
|
-
observeImports(map, "./module-
|
|
9985
|
+
observeImports(map, "./module-load.js", 18);
|
|
9885
9986
|
},
|
|
9886
9987
|
liveVar: {
|
|
9887
9988
|
},
|
|
9888
9989
|
onceVar: {
|
|
9889
|
-
|
|
9890
|
-
|
|
9990
|
+
deferExports: cells[19].deferExports.set,
|
|
9991
|
+
getDeferredExports: cells[19].getDeferredExports.set,
|
|
9891
9992
|
},
|
|
9892
9993
|
importMeta: {},
|
|
9893
9994
|
});
|
|
@@ -9895,22 +9996,15 @@ assign(globalThis, {
|
|
|
9895
9996
|
imports(entries) {
|
|
9896
9997
|
const map = new Map(entries);
|
|
9897
9998
|
observeImports(map, "./commons.js", 0);
|
|
9898
|
-
observeImports(map, "./compartment-evaluate.js",
|
|
9999
|
+
observeImports(map, "./compartment-evaluate.js", 13);
|
|
9899
10000
|
observeImports(map, "./error/assert.js", 4);
|
|
9900
|
-
observeImports(map, "./
|
|
9901
|
-
observeImports(map, "./make-safe-evaluator.js", 10);
|
|
9902
|
-
observeImports(map, "./module-link.js", 19);
|
|
9903
|
-
observeImports(map, "./module-load.js", 16);
|
|
9904
|
-
observeImports(map, "./module-proxy.js", 17);
|
|
9905
|
-
observeImports(map, "./scope-constants.js", 6);
|
|
9906
|
-
observeImports(map, "./whitelist.js", 14);
|
|
10001
|
+
observeImports(map, "./module-proxy.js", 19);
|
|
9907
10002
|
},
|
|
9908
10003
|
liveVar: {
|
|
9909
10004
|
},
|
|
9910
10005
|
onceVar: {
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
makeCompartmentConstructor: cells[20].makeCompartmentConstructor.set,
|
|
10006
|
+
makeThirdPartyModuleInstance: cells[20].makeThirdPartyModuleInstance.set,
|
|
10007
|
+
makeModuleInstance: cells[20].makeModuleInstance.set,
|
|
9914
10008
|
},
|
|
9915
10009
|
importMeta: {},
|
|
9916
10010
|
});
|
|
@@ -9918,26 +10012,37 @@ assign(globalThis, {
|
|
|
9918
10012
|
imports(entries) {
|
|
9919
10013
|
const map = new Map(entries);
|
|
9920
10014
|
observeImports(map, "./commons.js", 0);
|
|
9921
|
-
observeImports(map, "./
|
|
10015
|
+
observeImports(map, "./error/assert.js", 4);
|
|
10016
|
+
observeImports(map, "./module-instance.js", 20);
|
|
9922
10017
|
},
|
|
9923
10018
|
liveVar: {
|
|
9924
10019
|
},
|
|
9925
10020
|
onceVar: {
|
|
9926
|
-
|
|
9927
|
-
|
|
10021
|
+
link: cells[21].link.set,
|
|
10022
|
+
instantiate: cells[21].instantiate.set,
|
|
9928
10023
|
},
|
|
9929
10024
|
importMeta: {},
|
|
9930
10025
|
});
|
|
9931
10026
|
functors[22]({
|
|
9932
10027
|
imports(entries) {
|
|
9933
10028
|
const map = new Map(entries);
|
|
10029
|
+
observeImports(map, "./commons.js", 0);
|
|
10030
|
+
observeImports(map, "./compartment-evaluate.js", 13);
|
|
10031
|
+
observeImports(map, "./error/assert.js", 4);
|
|
10032
|
+
observeImports(map, "./global-object.js", 17);
|
|
10033
|
+
observeImports(map, "./make-safe-evaluator.js", 12);
|
|
10034
|
+
observeImports(map, "./module-link.js", 21);
|
|
10035
|
+
observeImports(map, "./module-load.js", 18);
|
|
10036
|
+
observeImports(map, "./module-proxy.js", 19);
|
|
10037
|
+
observeImports(map, "./scope-constants.js", 6);
|
|
10038
|
+
observeImports(map, "./whitelist.js", 16);
|
|
9934
10039
|
},
|
|
9935
10040
|
liveVar: {
|
|
9936
10041
|
},
|
|
9937
10042
|
onceVar: {
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
10043
|
+
InertCompartment: cells[22].InertCompartment.set,
|
|
10044
|
+
CompartmentPrototype: cells[22].CompartmentPrototype.set,
|
|
10045
|
+
makeCompartmentConstructor: cells[22].makeCompartmentConstructor.set,
|
|
9941
10046
|
},
|
|
9942
10047
|
importMeta: {},
|
|
9943
10048
|
});
|
|
@@ -9945,54 +10050,52 @@ assign(globalThis, {
|
|
|
9945
10050
|
imports(entries) {
|
|
9946
10051
|
const map = new Map(entries);
|
|
9947
10052
|
observeImports(map, "./commons.js", 0);
|
|
9948
|
-
observeImports(map, "./
|
|
10053
|
+
observeImports(map, "./whitelist.js", 16);
|
|
9949
10054
|
},
|
|
9950
10055
|
liveVar: {
|
|
9951
10056
|
},
|
|
9952
10057
|
onceVar: {
|
|
9953
|
-
|
|
10058
|
+
makeIntrinsicsCollector: cells[23].makeIntrinsicsCollector.set,
|
|
10059
|
+
getGlobalIntrinsics: cells[23].getGlobalIntrinsics.set,
|
|
9954
10060
|
},
|
|
9955
10061
|
importMeta: {},
|
|
9956
10062
|
});
|
|
9957
10063
|
functors[24]({
|
|
9958
10064
|
imports(entries) {
|
|
9959
10065
|
const map = new Map(entries);
|
|
9960
|
-
observeImports(map, "./commons.js", 0);
|
|
9961
|
-
observeImports(map, "./error/assert.js", 4);
|
|
9962
10066
|
},
|
|
9963
10067
|
liveVar: {
|
|
9964
10068
|
},
|
|
9965
10069
|
onceVar: {
|
|
9966
|
-
|
|
10070
|
+
minEnablements: cells[24].minEnablements.set,
|
|
10071
|
+
moderateEnablements: cells[24].moderateEnablements.set,
|
|
10072
|
+
severeEnablements: cells[24].severeEnablements.set,
|
|
9967
10073
|
},
|
|
9968
10074
|
importMeta: {},
|
|
9969
10075
|
});
|
|
9970
10076
|
functors[25]({
|
|
9971
10077
|
imports(entries) {
|
|
9972
10078
|
const map = new Map(entries);
|
|
9973
|
-
observeImports(map, "
|
|
9974
|
-
observeImports(map, "./
|
|
9975
|
-
observeImports(map, "./types.js", 3);
|
|
10079
|
+
observeImports(map, "./commons.js", 0);
|
|
10080
|
+
observeImports(map, "./enablements.js", 24);
|
|
9976
10081
|
},
|
|
9977
10082
|
liveVar: {
|
|
9978
10083
|
},
|
|
9979
10084
|
onceVar: {
|
|
9980
|
-
|
|
9981
|
-
makeCausalConsole: cells[25].makeCausalConsole.set,
|
|
9982
|
-
filterConsole: cells[25].filterConsole.set,
|
|
9983
|
-
consoleWhitelist: cells[25].consoleWhitelist.set,
|
|
10085
|
+
default: cells[25].default.set,
|
|
9984
10086
|
},
|
|
9985
10087
|
importMeta: {},
|
|
9986
10088
|
});
|
|
9987
10089
|
functors[26]({
|
|
9988
10090
|
imports(entries) {
|
|
9989
10091
|
const map = new Map(entries);
|
|
9990
|
-
observeImports(map, "
|
|
10092
|
+
observeImports(map, "./commons.js", 0);
|
|
10093
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9991
10094
|
},
|
|
9992
10095
|
liveVar: {
|
|
9993
10096
|
},
|
|
9994
10097
|
onceVar: {
|
|
9995
|
-
|
|
10098
|
+
makeEnvironmentCaptor: cells[26].makeEnvironmentCaptor.set,
|
|
9996
10099
|
},
|
|
9997
10100
|
importMeta: {},
|
|
9998
10101
|
});
|
|
@@ -10000,16 +10103,16 @@ assign(globalThis, {
|
|
|
10000
10103
|
imports(entries) {
|
|
10001
10104
|
const map = new Map(entries);
|
|
10002
10105
|
observeImports(map, "../commons.js", 0);
|
|
10003
|
-
observeImports(map, "./assert.js", 4);
|
|
10004
|
-
observeImports(map, "./console.js", 25);
|
|
10005
10106
|
observeImports(map, "./internal-types.js", 1);
|
|
10006
10107
|
observeImports(map, "./types.js", 3);
|
|
10007
|
-
observeImports(map, "./unhandled-rejection.js", 26);
|
|
10008
10108
|
},
|
|
10009
10109
|
liveVar: {
|
|
10010
10110
|
},
|
|
10011
10111
|
onceVar: {
|
|
10012
|
-
|
|
10112
|
+
makeLoggingConsoleKit: cells[27].makeLoggingConsoleKit.set,
|
|
10113
|
+
makeCausalConsole: cells[27].makeCausalConsole.set,
|
|
10114
|
+
filterConsole: cells[27].filterConsole.set,
|
|
10115
|
+
consoleWhitelist: cells[27].consoleWhitelist.set,
|
|
10013
10116
|
},
|
|
10014
10117
|
importMeta: {},
|
|
10015
10118
|
});
|
|
@@ -10021,9 +10124,7 @@ assign(globalThis, {
|
|
|
10021
10124
|
liveVar: {
|
|
10022
10125
|
},
|
|
10023
10126
|
onceVar: {
|
|
10024
|
-
|
|
10025
|
-
shortenCallSiteString: cells[28].shortenCallSiteString.set,
|
|
10026
|
-
tameV8ErrorConstructor: cells[28].tameV8ErrorConstructor.set,
|
|
10127
|
+
makeRejectionHandlers: cells[28].makeRejectionHandlers.set,
|
|
10027
10128
|
},
|
|
10028
10129
|
importMeta: {},
|
|
10029
10130
|
});
|
|
@@ -10031,40 +10132,44 @@ assign(globalThis, {
|
|
|
10031
10132
|
imports(entries) {
|
|
10032
10133
|
const map = new Map(entries);
|
|
10033
10134
|
observeImports(map, "../commons.js", 0);
|
|
10034
|
-
observeImports(map, "
|
|
10035
|
-
observeImports(map, "./
|
|
10135
|
+
observeImports(map, "./assert.js", 4);
|
|
10136
|
+
observeImports(map, "./console.js", 27);
|
|
10137
|
+
observeImports(map, "./internal-types.js", 1);
|
|
10138
|
+
observeImports(map, "./types.js", 3);
|
|
10139
|
+
observeImports(map, "./unhandled-rejection.js", 28);
|
|
10036
10140
|
},
|
|
10037
10141
|
liveVar: {
|
|
10038
10142
|
},
|
|
10039
10143
|
onceVar: {
|
|
10040
|
-
|
|
10144
|
+
tameConsole: cells[29].tameConsole.set,
|
|
10041
10145
|
},
|
|
10042
10146
|
importMeta: {},
|
|
10043
10147
|
});
|
|
10044
10148
|
functors[30]({
|
|
10045
10149
|
imports(entries) {
|
|
10046
10150
|
const map = new Map(entries);
|
|
10047
|
-
observeImports(map, "
|
|
10048
|
-
observeImports(map, "./compartment-shim.js", 20);
|
|
10151
|
+
observeImports(map, "../commons.js", 0);
|
|
10049
10152
|
},
|
|
10050
10153
|
liveVar: {
|
|
10051
10154
|
},
|
|
10052
10155
|
onceVar: {
|
|
10053
|
-
|
|
10156
|
+
filterFileName: cells[30].filterFileName.set,
|
|
10157
|
+
shortenCallSiteString: cells[30].shortenCallSiteString.set,
|
|
10158
|
+
tameV8ErrorConstructor: cells[30].tameV8ErrorConstructor.set,
|
|
10054
10159
|
},
|
|
10055
10160
|
importMeta: {},
|
|
10056
10161
|
});
|
|
10057
10162
|
functors[31]({
|
|
10058
10163
|
imports(entries) {
|
|
10059
10164
|
const map = new Map(entries);
|
|
10060
|
-
observeImports(map, "
|
|
10061
|
-
observeImports(map, "
|
|
10165
|
+
observeImports(map, "../commons.js", 0);
|
|
10166
|
+
observeImports(map, "../whitelist.js", 16);
|
|
10167
|
+
observeImports(map, "./tame-v8-error-constructor.js", 30);
|
|
10062
10168
|
},
|
|
10063
10169
|
liveVar: {
|
|
10064
10170
|
},
|
|
10065
10171
|
onceVar: {
|
|
10066
|
-
|
|
10067
|
-
makeHardener: cells[31].makeHardener.set,
|
|
10172
|
+
default: cells[31].default.set,
|
|
10068
10173
|
},
|
|
10069
10174
|
importMeta: {},
|
|
10070
10175
|
});
|
|
@@ -10072,11 +10177,12 @@ assign(globalThis, {
|
|
|
10072
10177
|
imports(entries) {
|
|
10073
10178
|
const map = new Map(entries);
|
|
10074
10179
|
observeImports(map, "./commons.js", 0);
|
|
10180
|
+
observeImports(map, "./compartment-shim.js", 22);
|
|
10075
10181
|
},
|
|
10076
10182
|
liveVar: {
|
|
10077
10183
|
},
|
|
10078
10184
|
onceVar: {
|
|
10079
|
-
|
|
10185
|
+
getAnonymousIntrinsics: cells[32].getAnonymousIntrinsics.set,
|
|
10080
10186
|
},
|
|
10081
10187
|
importMeta: {},
|
|
10082
10188
|
});
|
|
@@ -10084,11 +10190,13 @@ assign(globalThis, {
|
|
|
10084
10190
|
imports(entries) {
|
|
10085
10191
|
const map = new Map(entries);
|
|
10086
10192
|
observeImports(map, "./commons.js", 0);
|
|
10193
|
+
observeImports(map, "./error/assert.js", 4);
|
|
10087
10194
|
},
|
|
10088
10195
|
liveVar: {
|
|
10089
10196
|
},
|
|
10090
10197
|
onceVar: {
|
|
10091
|
-
|
|
10198
|
+
isTypedArray: cells[33].isTypedArray.set,
|
|
10199
|
+
makeHardener: cells[33].makeHardener.set,
|
|
10092
10200
|
},
|
|
10093
10201
|
importMeta: {},
|
|
10094
10202
|
});
|
|
@@ -10112,7 +10220,7 @@ assign(globalThis, {
|
|
|
10112
10220
|
liveVar: {
|
|
10113
10221
|
},
|
|
10114
10222
|
onceVar: {
|
|
10115
|
-
|
|
10223
|
+
tameDomains: cells[35].tameDomains.set,
|
|
10116
10224
|
},
|
|
10117
10225
|
importMeta: {},
|
|
10118
10226
|
});
|
|
@@ -10120,7 +10228,6 @@ assign(globalThis, {
|
|
|
10120
10228
|
imports(entries) {
|
|
10121
10229
|
const map = new Map(entries);
|
|
10122
10230
|
observeImports(map, "./commons.js", 0);
|
|
10123
|
-
observeImports(map, "./error/assert.js", 4);
|
|
10124
10231
|
},
|
|
10125
10232
|
liveVar: {
|
|
10126
10233
|
},
|
|
@@ -10137,7 +10244,7 @@ assign(globalThis, {
|
|
|
10137
10244
|
liveVar: {
|
|
10138
10245
|
},
|
|
10139
10246
|
onceVar: {
|
|
10140
|
-
|
|
10247
|
+
tameFunctionToString: cells[37].tameFunctionToString.set,
|
|
10141
10248
|
},
|
|
10142
10249
|
importMeta: {},
|
|
10143
10250
|
});
|
|
@@ -10145,6 +10252,7 @@ assign(globalThis, {
|
|
|
10145
10252
|
imports(entries) {
|
|
10146
10253
|
const map = new Map(entries);
|
|
10147
10254
|
observeImports(map, "./commons.js", 0);
|
|
10255
|
+
observeImports(map, "./error/assert.js", 4);
|
|
10148
10256
|
},
|
|
10149
10257
|
liveVar: {
|
|
10150
10258
|
},
|
|
@@ -10157,7 +10265,6 @@ assign(globalThis, {
|
|
|
10157
10265
|
imports(entries) {
|
|
10158
10266
|
const map = new Map(entries);
|
|
10159
10267
|
observeImports(map, "./commons.js", 0);
|
|
10160
|
-
observeImports(map, "./whitelist.js", 14);
|
|
10161
10268
|
},
|
|
10162
10269
|
liveVar: {
|
|
10163
10270
|
},
|
|
@@ -10170,45 +10277,70 @@ assign(globalThis, {
|
|
|
10170
10277
|
imports(entries) {
|
|
10171
10278
|
const map = new Map(entries);
|
|
10172
10279
|
observeImports(map, "./commons.js", 0);
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10280
|
+
},
|
|
10281
|
+
liveVar: {
|
|
10282
|
+
},
|
|
10283
|
+
onceVar: {
|
|
10284
|
+
default: cells[40].default.set,
|
|
10285
|
+
},
|
|
10286
|
+
importMeta: {},
|
|
10287
|
+
});
|
|
10288
|
+
functors[41]({
|
|
10289
|
+
imports(entries) {
|
|
10290
|
+
const map = new Map(entries);
|
|
10291
|
+
observeImports(map, "./commons.js", 0);
|
|
10292
|
+
observeImports(map, "./whitelist.js", 16);
|
|
10293
|
+
},
|
|
10294
|
+
liveVar: {
|
|
10295
|
+
},
|
|
10296
|
+
onceVar: {
|
|
10297
|
+
default: cells[41].default.set,
|
|
10298
|
+
},
|
|
10299
|
+
importMeta: {},
|
|
10300
|
+
});
|
|
10301
|
+
functors[42]({
|
|
10302
|
+
imports(entries) {
|
|
10303
|
+
const map = new Map(entries);
|
|
10304
|
+
observeImports(map, "./commons.js", 0);
|
|
10305
|
+
observeImports(map, "./compartment-shim.js", 22);
|
|
10306
|
+
observeImports(map, "./enable-property-overrides.js", 25);
|
|
10307
|
+
observeImports(map, "./environment-options.js", 26);
|
|
10176
10308
|
observeImports(map, "./error/assert.js", 4);
|
|
10177
10309
|
observeImports(map, "./error/stringify-utils.js", 2);
|
|
10178
|
-
observeImports(map, "./error/tame-console.js",
|
|
10179
|
-
observeImports(map, "./error/tame-error-constructor.js",
|
|
10180
|
-
observeImports(map, "./get-anonymous-intrinsics.js",
|
|
10181
|
-
observeImports(map, "./global-object.js",
|
|
10182
|
-
observeImports(map, "./intrinsics.js",
|
|
10183
|
-
observeImports(map, "./make-hardener.js",
|
|
10184
|
-
observeImports(map, "./make-safe-evaluator.js",
|
|
10185
|
-
observeImports(map, "./tame-date-constructor.js",
|
|
10186
|
-
observeImports(map, "./tame-domains.js",
|
|
10187
|
-
observeImports(map, "./tame-function-constructors.js",
|
|
10188
|
-
observeImports(map, "./tame-function-tostring.js",
|
|
10189
|
-
observeImports(map, "./tame-locale-methods.js",
|
|
10190
|
-
observeImports(map, "./tame-math-object.js",
|
|
10191
|
-
observeImports(map, "./tame-regexp-constructor.js",
|
|
10192
|
-
observeImports(map, "./whitelist-intrinsics.js",
|
|
10193
|
-
observeImports(map, "./whitelist.js",
|
|
10310
|
+
observeImports(map, "./error/tame-console.js", 29);
|
|
10311
|
+
observeImports(map, "./error/tame-error-constructor.js", 31);
|
|
10312
|
+
observeImports(map, "./get-anonymous-intrinsics.js", 32);
|
|
10313
|
+
observeImports(map, "./global-object.js", 17);
|
|
10314
|
+
observeImports(map, "./intrinsics.js", 23);
|
|
10315
|
+
observeImports(map, "./make-hardener.js", 33);
|
|
10316
|
+
observeImports(map, "./make-safe-evaluator.js", 12);
|
|
10317
|
+
observeImports(map, "./tame-date-constructor.js", 34);
|
|
10318
|
+
observeImports(map, "./tame-domains.js", 35);
|
|
10319
|
+
observeImports(map, "./tame-function-constructors.js", 36);
|
|
10320
|
+
observeImports(map, "./tame-function-tostring.js", 37);
|
|
10321
|
+
observeImports(map, "./tame-locale-methods.js", 38);
|
|
10322
|
+
observeImports(map, "./tame-math-object.js", 39);
|
|
10323
|
+
observeImports(map, "./tame-regexp-constructor.js", 40);
|
|
10324
|
+
observeImports(map, "./whitelist-intrinsics.js", 41);
|
|
10325
|
+
observeImports(map, "./whitelist.js", 16);
|
|
10194
10326
|
},
|
|
10195
10327
|
liveVar: {
|
|
10196
10328
|
},
|
|
10197
10329
|
onceVar: {
|
|
10198
|
-
repairIntrinsics: cells[
|
|
10199
|
-
lockdown: cells[
|
|
10330
|
+
repairIntrinsics: cells[42].repairIntrinsics.set,
|
|
10331
|
+
lockdown: cells[42].lockdown.set,
|
|
10200
10332
|
},
|
|
10201
10333
|
importMeta: {},
|
|
10202
10334
|
});
|
|
10203
|
-
functors[
|
|
10335
|
+
functors[43]({
|
|
10204
10336
|
imports(entries) {
|
|
10205
10337
|
const map = new Map(entries);
|
|
10206
10338
|
observeImports(map, "./src/commons.js", 0);
|
|
10207
|
-
observeImports(map, "./src/compartment-shim.js",
|
|
10339
|
+
observeImports(map, "./src/compartment-shim.js", 22);
|
|
10208
10340
|
observeImports(map, "./src/error/assert.js", 4);
|
|
10209
|
-
observeImports(map, "./src/intrinsics.js",
|
|
10210
|
-
observeImports(map, "./src/lockdown-shim.js",
|
|
10211
|
-
observeImports(map, "./src/tame-function-tostring.js",
|
|
10341
|
+
observeImports(map, "./src/intrinsics.js", 23);
|
|
10342
|
+
observeImports(map, "./src/lockdown-shim.js", 42);
|
|
10343
|
+
observeImports(map, "./src/tame-function-tostring.js", 37);
|
|
10212
10344
|
},
|
|
10213
10345
|
liveVar: {
|
|
10214
10346
|
},
|