ses 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NEWS.md +7 -0
- package/README.md +1 -1
- package/dist/lockdown.cjs +394 -299
- package/dist/lockdown.mjs +394 -299
- package/dist/lockdown.umd.js +394 -299
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +394 -299
- package/dist/ses.mjs +394 -299
- package/dist/ses.umd.js +394 -299
- package/dist/ses.umd.min.js +1 -1
- package/package.json +11 -7
- package/src/compartment.js +13 -4
- package/src/enablements.js +3 -1
- package/src/error/note-log-args.js +1 -205
- package/src/error/tame-console.js +8 -8
- package/src/make-lru-cachemap.js +221 -0
- package/src/permits.js +53 -2
package/src/permits.js
CHANGED
|
@@ -53,6 +53,8 @@ export const universalPropertyNames = {
|
|
|
53
53
|
Boolean: 'Boolean',
|
|
54
54
|
DataView: 'DataView',
|
|
55
55
|
EvalError: 'EvalError',
|
|
56
|
+
// https://github.com/tc39/proposal-float16array
|
|
57
|
+
Float16Array: 'Float16Array',
|
|
56
58
|
Float32Array: 'Float32Array',
|
|
57
59
|
Float64Array: 'Float64Array',
|
|
58
60
|
Int8Array: 'Int8Array',
|
|
@@ -382,6 +384,8 @@ const CommonMath = {
|
|
|
382
384
|
irem: false,
|
|
383
385
|
// See https://github.com/Moddable-OpenSource/moddable/issues/523
|
|
384
386
|
mod: false,
|
|
387
|
+
// See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
|
|
388
|
+
irandom: false,
|
|
385
389
|
};
|
|
386
390
|
|
|
387
391
|
export const permitted = {
|
|
@@ -443,6 +447,8 @@ export const permitted = {
|
|
|
443
447
|
values: fn,
|
|
444
448
|
// https://github.com/tc39/proposal-array-grouping
|
|
445
449
|
groupBy: fn,
|
|
450
|
+
// Seen on QuickJS
|
|
451
|
+
__getClass: false,
|
|
446
452
|
},
|
|
447
453
|
|
|
448
454
|
'%ObjectPrototype%': {
|
|
@@ -489,6 +495,10 @@ export const permitted = {
|
|
|
489
495
|
caller: false,
|
|
490
496
|
// proposed but not yet std. To be removed if there
|
|
491
497
|
arguments: false,
|
|
498
|
+
// Seen on QuickJS. TODO grab getter for use by console
|
|
499
|
+
fileName: false,
|
|
500
|
+
// Seen on QuickJS. TODO grab getter for use by console
|
|
501
|
+
lineNumber: false,
|
|
492
502
|
},
|
|
493
503
|
|
|
494
504
|
Boolean: {
|
|
@@ -528,6 +538,8 @@ export const permitted = {
|
|
|
528
538
|
useSimple: false,
|
|
529
539
|
// Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
|
|
530
540
|
useSetter: false,
|
|
541
|
+
// Seen on QuickJS
|
|
542
|
+
operatorSet: false,
|
|
531
543
|
},
|
|
532
544
|
|
|
533
545
|
'%SymbolPrototype%': {
|
|
@@ -638,6 +650,30 @@ export const permitted = {
|
|
|
638
650
|
bitLength: false,
|
|
639
651
|
// See https://github.com/Moddable-OpenSource/moddable/issues/523
|
|
640
652
|
fromArrayBuffer: false,
|
|
653
|
+
// Seen on QuickJS
|
|
654
|
+
tdiv: false,
|
|
655
|
+
// Seen on QuickJS
|
|
656
|
+
fdiv: false,
|
|
657
|
+
// Seen on QuickJS
|
|
658
|
+
cdiv: false,
|
|
659
|
+
// Seen on QuickJS
|
|
660
|
+
ediv: false,
|
|
661
|
+
// Seen on QuickJS
|
|
662
|
+
tdivrem: false,
|
|
663
|
+
// Seen on QuickJS
|
|
664
|
+
fdivrem: false,
|
|
665
|
+
// Seen on QuickJS
|
|
666
|
+
cdivrem: false,
|
|
667
|
+
// Seen on QuickJS
|
|
668
|
+
edivrem: false,
|
|
669
|
+
// Seen on QuickJS
|
|
670
|
+
sqrt: false,
|
|
671
|
+
// Seen on QuickJS
|
|
672
|
+
sqrtrem: false,
|
|
673
|
+
// Seen on QuickJS
|
|
674
|
+
floorLog2: false,
|
|
675
|
+
// Seen on QuickJS
|
|
676
|
+
ctz: false,
|
|
641
677
|
},
|
|
642
678
|
|
|
643
679
|
'%BigIntPrototype%': {
|
|
@@ -806,6 +842,8 @@ export const permitted = {
|
|
|
806
842
|
isWellFormed: fn,
|
|
807
843
|
toWellFormed: fn,
|
|
808
844
|
unicodeSets: fn,
|
|
845
|
+
// Seen on QuickJS
|
|
846
|
+
__quote: false,
|
|
809
847
|
},
|
|
810
848
|
|
|
811
849
|
'%StringIteratorPrototype%': {
|
|
@@ -1045,6 +1083,8 @@ export const permitted = {
|
|
|
1045
1083
|
|
|
1046
1084
|
BigInt64Array: TypedArray('%BigInt64ArrayPrototype%'),
|
|
1047
1085
|
BigUint64Array: TypedArray('%BigUint64ArrayPrototype%'),
|
|
1086
|
+
// https://github.com/tc39/proposal-float16array
|
|
1087
|
+
Float16Array: TypedArray('%Float16ArrayPrototype%'),
|
|
1048
1088
|
Float32Array: TypedArray('%Float32ArrayPrototype%'),
|
|
1049
1089
|
Float64Array: TypedArray('%Float64ArrayPrototype%'),
|
|
1050
1090
|
Int16Array: TypedArray('%Int16ArrayPrototype%'),
|
|
@@ -1057,6 +1097,8 @@ export const permitted = {
|
|
|
1057
1097
|
|
|
1058
1098
|
'%BigInt64ArrayPrototype%': TypedArrayPrototype('BigInt64Array'),
|
|
1059
1099
|
'%BigUint64ArrayPrototype%': TypedArrayPrototype('BigUint64Array'),
|
|
1100
|
+
// https://github.com/tc39/proposal-float16array
|
|
1101
|
+
'%Float16ArrayPrototype%': TypedArrayPrototype('Float16Array'),
|
|
1060
1102
|
'%Float32ArrayPrototype%': TypedArrayPrototype('Float32Array'),
|
|
1061
1103
|
'%Float64ArrayPrototype%': TypedArrayPrototype('Float64Array'),
|
|
1062
1104
|
'%Int16ArrayPrototype%': TypedArrayPrototype('Int16Array'),
|
|
@@ -1106,6 +1148,8 @@ export const permitted = {
|
|
|
1106
1148
|
'[[Proto]]': '%FunctionPrototype%',
|
|
1107
1149
|
prototype: '%SetPrototype%',
|
|
1108
1150
|
'@@species': getter,
|
|
1151
|
+
// Seen on QuickJS
|
|
1152
|
+
groupBy: false,
|
|
1109
1153
|
},
|
|
1110
1154
|
|
|
1111
1155
|
'%SetPrototype%': {
|
|
@@ -1222,6 +1266,8 @@ export const permitted = {
|
|
|
1222
1266
|
constructor: 'DataView',
|
|
1223
1267
|
getBigInt64: fn,
|
|
1224
1268
|
getBigUint64: fn,
|
|
1269
|
+
// https://github.com/tc39/proposal-float16array
|
|
1270
|
+
getFloat16: fn,
|
|
1225
1271
|
getFloat32: fn,
|
|
1226
1272
|
getFloat64: fn,
|
|
1227
1273
|
getInt8: fn,
|
|
@@ -1232,6 +1278,8 @@ export const permitted = {
|
|
|
1232
1278
|
getUint32: fn,
|
|
1233
1279
|
setBigInt64: fn,
|
|
1234
1280
|
setBigUint64: fn,
|
|
1281
|
+
// https://github.com/tc39/proposal-float16array
|
|
1282
|
+
setFloat16: fn,
|
|
1235
1283
|
setFloat32: fn,
|
|
1236
1284
|
setFloat64: fn,
|
|
1237
1285
|
setInt8: fn,
|
|
@@ -1284,6 +1332,8 @@ export const permitted = {
|
|
|
1284
1332
|
'@@toStringTag': 'string',
|
|
1285
1333
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
1286
1334
|
toAsync: fn,
|
|
1335
|
+
// See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
|
|
1336
|
+
'@@dispose': false,
|
|
1287
1337
|
},
|
|
1288
1338
|
|
|
1289
1339
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
@@ -1326,6 +1376,8 @@ export const permitted = {
|
|
|
1326
1376
|
every: fn,
|
|
1327
1377
|
find: fn,
|
|
1328
1378
|
'@@toStringTag': 'string',
|
|
1379
|
+
// See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
|
|
1380
|
+
'@@asyncDispose': false,
|
|
1329
1381
|
},
|
|
1330
1382
|
|
|
1331
1383
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
@@ -1516,12 +1568,11 @@ export const permitted = {
|
|
|
1516
1568
|
evaluate: fn,
|
|
1517
1569
|
globalThis: getter,
|
|
1518
1570
|
name: getter,
|
|
1519
|
-
// Should this be proposed?
|
|
1520
|
-
toString: fn,
|
|
1521
1571
|
import: asyncFn,
|
|
1522
1572
|
load: asyncFn,
|
|
1523
1573
|
importNow: fn,
|
|
1524
1574
|
module: fn,
|
|
1575
|
+
'@@toStringTag': 'string',
|
|
1525
1576
|
},
|
|
1526
1577
|
|
|
1527
1578
|
lockdown: fn,
|