ses 1.15.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lockdown.cjs +683 -290
- package/dist/lockdown.mjs +683 -290
- package/dist/lockdown.umd.js +683 -290
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses-hermes.cjs +683 -290
- package/dist/ses.cjs +683 -290
- package/dist/ses.mjs +683 -290
- package/dist/ses.umd.js +683 -290
- package/dist/ses.umd.min.js +1 -1
- package/package.json +5 -39
- package/src/assert-sloppy-mode.js +2 -1
- package/src/cauterize-property.js +3 -2
- package/src/commons.js +65 -10
- package/src/compartment.js +8 -6
- package/src/enablements.js +15 -14
- package/src/error/assert.js +16 -21
- package/src/error/tame-error-constructor.js +6 -0
- package/src/error/tame-v8-error-constructor.js +24 -10
- package/src/get-anonymous-intrinsics.js +3 -3
- package/src/get-source-url.js +11 -4
- package/src/lockdown.js +2 -0
- package/src/module-load.js +4 -4
- package/src/permits.js +20 -5
- package/src/scope-constants.js +4 -3
- package/src/tame-locale-methods.js +2 -1
- package/src/tame-nan-sidechannel.js +253 -0
- package/src/transforms.js +5 -5
- package/src-xs/commons.js +29 -0
- package/src-xs/compartment-shim.js +134 -0
- package/src-xs/compartment.js +318 -0
- package/src-xs/index.js +27 -0
- package/src-xs/lockdown-shim.js +29 -0
package/dist/ses.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ses@1.
|
|
1
|
+
// ses@2.1.0
|
|
2
2
|
(functors => options => {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -53,11 +53,13 @@
|
|
|
53
53
|
ArrayBuffer: cell("ArrayBuffer"),
|
|
54
54
|
Date: cell("Date"),
|
|
55
55
|
FinalizationRegistry: cell("FinalizationRegistry"),
|
|
56
|
-
|
|
56
|
+
FERAL_FLOAT64_ARRAY: cell("FERAL_FLOAT64_ARRAY"),
|
|
57
|
+
DataView: cell("DataView"),
|
|
57
58
|
JSON: cell("JSON"),
|
|
58
59
|
Map: cell("Map"),
|
|
59
60
|
Math: cell("Math"),
|
|
60
61
|
Number: cell("Number"),
|
|
62
|
+
BigInt: cell("BigInt"),
|
|
61
63
|
Object: cell("Object"),
|
|
62
64
|
Promise: cell("Promise"),
|
|
63
65
|
Proxy: cell("Proxy"),
|
|
@@ -79,7 +81,6 @@
|
|
|
79
81
|
create: cell("create"),
|
|
80
82
|
defineProperties: cell("defineProperties"),
|
|
81
83
|
entries: cell("entries"),
|
|
82
|
-
freeze: cell("freeze"),
|
|
83
84
|
getOwnPropertyDescriptor: cell("getOwnPropertyDescriptor"),
|
|
84
85
|
getOwnPropertyDescriptors: cell("getOwnPropertyDescriptors"),
|
|
85
86
|
getOwnPropertyNames: cell("getOwnPropertyNames"),
|
|
@@ -95,14 +96,20 @@
|
|
|
95
96
|
setPrototypeOf: cell("setPrototypeOf"),
|
|
96
97
|
values: cell("values"),
|
|
97
98
|
fromEntries: cell("fromEntries"),
|
|
99
|
+
freeze: cell("freeze"),
|
|
98
100
|
speciesSymbol: cell("speciesSymbol"),
|
|
99
101
|
toStringTagSymbol: cell("toStringTagSymbol"),
|
|
100
102
|
iteratorSymbol: cell("iteratorSymbol"),
|
|
101
103
|
matchAllSymbol: cell("matchAllSymbol"),
|
|
102
104
|
replaceSymbol: cell("replaceSymbol"),
|
|
105
|
+
searchSymbol: cell("searchSymbol"),
|
|
103
106
|
unscopablesSymbol: cell("unscopablesSymbol"),
|
|
104
107
|
symbolKeyFor: cell("symbolKeyFor"),
|
|
105
108
|
symbolFor: cell("symbolFor"),
|
|
109
|
+
max: cell("max"),
|
|
110
|
+
min: cell("min"),
|
|
111
|
+
trunc: cell("trunc"),
|
|
112
|
+
MAX_SAFE_INTEGER: cell("MAX_SAFE_INTEGER"),
|
|
106
113
|
isInteger: cell("isInteger"),
|
|
107
114
|
stringifyJson: cell("stringifyJson"),
|
|
108
115
|
defineProperty: cell("defineProperty"),
|
|
@@ -118,6 +125,7 @@
|
|
|
118
125
|
isArray: cell("isArray"),
|
|
119
126
|
arrayPrototype: cell("arrayPrototype"),
|
|
120
127
|
arrayBufferPrototype: cell("arrayBufferPrototype"),
|
|
128
|
+
dataViewPrototype: cell("dataViewPrototype"),
|
|
121
129
|
mapPrototype: cell("mapPrototype"),
|
|
122
130
|
proxyRevocable: cell("proxyRevocable"),
|
|
123
131
|
regexpPrototype: cell("regexpPrototype"),
|
|
@@ -160,8 +168,10 @@
|
|
|
160
168
|
iterateSet: cell("iterateSet"),
|
|
161
169
|
regexpExec: cell("regexpExec"),
|
|
162
170
|
regexpReplace: cell("regexpReplace"),
|
|
171
|
+
regexpSearch: cell("regexpSearch"),
|
|
163
172
|
matchAllRegExp: cell("matchAllRegExp"),
|
|
164
173
|
sealRegexp: cell("sealRegexp"),
|
|
174
|
+
freezeRegexp: cell("freezeRegexp"),
|
|
165
175
|
stringEndsWith: cell("stringEndsWith"),
|
|
166
176
|
stringIncludes: cell("stringIncludes"),
|
|
167
177
|
stringIndexOf: cell("stringIndexOf"),
|
|
@@ -281,6 +291,9 @@
|
|
|
281
291
|
{
|
|
282
292
|
default: cell("default"),
|
|
283
293
|
},
|
|
294
|
+
{
|
|
295
|
+
tameNaNSideChannel: cell("tameNaNSideChannel"),
|
|
296
|
+
},
|
|
284
297
|
{
|
|
285
298
|
default: cell("default"),
|
|
286
299
|
},
|
|
@@ -481,11 +494,13 @@ function observeImports(map, importName, importIndex) {
|
|
|
481
494
|
ArrayBuffer: cells[0].ArrayBuffer.set,
|
|
482
495
|
Date: cells[0].Date.set,
|
|
483
496
|
FinalizationRegistry: cells[0].FinalizationRegistry.set,
|
|
484
|
-
|
|
497
|
+
FERAL_FLOAT64_ARRAY: cells[0].FERAL_FLOAT64_ARRAY.set,
|
|
498
|
+
DataView: cells[0].DataView.set,
|
|
485
499
|
JSON: cells[0].JSON.set,
|
|
486
500
|
Map: cells[0].Map.set,
|
|
487
501
|
Math: cells[0].Math.set,
|
|
488
502
|
Number: cells[0].Number.set,
|
|
503
|
+
BigInt: cells[0].BigInt.set,
|
|
489
504
|
Object: cells[0].Object.set,
|
|
490
505
|
Promise: cells[0].Promise.set,
|
|
491
506
|
Proxy: cells[0].Proxy.set,
|
|
@@ -507,7 +522,6 @@ function observeImports(map, importName, importIndex) {
|
|
|
507
522
|
create: cells[0].create.set,
|
|
508
523
|
defineProperties: cells[0].defineProperties.set,
|
|
509
524
|
entries: cells[0].entries.set,
|
|
510
|
-
freeze: cells[0].freeze.set,
|
|
511
525
|
getOwnPropertyDescriptor: cells[0].getOwnPropertyDescriptor.set,
|
|
512
526
|
getOwnPropertyDescriptors: cells[0].getOwnPropertyDescriptors.set,
|
|
513
527
|
getOwnPropertyNames: cells[0].getOwnPropertyNames.set,
|
|
@@ -523,14 +537,20 @@ function observeImports(map, importName, importIndex) {
|
|
|
523
537
|
setPrototypeOf: cells[0].setPrototypeOf.set,
|
|
524
538
|
values: cells[0].values.set,
|
|
525
539
|
fromEntries: cells[0].fromEntries.set,
|
|
540
|
+
freeze: cells[0].freeze.set,
|
|
526
541
|
speciesSymbol: cells[0].speciesSymbol.set,
|
|
527
542
|
toStringTagSymbol: cells[0].toStringTagSymbol.set,
|
|
528
543
|
iteratorSymbol: cells[0].iteratorSymbol.set,
|
|
529
544
|
matchAllSymbol: cells[0].matchAllSymbol.set,
|
|
530
545
|
replaceSymbol: cells[0].replaceSymbol.set,
|
|
546
|
+
searchSymbol: cells[0].searchSymbol.set,
|
|
531
547
|
unscopablesSymbol: cells[0].unscopablesSymbol.set,
|
|
532
548
|
symbolKeyFor: cells[0].symbolKeyFor.set,
|
|
533
549
|
symbolFor: cells[0].symbolFor.set,
|
|
550
|
+
max: cells[0].max.set,
|
|
551
|
+
min: cells[0].min.set,
|
|
552
|
+
trunc: cells[0].trunc.set,
|
|
553
|
+
MAX_SAFE_INTEGER: cells[0].MAX_SAFE_INTEGER.set,
|
|
534
554
|
isInteger: cells[0].isInteger.set,
|
|
535
555
|
stringifyJson: cells[0].stringifyJson.set,
|
|
536
556
|
defineProperty: cells[0].defineProperty.set,
|
|
@@ -546,6 +566,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
546
566
|
isArray: cells[0].isArray.set,
|
|
547
567
|
arrayPrototype: cells[0].arrayPrototype.set,
|
|
548
568
|
arrayBufferPrototype: cells[0].arrayBufferPrototype.set,
|
|
569
|
+
dataViewPrototype: cells[0].dataViewPrototype.set,
|
|
549
570
|
mapPrototype: cells[0].mapPrototype.set,
|
|
550
571
|
proxyRevocable: cells[0].proxyRevocable.set,
|
|
551
572
|
regexpPrototype: cells[0].regexpPrototype.set,
|
|
@@ -588,8 +609,10 @@ function observeImports(map, importName, importIndex) {
|
|
|
588
609
|
iterateSet: cells[0].iterateSet.set,
|
|
589
610
|
regexpExec: cells[0].regexpExec.set,
|
|
590
611
|
regexpReplace: cells[0].regexpReplace.set,
|
|
612
|
+
regexpSearch: cells[0].regexpSearch.set,
|
|
591
613
|
matchAllRegExp: cells[0].matchAllRegExp.set,
|
|
592
614
|
sealRegexp: cells[0].sealRegexp.set,
|
|
615
|
+
freezeRegexp: cells[0].freezeRegexp.set,
|
|
593
616
|
stringEndsWith: cells[0].stringEndsWith.set,
|
|
594
617
|
stringIncludes: cells[0].stringIncludes.set,
|
|
595
618
|
stringIndexOf: cells[0].stringIndexOf.set,
|
|
@@ -911,7 +934,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
911
934
|
liveVar: {
|
|
912
935
|
},
|
|
913
936
|
onceVar: {
|
|
914
|
-
|
|
937
|
+
tameNaNSideChannel: cells[22].tameNaNSideChannel.set,
|
|
915
938
|
},
|
|
916
939
|
importMeta: {},
|
|
917
940
|
});
|
|
@@ -923,9 +946,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
923
946
|
liveVar: {
|
|
924
947
|
},
|
|
925
948
|
onceVar: {
|
|
926
|
-
|
|
927
|
-
moderateEnablements: cells[23].moderateEnablements.set,
|
|
928
|
-
severeEnablements: cells[23].severeEnablements.set,
|
|
949
|
+
default: cells[23].default.set,
|
|
929
950
|
},
|
|
930
951
|
importMeta: {},
|
|
931
952
|
});
|
|
@@ -933,12 +954,13 @@ function observeImports(map, importName, importIndex) {
|
|
|
933
954
|
imports(entries) {
|
|
934
955
|
const map = new Map(entries);
|
|
935
956
|
observeImports(map, "./commons.js", 0);
|
|
936
|
-
observeImports(map, "./enablements.js", 23);
|
|
937
957
|
},
|
|
938
958
|
liveVar: {
|
|
939
959
|
},
|
|
940
960
|
onceVar: {
|
|
941
|
-
|
|
961
|
+
minEnablements: cells[24].minEnablements.set,
|
|
962
|
+
moderateEnablements: cells[24].moderateEnablements.set,
|
|
963
|
+
severeEnablements: cells[24].severeEnablements.set,
|
|
942
964
|
},
|
|
943
965
|
importMeta: {},
|
|
944
966
|
});
|
|
@@ -946,7 +968,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
946
968
|
imports(entries) {
|
|
947
969
|
const map = new Map(entries);
|
|
948
970
|
observeImports(map, "./commons.js", 0);
|
|
949
|
-
observeImports(map, "./
|
|
971
|
+
observeImports(map, "./enablements.js", 24);
|
|
950
972
|
},
|
|
951
973
|
liveVar: {
|
|
952
974
|
},
|
|
@@ -958,24 +980,24 @@ function observeImports(map, importName, importIndex) {
|
|
|
958
980
|
functors[26]({
|
|
959
981
|
imports(entries) {
|
|
960
982
|
const map = new Map(entries);
|
|
983
|
+
observeImports(map, "./commons.js", 0);
|
|
984
|
+
observeImports(map, "./error/assert.js", 13);
|
|
961
985
|
},
|
|
962
986
|
liveVar: {
|
|
963
987
|
},
|
|
964
988
|
onceVar: {
|
|
965
|
-
|
|
989
|
+
default: cells[26].default.set,
|
|
966
990
|
},
|
|
967
991
|
importMeta: {},
|
|
968
992
|
});
|
|
969
993
|
functors[27]({
|
|
970
994
|
imports(entries) {
|
|
971
995
|
const map = new Map(entries);
|
|
972
|
-
observeImports(map, "./commons.js", 0);
|
|
973
|
-
observeImports(map, "./error/assert.js", 13);
|
|
974
996
|
},
|
|
975
997
|
liveVar: {
|
|
976
998
|
},
|
|
977
999
|
onceVar: {
|
|
978
|
-
|
|
1000
|
+
makeEvalFunction: cells[27].makeEvalFunction.set,
|
|
979
1001
|
},
|
|
980
1002
|
importMeta: {},
|
|
981
1003
|
});
|
|
@@ -983,17 +1005,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
983
1005
|
imports(entries) {
|
|
984
1006
|
const map = new Map(entries);
|
|
985
1007
|
observeImports(map, "./commons.js", 0);
|
|
986
|
-
observeImports(map, "./
|
|
987
|
-
observeImports(map, "./make-function-constructor.js", 27);
|
|
988
|
-
observeImports(map, "./permits.js", 16);
|
|
1008
|
+
observeImports(map, "./error/assert.js", 13);
|
|
989
1009
|
},
|
|
990
1010
|
liveVar: {
|
|
991
1011
|
},
|
|
992
1012
|
onceVar: {
|
|
993
|
-
|
|
994
|
-
setGlobalObjectConstantProperties: cells[28].setGlobalObjectConstantProperties.set,
|
|
995
|
-
setGlobalObjectMutableProperties: cells[28].setGlobalObjectMutableProperties.set,
|
|
996
|
-
setGlobalObjectEvaluators: cells[28].setGlobalObjectEvaluators.set,
|
|
1013
|
+
makeFunctionConstructor: cells[28].makeFunctionConstructor.set,
|
|
997
1014
|
},
|
|
998
1015
|
importMeta: {},
|
|
999
1016
|
});
|
|
@@ -1001,14 +1018,17 @@ function observeImports(map, importName, importIndex) {
|
|
|
1001
1018
|
imports(entries) {
|
|
1002
1019
|
const map = new Map(entries);
|
|
1003
1020
|
observeImports(map, "./commons.js", 0);
|
|
1004
|
-
observeImports(map, "./
|
|
1021
|
+
observeImports(map, "./make-eval-function.js", 27);
|
|
1022
|
+
observeImports(map, "./make-function-constructor.js", 28);
|
|
1023
|
+
observeImports(map, "./permits.js", 16);
|
|
1005
1024
|
},
|
|
1006
1025
|
liveVar: {
|
|
1007
1026
|
},
|
|
1008
1027
|
onceVar: {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1028
|
+
setGlobalObjectSymbolUnscopables: cells[29].setGlobalObjectSymbolUnscopables.set,
|
|
1029
|
+
setGlobalObjectConstantProperties: cells[29].setGlobalObjectConstantProperties.set,
|
|
1030
|
+
setGlobalObjectMutableProperties: cells[29].setGlobalObjectMutableProperties.set,
|
|
1031
|
+
setGlobalObjectEvaluators: cells[29].setGlobalObjectEvaluators.set,
|
|
1012
1032
|
},
|
|
1013
1033
|
importMeta: {},
|
|
1014
1034
|
});
|
|
@@ -1016,12 +1036,14 @@ function observeImports(map, importName, importIndex) {
|
|
|
1016
1036
|
imports(entries) {
|
|
1017
1037
|
const map = new Map(entries);
|
|
1018
1038
|
observeImports(map, "./commons.js", 0);
|
|
1019
|
-
observeImports(map, "./
|
|
1039
|
+
observeImports(map, "./error/assert.js", 13);
|
|
1020
1040
|
},
|
|
1021
1041
|
liveVar: {
|
|
1022
1042
|
},
|
|
1023
1043
|
onceVar: {
|
|
1024
|
-
|
|
1044
|
+
alwaysThrowHandler: cells[30].alwaysThrowHandler.set,
|
|
1045
|
+
strictScopeTerminatorHandler: cells[30].strictScopeTerminatorHandler.set,
|
|
1046
|
+
strictScopeTerminator: cells[30].strictScopeTerminator.set,
|
|
1025
1047
|
},
|
|
1026
1048
|
importMeta: {},
|
|
1027
1049
|
});
|
|
@@ -1029,12 +1051,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
1029
1051
|
imports(entries) {
|
|
1030
1052
|
const map = new Map(entries);
|
|
1031
1053
|
observeImports(map, "./commons.js", 0);
|
|
1032
|
-
observeImports(map, "./
|
|
1054
|
+
observeImports(map, "./strict-scope-terminator.js", 30);
|
|
1033
1055
|
},
|
|
1034
1056
|
liveVar: {
|
|
1035
1057
|
},
|
|
1036
1058
|
onceVar: {
|
|
1037
|
-
|
|
1059
|
+
createSloppyGlobalsScopeTerminator: cells[31].createSloppyGlobalsScopeTerminator.set,
|
|
1038
1060
|
},
|
|
1039
1061
|
importMeta: {},
|
|
1040
1062
|
});
|
|
@@ -1042,11 +1064,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
1042
1064
|
imports(entries) {
|
|
1043
1065
|
const map = new Map(entries);
|
|
1044
1066
|
observeImports(map, "./commons.js", 0);
|
|
1067
|
+
observeImports(map, "./error/assert.js", 13);
|
|
1045
1068
|
},
|
|
1046
1069
|
liveVar: {
|
|
1047
1070
|
},
|
|
1048
1071
|
onceVar: {
|
|
1049
|
-
|
|
1072
|
+
makeEvalScopeKit: cells[32].makeEvalScopeKit.set,
|
|
1050
1073
|
},
|
|
1051
1074
|
importMeta: {},
|
|
1052
1075
|
});
|
|
@@ -1054,19 +1077,11 @@ function observeImports(map, importName, importIndex) {
|
|
|
1054
1077
|
imports(entries) {
|
|
1055
1078
|
const map = new Map(entries);
|
|
1056
1079
|
observeImports(map, "./commons.js", 0);
|
|
1057
|
-
observeImports(map, "./get-source-url.js", 32);
|
|
1058
1080
|
},
|
|
1059
1081
|
liveVar: {
|
|
1060
1082
|
},
|
|
1061
1083
|
onceVar: {
|
|
1062
|
-
|
|
1063
|
-
evadeHtmlCommentTest: cells[33].evadeHtmlCommentTest.set,
|
|
1064
|
-
rejectImportExpressions: cells[33].rejectImportExpressions.set,
|
|
1065
|
-
evadeImportExpressionTest: cells[33].evadeImportExpressionTest.set,
|
|
1066
|
-
rejectSomeDirectEvalExpressions: cells[33].rejectSomeDirectEvalExpressions.set,
|
|
1067
|
-
mandatoryTransforms: cells[33].mandatoryTransforms.set,
|
|
1068
|
-
applyTransforms: cells[33].applyTransforms.set,
|
|
1069
|
-
transforms: cells[33].transforms.set,
|
|
1084
|
+
getSourceURL: cells[33].getSourceURL.set,
|
|
1070
1085
|
},
|
|
1071
1086
|
importMeta: {},
|
|
1072
1087
|
});
|
|
@@ -1074,12 +1089,19 @@ function observeImports(map, importName, importIndex) {
|
|
|
1074
1089
|
imports(entries) {
|
|
1075
1090
|
const map = new Map(entries);
|
|
1076
1091
|
observeImports(map, "./commons.js", 0);
|
|
1092
|
+
observeImports(map, "./get-source-url.js", 33);
|
|
1077
1093
|
},
|
|
1078
1094
|
liveVar: {
|
|
1079
1095
|
},
|
|
1080
1096
|
onceVar: {
|
|
1081
|
-
|
|
1082
|
-
|
|
1097
|
+
rejectHtmlComments: cells[34].rejectHtmlComments.set,
|
|
1098
|
+
evadeHtmlCommentTest: cells[34].evadeHtmlCommentTest.set,
|
|
1099
|
+
rejectImportExpressions: cells[34].rejectImportExpressions.set,
|
|
1100
|
+
evadeImportExpressionTest: cells[34].evadeImportExpressionTest.set,
|
|
1101
|
+
rejectSomeDirectEvalExpressions: cells[34].rejectSomeDirectEvalExpressions.set,
|
|
1102
|
+
mandatoryTransforms: cells[34].mandatoryTransforms.set,
|
|
1103
|
+
applyTransforms: cells[34].applyTransforms.set,
|
|
1104
|
+
transforms: cells[34].transforms.set,
|
|
1083
1105
|
},
|
|
1084
1106
|
importMeta: {},
|
|
1085
1107
|
});
|
|
@@ -1087,12 +1109,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
1087
1109
|
imports(entries) {
|
|
1088
1110
|
const map = new Map(entries);
|
|
1089
1111
|
observeImports(map, "./commons.js", 0);
|
|
1090
|
-
observeImports(map, "./scope-constants.js", 34);
|
|
1091
1112
|
},
|
|
1092
1113
|
liveVar: {
|
|
1093
1114
|
},
|
|
1094
1115
|
onceVar: {
|
|
1095
|
-
|
|
1116
|
+
isValidIdentifierName: cells[35].isValidIdentifierName.set,
|
|
1117
|
+
getScopeConstants: cells[35].getScopeConstants.set,
|
|
1096
1118
|
},
|
|
1097
1119
|
importMeta: {},
|
|
1098
1120
|
});
|
|
@@ -1100,17 +1122,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
1100
1122
|
imports(entries) {
|
|
1101
1123
|
const map = new Map(entries);
|
|
1102
1124
|
observeImports(map, "./commons.js", 0);
|
|
1103
|
-
observeImports(map, "./
|
|
1104
|
-
observeImports(map, "./sloppy-globals-scope-terminator.js", 30);
|
|
1105
|
-
observeImports(map, "./eval-scope.js", 31);
|
|
1106
|
-
observeImports(map, "./transforms.js", 33);
|
|
1107
|
-
observeImports(map, "./make-evaluate.js", 35);
|
|
1108
|
-
observeImports(map, "./error/assert.js", 13);
|
|
1125
|
+
observeImports(map, "./scope-constants.js", 35);
|
|
1109
1126
|
},
|
|
1110
1127
|
liveVar: {
|
|
1111
1128
|
},
|
|
1112
1129
|
onceVar: {
|
|
1113
|
-
|
|
1130
|
+
makeEvaluate: cells[36].makeEvaluate.set,
|
|
1114
1131
|
},
|
|
1115
1132
|
importMeta: {},
|
|
1116
1133
|
});
|
|
@@ -1118,11 +1135,17 @@ function observeImports(map, importName, importIndex) {
|
|
|
1118
1135
|
imports(entries) {
|
|
1119
1136
|
const map = new Map(entries);
|
|
1120
1137
|
observeImports(map, "./commons.js", 0);
|
|
1138
|
+
observeImports(map, "./strict-scope-terminator.js", 30);
|
|
1139
|
+
observeImports(map, "./sloppy-globals-scope-terminator.js", 31);
|
|
1140
|
+
observeImports(map, "./eval-scope.js", 32);
|
|
1141
|
+
observeImports(map, "./transforms.js", 34);
|
|
1142
|
+
observeImports(map, "./make-evaluate.js", 36);
|
|
1143
|
+
observeImports(map, "./error/assert.js", 13);
|
|
1121
1144
|
},
|
|
1122
1145
|
liveVar: {
|
|
1123
1146
|
},
|
|
1124
1147
|
onceVar: {
|
|
1125
|
-
|
|
1148
|
+
makeSafeEvaluator: cells[37].makeSafeEvaluator.set,
|
|
1126
1149
|
},
|
|
1127
1150
|
importMeta: {},
|
|
1128
1151
|
});
|
|
@@ -1134,7 +1157,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
1134
1157
|
liveVar: {
|
|
1135
1158
|
},
|
|
1136
1159
|
onceVar: {
|
|
1137
|
-
|
|
1160
|
+
tameFunctionToString: cells[38].tameFunctionToString.set,
|
|
1138
1161
|
},
|
|
1139
1162
|
importMeta: {},
|
|
1140
1163
|
});
|
|
@@ -1146,25 +1169,19 @@ function observeImports(map, importName, importIndex) {
|
|
|
1146
1169
|
liveVar: {
|
|
1147
1170
|
},
|
|
1148
1171
|
onceVar: {
|
|
1149
|
-
|
|
1172
|
+
tameDomains: cells[39].tameDomains.set,
|
|
1150
1173
|
},
|
|
1151
1174
|
importMeta: {},
|
|
1152
1175
|
});
|
|
1153
1176
|
functors[40]({
|
|
1154
1177
|
imports(entries) {
|
|
1155
1178
|
const map = new Map(entries);
|
|
1156
|
-
observeImports(map, "
|
|
1179
|
+
observeImports(map, "./commons.js", 0);
|
|
1157
1180
|
},
|
|
1158
1181
|
liveVar: {
|
|
1159
1182
|
},
|
|
1160
1183
|
onceVar: {
|
|
1161
|
-
|
|
1162
|
-
consoleOtherMethods: cells[40].consoleOtherMethods.set,
|
|
1163
|
-
makeLoggingConsoleKit: cells[40].makeLoggingConsoleKit.set,
|
|
1164
|
-
pumpLogToConsole: cells[40].pumpLogToConsole.set,
|
|
1165
|
-
makeCausalConsole: cells[40].makeCausalConsole.set,
|
|
1166
|
-
defineCausalConsoleFromLogger: cells[40].defineCausalConsoleFromLogger.set,
|
|
1167
|
-
filterConsole: cells[40].filterConsole.set,
|
|
1184
|
+
tameModuleSource: cells[40].tameModuleSource.set,
|
|
1168
1185
|
},
|
|
1169
1186
|
importMeta: {},
|
|
1170
1187
|
});
|
|
@@ -1176,7 +1193,13 @@ function observeImports(map, importName, importIndex) {
|
|
|
1176
1193
|
liveVar: {
|
|
1177
1194
|
},
|
|
1178
1195
|
onceVar: {
|
|
1179
|
-
|
|
1196
|
+
consoleLevelMethods: cells[41].consoleLevelMethods.set,
|
|
1197
|
+
consoleOtherMethods: cells[41].consoleOtherMethods.set,
|
|
1198
|
+
makeLoggingConsoleKit: cells[41].makeLoggingConsoleKit.set,
|
|
1199
|
+
pumpLogToConsole: cells[41].pumpLogToConsole.set,
|
|
1200
|
+
makeCausalConsole: cells[41].makeCausalConsole.set,
|
|
1201
|
+
defineCausalConsoleFromLogger: cells[41].defineCausalConsoleFromLogger.set,
|
|
1202
|
+
filterConsole: cells[41].filterConsole.set,
|
|
1180
1203
|
},
|
|
1181
1204
|
importMeta: {},
|
|
1182
1205
|
});
|
|
@@ -1184,14 +1207,11 @@ function observeImports(map, importName, importIndex) {
|
|
|
1184
1207
|
imports(entries) {
|
|
1185
1208
|
const map = new Map(entries);
|
|
1186
1209
|
observeImports(map, "../commons.js", 0);
|
|
1187
|
-
observeImports(map, "./assert.js", 13);
|
|
1188
|
-
observeImports(map, "./console.js", 40);
|
|
1189
|
-
observeImports(map, "./unhandled-rejection.js", 41);
|
|
1190
1210
|
},
|
|
1191
1211
|
liveVar: {
|
|
1192
1212
|
},
|
|
1193
1213
|
onceVar: {
|
|
1194
|
-
|
|
1214
|
+
makeRejectionHandlers: cells[42].makeRejectionHandlers.set,
|
|
1195
1215
|
},
|
|
1196
1216
|
importMeta: {},
|
|
1197
1217
|
});
|
|
@@ -1199,13 +1219,14 @@ function observeImports(map, importName, importIndex) {
|
|
|
1199
1219
|
imports(entries) {
|
|
1200
1220
|
const map = new Map(entries);
|
|
1201
1221
|
observeImports(map, "../commons.js", 0);
|
|
1222
|
+
observeImports(map, "./assert.js", 13);
|
|
1223
|
+
observeImports(map, "./console.js", 41);
|
|
1224
|
+
observeImports(map, "./unhandled-rejection.js", 42);
|
|
1202
1225
|
},
|
|
1203
1226
|
liveVar: {
|
|
1204
1227
|
},
|
|
1205
1228
|
onceVar: {
|
|
1206
|
-
|
|
1207
|
-
shortenCallSiteString: cells[43].shortenCallSiteString.set,
|
|
1208
|
-
tameV8ErrorConstructor: cells[43].tameV8ErrorConstructor.set,
|
|
1229
|
+
tameConsole: cells[43].tameConsole.set,
|
|
1209
1230
|
},
|
|
1210
1231
|
importMeta: {},
|
|
1211
1232
|
});
|
|
@@ -1213,75 +1234,73 @@ function observeImports(map, importName, importIndex) {
|
|
|
1213
1234
|
imports(entries) {
|
|
1214
1235
|
const map = new Map(entries);
|
|
1215
1236
|
observeImports(map, "../commons.js", 0);
|
|
1216
|
-
observeImports(map, "../permits.js", 16);
|
|
1217
|
-
observeImports(map, "./tame-v8-error-constructor.js", 43);
|
|
1218
1237
|
},
|
|
1219
1238
|
liveVar: {
|
|
1220
1239
|
},
|
|
1221
1240
|
onceVar: {
|
|
1222
|
-
|
|
1241
|
+
filterFileName: cells[44].filterFileName.set,
|
|
1242
|
+
shortenCallSiteString: cells[44].shortenCallSiteString.set,
|
|
1243
|
+
tameV8ErrorConstructor: cells[44].tameV8ErrorConstructor.set,
|
|
1223
1244
|
},
|
|
1224
1245
|
importMeta: {},
|
|
1225
1246
|
});
|
|
1226
1247
|
functors[45]({
|
|
1227
1248
|
imports(entries) {
|
|
1228
1249
|
const map = new Map(entries);
|
|
1229
|
-
observeImports(map, "
|
|
1230
|
-
observeImports(map, "
|
|
1231
|
-
observeImports(map, "./error
|
|
1250
|
+
observeImports(map, "../commons.js", 0);
|
|
1251
|
+
observeImports(map, "../permits.js", 16);
|
|
1252
|
+
observeImports(map, "./tame-v8-error-constructor.js", 44);
|
|
1232
1253
|
},
|
|
1233
1254
|
liveVar: {
|
|
1234
1255
|
},
|
|
1235
1256
|
onceVar: {
|
|
1236
|
-
|
|
1237
|
-
load: cells[45].load.set,
|
|
1238
|
-
loadNow: cells[45].loadNow.set,
|
|
1257
|
+
default: cells[45].default.set,
|
|
1239
1258
|
},
|
|
1240
1259
|
importMeta: {},
|
|
1241
1260
|
});
|
|
1242
1261
|
functors[46]({
|
|
1243
1262
|
imports(entries) {
|
|
1244
1263
|
const map = new Map(entries);
|
|
1245
|
-
observeImports(map, "
|
|
1264
|
+
observeImports(map, "@endo/env-options", 3);
|
|
1246
1265
|
observeImports(map, "./commons.js", 0);
|
|
1247
1266
|
observeImports(map, "./error/assert.js", 13);
|
|
1248
1267
|
},
|
|
1249
1268
|
liveVar: {
|
|
1250
1269
|
},
|
|
1251
1270
|
onceVar: {
|
|
1252
|
-
|
|
1253
|
-
|
|
1271
|
+
makeAlias: cells[46].makeAlias.set,
|
|
1272
|
+
load: cells[46].load.set,
|
|
1273
|
+
loadNow: cells[46].loadNow.set,
|
|
1254
1274
|
},
|
|
1255
1275
|
importMeta: {},
|
|
1256
1276
|
});
|
|
1257
1277
|
functors[47]({
|
|
1258
1278
|
imports(entries) {
|
|
1259
1279
|
const map = new Map(entries);
|
|
1280
|
+
observeImports(map, "./module-load.js", 46);
|
|
1260
1281
|
observeImports(map, "./commons.js", 0);
|
|
1261
|
-
observeImports(map, "./
|
|
1262
|
-
observeImports(map, "./make-safe-evaluator.js", 36);
|
|
1282
|
+
observeImports(map, "./error/assert.js", 13);
|
|
1263
1283
|
},
|
|
1264
1284
|
liveVar: {
|
|
1265
1285
|
},
|
|
1266
1286
|
onceVar: {
|
|
1267
|
-
|
|
1268
|
-
|
|
1287
|
+
deferExports: cells[47].deferExports.set,
|
|
1288
|
+
getDeferredExports: cells[47].getDeferredExports.set,
|
|
1269
1289
|
},
|
|
1270
1290
|
importMeta: {},
|
|
1271
1291
|
});
|
|
1272
1292
|
functors[48]({
|
|
1273
1293
|
imports(entries) {
|
|
1274
1294
|
const map = new Map(entries);
|
|
1275
|
-
observeImports(map, "./error/assert.js", 13);
|
|
1276
|
-
observeImports(map, "./module-proxy.js", 46);
|
|
1277
1295
|
observeImports(map, "./commons.js", 0);
|
|
1278
|
-
observeImports(map, "./
|
|
1296
|
+
observeImports(map, "./transforms.js", 34);
|
|
1297
|
+
observeImports(map, "./make-safe-evaluator.js", 37);
|
|
1279
1298
|
},
|
|
1280
1299
|
liveVar: {
|
|
1281
1300
|
},
|
|
1282
1301
|
onceVar: {
|
|
1283
|
-
|
|
1284
|
-
|
|
1302
|
+
provideCompartmentEvaluator: cells[48].provideCompartmentEvaluator.set,
|
|
1303
|
+
compartmentEvaluate: cells[48].compartmentEvaluate.set,
|
|
1285
1304
|
},
|
|
1286
1305
|
importMeta: {},
|
|
1287
1306
|
});
|
|
@@ -1289,37 +1308,30 @@ function observeImports(map, importName, importIndex) {
|
|
|
1289
1308
|
imports(entries) {
|
|
1290
1309
|
const map = new Map(entries);
|
|
1291
1310
|
observeImports(map, "./error/assert.js", 13);
|
|
1292
|
-
observeImports(map, "./module-
|
|
1311
|
+
observeImports(map, "./module-proxy.js", 47);
|
|
1293
1312
|
observeImports(map, "./commons.js", 0);
|
|
1313
|
+
observeImports(map, "./compartment-evaluate.js", 48);
|
|
1294
1314
|
},
|
|
1295
1315
|
liveVar: {
|
|
1296
1316
|
},
|
|
1297
1317
|
onceVar: {
|
|
1298
|
-
|
|
1299
|
-
|
|
1318
|
+
makeVirtualModuleInstance: cells[49].makeVirtualModuleInstance.set,
|
|
1319
|
+
makeModuleInstance: cells[49].makeModuleInstance.set,
|
|
1300
1320
|
},
|
|
1301
1321
|
importMeta: {},
|
|
1302
1322
|
});
|
|
1303
1323
|
functors[50]({
|
|
1304
1324
|
imports(entries) {
|
|
1305
1325
|
const map = new Map(entries);
|
|
1306
|
-
observeImports(map, "./commons.js", 0);
|
|
1307
|
-
observeImports(map, "./global-object.js", 28);
|
|
1308
1326
|
observeImports(map, "./error/assert.js", 13);
|
|
1309
|
-
observeImports(map, "./
|
|
1310
|
-
observeImports(map, "./
|
|
1311
|
-
observeImports(map, "./module-link.js", 49);
|
|
1312
|
-
observeImports(map, "./module-proxy.js", 46);
|
|
1313
|
-
observeImports(map, "./compartment-evaluate.js", 47);
|
|
1314
|
-
observeImports(map, "./make-safe-evaluator.js", 36);
|
|
1327
|
+
observeImports(map, "./module-instance.js", 49);
|
|
1328
|
+
observeImports(map, "./commons.js", 0);
|
|
1315
1329
|
},
|
|
1316
1330
|
liveVar: {
|
|
1317
1331
|
},
|
|
1318
1332
|
onceVar: {
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
compartmentOptions: cells[50].compartmentOptions.set,
|
|
1322
|
-
makeCompartmentConstructor: cells[50].makeCompartmentConstructor.set,
|
|
1333
|
+
link: cells[50].link.set,
|
|
1334
|
+
instantiate: cells[50].instantiate.set,
|
|
1323
1335
|
},
|
|
1324
1336
|
importMeta: {},
|
|
1325
1337
|
});
|
|
@@ -1327,12 +1339,22 @@ function observeImports(map, importName, importIndex) {
|
|
|
1327
1339
|
imports(entries) {
|
|
1328
1340
|
const map = new Map(entries);
|
|
1329
1341
|
observeImports(map, "./commons.js", 0);
|
|
1330
|
-
observeImports(map, "./
|
|
1342
|
+
observeImports(map, "./global-object.js", 29);
|
|
1343
|
+
observeImports(map, "./error/assert.js", 13);
|
|
1344
|
+
observeImports(map, "./permits.js", 16);
|
|
1345
|
+
observeImports(map, "./module-load.js", 46);
|
|
1346
|
+
observeImports(map, "./module-link.js", 50);
|
|
1347
|
+
observeImports(map, "./module-proxy.js", 47);
|
|
1348
|
+
observeImports(map, "./compartment-evaluate.js", 48);
|
|
1349
|
+
observeImports(map, "./make-safe-evaluator.js", 37);
|
|
1331
1350
|
},
|
|
1332
1351
|
liveVar: {
|
|
1333
1352
|
},
|
|
1334
1353
|
onceVar: {
|
|
1335
|
-
|
|
1354
|
+
InertCompartment: cells[51].InertCompartment.set,
|
|
1355
|
+
CompartmentPrototype: cells[51].CompartmentPrototype.set,
|
|
1356
|
+
compartmentOptions: cells[51].compartmentOptions.set,
|
|
1357
|
+
makeCompartmentConstructor: cells[51].makeCompartmentConstructor.set,
|
|
1336
1358
|
},
|
|
1337
1359
|
importMeta: {},
|
|
1338
1360
|
});
|
|
@@ -1340,11 +1362,12 @@ function observeImports(map, importName, importIndex) {
|
|
|
1340
1362
|
imports(entries) {
|
|
1341
1363
|
const map = new Map(entries);
|
|
1342
1364
|
observeImports(map, "./commons.js", 0);
|
|
1365
|
+
observeImports(map, "./compartment.js", 51);
|
|
1343
1366
|
},
|
|
1344
1367
|
liveVar: {
|
|
1345
1368
|
},
|
|
1346
1369
|
onceVar: {
|
|
1347
|
-
|
|
1370
|
+
getAnonymousIntrinsics: cells[52].getAnonymousIntrinsics.set,
|
|
1348
1371
|
},
|
|
1349
1372
|
importMeta: {},
|
|
1350
1373
|
});
|
|
@@ -1356,7 +1379,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
1356
1379
|
liveVar: {
|
|
1357
1380
|
},
|
|
1358
1381
|
onceVar: {
|
|
1359
|
-
|
|
1382
|
+
tameHarden: cells[53].tameHarden.set,
|
|
1360
1383
|
},
|
|
1361
1384
|
importMeta: {},
|
|
1362
1385
|
});
|
|
@@ -1368,8 +1391,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
1368
1391
|
liveVar: {
|
|
1369
1392
|
},
|
|
1370
1393
|
onceVar: {
|
|
1371
|
-
|
|
1372
|
-
tameFauxDataProperties: cells[54].tameFauxDataProperties.set,
|
|
1394
|
+
tameSymbolConstructor: cells[54].tameSymbolConstructor.set,
|
|
1373
1395
|
},
|
|
1374
1396
|
importMeta: {},
|
|
1375
1397
|
});
|
|
@@ -1381,7 +1403,8 @@ function observeImports(map, importName, importIndex) {
|
|
|
1381
1403
|
liveVar: {
|
|
1382
1404
|
},
|
|
1383
1405
|
onceVar: {
|
|
1384
|
-
|
|
1406
|
+
tameFauxDataProperty: cells[55].tameFauxDataProperty.set,
|
|
1407
|
+
tameFauxDataProperties: cells[55].tameFauxDataProperties.set,
|
|
1385
1408
|
},
|
|
1386
1409
|
importMeta: {},
|
|
1387
1410
|
});
|
|
@@ -1393,7 +1416,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
1393
1416
|
liveVar: {
|
|
1394
1417
|
},
|
|
1395
1418
|
onceVar: {
|
|
1396
|
-
|
|
1419
|
+
tameRegeneratorRuntime: cells[56].tameRegeneratorRuntime.set,
|
|
1397
1420
|
},
|
|
1398
1421
|
importMeta: {},
|
|
1399
1422
|
});
|
|
@@ -1401,17 +1424,29 @@ function observeImports(map, importName, importIndex) {
|
|
|
1401
1424
|
imports(entries) {
|
|
1402
1425
|
const map = new Map(entries);
|
|
1403
1426
|
observeImports(map, "./commons.js", 0);
|
|
1404
|
-
observeImports(map, "./error/assert.js", 13);
|
|
1405
1427
|
},
|
|
1406
1428
|
liveVar: {
|
|
1407
1429
|
},
|
|
1408
1430
|
onceVar: {
|
|
1409
|
-
|
|
1410
|
-
reportInGroup: cells[57].reportInGroup.set,
|
|
1431
|
+
shimArrayBufferTransfer: cells[57].shimArrayBufferTransfer.set,
|
|
1411
1432
|
},
|
|
1412
1433
|
importMeta: {},
|
|
1413
1434
|
});
|
|
1414
1435
|
functors[58]({
|
|
1436
|
+
imports(entries) {
|
|
1437
|
+
const map = new Map(entries);
|
|
1438
|
+
observeImports(map, "./commons.js", 0);
|
|
1439
|
+
observeImports(map, "./error/assert.js", 13);
|
|
1440
|
+
},
|
|
1441
|
+
liveVar: {
|
|
1442
|
+
},
|
|
1443
|
+
onceVar: {
|
|
1444
|
+
chooseReporter: cells[58].chooseReporter.set,
|
|
1445
|
+
reportInGroup: cells[58].reportInGroup.set,
|
|
1446
|
+
},
|
|
1447
|
+
importMeta: {},
|
|
1448
|
+
});
|
|
1449
|
+
functors[59]({
|
|
1415
1450
|
imports(entries) {
|
|
1416
1451
|
const map = new Map(entries);
|
|
1417
1452
|
observeImports(map, "@endo/env-options", 3);
|
|
@@ -1423,40 +1458,41 @@ function observeImports(map, importName, importIndex) {
|
|
|
1423
1458
|
observeImports(map, "./tame-function-constructors.js", 19);
|
|
1424
1459
|
observeImports(map, "./tame-date-constructor.js", 20);
|
|
1425
1460
|
observeImports(map, "./tame-math-object.js", 21);
|
|
1426
|
-
observeImports(map, "./tame-
|
|
1427
|
-
observeImports(map, "./
|
|
1428
|
-
observeImports(map, "./
|
|
1429
|
-
observeImports(map, "./
|
|
1430
|
-
observeImports(map, "./
|
|
1461
|
+
observeImports(map, "./tame-nan-sidechannel.js", 22);
|
|
1462
|
+
observeImports(map, "./tame-regexp-constructor.js", 23);
|
|
1463
|
+
observeImports(map, "./enable-property-overrides.js", 25);
|
|
1464
|
+
observeImports(map, "./tame-locale-methods.js", 26);
|
|
1465
|
+
observeImports(map, "./global-object.js", 29);
|
|
1466
|
+
observeImports(map, "./make-safe-evaluator.js", 37);
|
|
1431
1467
|
observeImports(map, "./permits.js", 16);
|
|
1432
|
-
observeImports(map, "./tame-function-tostring.js",
|
|
1433
|
-
observeImports(map, "./tame-domains.js",
|
|
1434
|
-
observeImports(map, "./tame-module-source.js",
|
|
1435
|
-
observeImports(map, "./error/tame-console.js",
|
|
1436
|
-
observeImports(map, "./error/tame-error-constructor.js",
|
|
1468
|
+
observeImports(map, "./tame-function-tostring.js", 38);
|
|
1469
|
+
observeImports(map, "./tame-domains.js", 39);
|
|
1470
|
+
observeImports(map, "./tame-module-source.js", 40);
|
|
1471
|
+
observeImports(map, "./error/tame-console.js", 43);
|
|
1472
|
+
observeImports(map, "./error/tame-error-constructor.js", 45);
|
|
1437
1473
|
observeImports(map, "./error/assert.js", 13);
|
|
1438
|
-
observeImports(map, "./get-anonymous-intrinsics.js",
|
|
1439
|
-
observeImports(map, "./compartment.js",
|
|
1440
|
-
observeImports(map, "./tame-harden.js",
|
|
1441
|
-
observeImports(map, "./tame-symbol-constructor.js",
|
|
1442
|
-
observeImports(map, "./tame-faux-data-properties.js",
|
|
1443
|
-
observeImports(map, "./tame-regenerator-runtime.js",
|
|
1444
|
-
observeImports(map, "./shim-arraybuffer-transfer.js",
|
|
1445
|
-
observeImports(map, "./reporting.js",
|
|
1474
|
+
observeImports(map, "./get-anonymous-intrinsics.js", 52);
|
|
1475
|
+
observeImports(map, "./compartment.js", 51);
|
|
1476
|
+
observeImports(map, "./tame-harden.js", 53);
|
|
1477
|
+
observeImports(map, "./tame-symbol-constructor.js", 54);
|
|
1478
|
+
observeImports(map, "./tame-faux-data-properties.js", 55);
|
|
1479
|
+
observeImports(map, "./tame-regenerator-runtime.js", 56);
|
|
1480
|
+
observeImports(map, "./shim-arraybuffer-transfer.js", 57);
|
|
1481
|
+
observeImports(map, "./reporting.js", 58);
|
|
1446
1482
|
},
|
|
1447
1483
|
liveVar: {
|
|
1448
1484
|
},
|
|
1449
1485
|
onceVar: {
|
|
1450
|
-
repairIntrinsics: cells[
|
|
1486
|
+
repairIntrinsics: cells[59].repairIntrinsics.set,
|
|
1451
1487
|
},
|
|
1452
1488
|
importMeta: {},
|
|
1453
1489
|
});
|
|
1454
|
-
functors[
|
|
1490
|
+
functors[60]({
|
|
1455
1491
|
imports(entries) {
|
|
1456
1492
|
const map = new Map(entries);
|
|
1457
1493
|
observeImports(map, "./assert-sloppy-mode.js", 1);
|
|
1458
1494
|
observeImports(map, "./commons.js", 0);
|
|
1459
|
-
observeImports(map, "./lockdown.js",
|
|
1495
|
+
observeImports(map, "./lockdown.js", 59);
|
|
1460
1496
|
},
|
|
1461
1497
|
liveVar: {
|
|
1462
1498
|
},
|
|
@@ -1464,14 +1500,14 @@ function observeImports(map, importName, importIndex) {
|
|
|
1464
1500
|
},
|
|
1465
1501
|
importMeta: {},
|
|
1466
1502
|
});
|
|
1467
|
-
functors[
|
|
1503
|
+
functors[61]({
|
|
1468
1504
|
imports(entries) {
|
|
1469
1505
|
const map = new Map(entries);
|
|
1470
1506
|
observeImports(map, "./commons.js", 0);
|
|
1471
|
-
observeImports(map, "./compartment.js",
|
|
1472
|
-
observeImports(map, "./tame-function-tostring.js",
|
|
1507
|
+
observeImports(map, "./compartment.js", 51);
|
|
1508
|
+
observeImports(map, "./tame-function-tostring.js", 38);
|
|
1473
1509
|
observeImports(map, "./intrinsics.js", 17);
|
|
1474
|
-
observeImports(map, "./reporting.js",
|
|
1510
|
+
observeImports(map, "./reporting.js", 58);
|
|
1475
1511
|
},
|
|
1476
1512
|
liveVar: {
|
|
1477
1513
|
},
|
|
@@ -1479,7 +1515,7 @@ function observeImports(map, importName, importIndex) {
|
|
|
1479
1515
|
},
|
|
1480
1516
|
importMeta: {},
|
|
1481
1517
|
});
|
|
1482
|
-
functors[
|
|
1518
|
+
functors[62]({
|
|
1483
1519
|
imports(entries) {
|
|
1484
1520
|
const map = new Map(entries);
|
|
1485
1521
|
observeImports(map, "./commons.js", 0);
|
|
@@ -1491,11 +1527,11 @@ function observeImports(map, importName, importIndex) {
|
|
|
1491
1527
|
},
|
|
1492
1528
|
importMeta: {},
|
|
1493
1529
|
});
|
|
1494
|
-
functors[
|
|
1530
|
+
functors[63]({
|
|
1495
1531
|
imports(entries) {
|
|
1496
1532
|
const map = new Map(entries);
|
|
1497
1533
|
observeImports(map, "./commons.js", 0);
|
|
1498
|
-
observeImports(map, "./error/console.js",
|
|
1534
|
+
observeImports(map, "./error/console.js", 41);
|
|
1499
1535
|
observeImports(map, "./error/assert.js", 13);
|
|
1500
1536
|
},
|
|
1501
1537
|
liveVar: {
|
|
@@ -1504,13 +1540,13 @@ function observeImports(map, importName, importIndex) {
|
|
|
1504
1540
|
},
|
|
1505
1541
|
importMeta: {},
|
|
1506
1542
|
});
|
|
1507
|
-
functors[
|
|
1543
|
+
functors[64]({
|
|
1508
1544
|
imports(entries) {
|
|
1509
1545
|
const map = new Map(entries);
|
|
1510
|
-
observeImports(map, "./src/lockdown-shim.js",
|
|
1511
|
-
observeImports(map, "./src/compartment-shim.js",
|
|
1512
|
-
observeImports(map, "./src/assert-shim.js",
|
|
1513
|
-
observeImports(map, "./src/console-shim.js",
|
|
1546
|
+
observeImports(map, "./src/lockdown-shim.js", 60);
|
|
1547
|
+
observeImports(map, "./src/compartment-shim.js", 61);
|
|
1548
|
+
observeImports(map, "./src/assert-shim.js", 62);
|
|
1549
|
+
observeImports(map, "./src/console-shim.js", 63);
|
|
1514
1550
|
},
|
|
1515
1551
|
liveVar: {
|
|
1516
1552
|
},
|
|
@@ -1550,11 +1586,14 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
|
|
|
1550
1586
|
ArrayBuffer,
|
|
1551
1587
|
Date,
|
|
1552
1588
|
FinalizationRegistry,
|
|
1553
|
-
|
|
1589
|
+
// Renamed to FERAL_* because it enables the NaN side-channel
|
|
1590
|
+
Float64Array: FERAL_FLOAT64_ARRAY,
|
|
1591
|
+
DataView,
|
|
1554
1592
|
JSON,
|
|
1555
1593
|
Map,
|
|
1556
1594
|
Math,
|
|
1557
1595
|
Number,
|
|
1596
|
+
BigInt,
|
|
1558
1597
|
Object,
|
|
1559
1598
|
Promise,
|
|
1560
1599
|
Proxy,
|
|
@@ -1566,7 +1605,7 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
|
|
|
1566
1605
|
Uint8Array,
|
|
1567
1606
|
WeakMap,
|
|
1568
1607
|
WeakSet,
|
|
1569
|
-
} = globalThis;$h͏_once.Array(Array);$h͏_once.ArrayBuffer(ArrayBuffer);$h͏_once.Date(Date);$h͏_once.FinalizationRegistry(FinalizationRegistry);$h͏_once.
|
|
1608
|
+
} = globalThis;$h͏_once.Array(Array);$h͏_once.ArrayBuffer(ArrayBuffer);$h͏_once.Date(Date);$h͏_once.FinalizationRegistry(FinalizationRegistry);$h͏_once.FERAL_FLOAT64_ARRAY(FERAL_FLOAT64_ARRAY);$h͏_once.DataView(DataView);$h͏_once.JSON(JSON);$h͏_once.Map(Map);$h͏_once.Math(Math);$h͏_once.Number(Number);$h͏_once.BigInt(BigInt);$h͏_once.Object(Object);$h͏_once.Promise(Promise);$h͏_once.Proxy(Proxy);$h͏_once.Reflect(Reflect);$h͏_once.FERAL_REG_EXP(FERAL_REG_EXP);$h͏_once.Set(Set);$h͏_once.String(String);$h͏_once.Symbol(Symbol);$h͏_once.Uint8Array(Uint8Array);$h͏_once.WeakMap(WeakMap);$h͏_once.WeakSet(WeakSet);
|
|
1570
1609
|
|
|
1571
1610
|
const {
|
|
1572
1611
|
// The feral Error constructor is safe for internal use, but must not be
|
|
@@ -1585,7 +1624,6 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
|
|
|
1585
1624
|
create,
|
|
1586
1625
|
defineProperties,
|
|
1587
1626
|
entries,
|
|
1588
|
-
freeze,
|
|
1589
1627
|
getOwnPropertyDescriptor,
|
|
1590
1628
|
getOwnPropertyDescriptors,
|
|
1591
1629
|
getOwnPropertyNames,
|
|
@@ -1601,7 +1639,18 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
|
|
|
1601
1639
|
setPrototypeOf,
|
|
1602
1640
|
values,
|
|
1603
1641
|
fromEntries,
|
|
1604
|
-
} = Object
|
|
1642
|
+
} = Object;
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* For use with any value except a regular expression (@see {@link sealRegexp}
|
|
1646
|
+
* and {@link freezeRegexp}).
|
|
1647
|
+
*
|
|
1648
|
+
* @type { &
|
|
1649
|
+
* ((obj: RegExp) => void) &
|
|
1650
|
+
* typeof Object.freeze
|
|
1651
|
+
* }
|
|
1652
|
+
*/$h͏_once.assign(assign);$h͏_once.create(create);$h͏_once.defineProperties(defineProperties);$h͏_once.entries(entries);$h͏_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h͏_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h͏_once.getOwnPropertyNames(getOwnPropertyNames);$h͏_once.getPrototypeOf(getPrototypeOf);$h͏_once.is(is);$h͏_once.isFrozen(isFrozen);$h͏_once.isSealed(isSealed);$h͏_once.isExtensible(isExtensible);$h͏_once.keys(keys);$h͏_once.objectPrototype(objectPrototype);$h͏_once.seal(seal);$h͏_once.preventExtensions(preventExtensions);$h͏_once.setPrototypeOf(setPrototypeOf);$h͏_once.values(values);$h͏_once.fromEntries(fromEntries);
|
|
1653
|
+
const freeze = /** @type {any} */ (Object.freeze);$h͏_once.freeze(freeze);
|
|
1605
1654
|
|
|
1606
1655
|
const {
|
|
1607
1656
|
species: speciesSymbol,
|
|
@@ -1609,12 +1658,15 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
|
|
|
1609
1658
|
iterator: iteratorSymbol,
|
|
1610
1659
|
matchAll: matchAllSymbol,
|
|
1611
1660
|
replace: replaceSymbol,
|
|
1661
|
+
search: searchSymbol,
|
|
1612
1662
|
unscopables: unscopablesSymbol,
|
|
1613
1663
|
keyFor: symbolKeyFor,
|
|
1614
1664
|
for: symbolFor,
|
|
1615
|
-
} = Symbol;$h͏_once.speciesSymbol(speciesSymbol);$h͏_once.toStringTagSymbol(toStringTagSymbol);$h͏_once.iteratorSymbol(iteratorSymbol);$h͏_once.matchAllSymbol(matchAllSymbol);$h͏_once.replaceSymbol(replaceSymbol);$h͏_once.unscopablesSymbol(unscopablesSymbol);$h͏_once.symbolKeyFor(symbolKeyFor);$h͏_once.symbolFor(symbolFor);
|
|
1665
|
+
} = Symbol;$h͏_once.speciesSymbol(speciesSymbol);$h͏_once.toStringTagSymbol(toStringTagSymbol);$h͏_once.iteratorSymbol(iteratorSymbol);$h͏_once.matchAllSymbol(matchAllSymbol);$h͏_once.replaceSymbol(replaceSymbol);$h͏_once.searchSymbol(searchSymbol);$h͏_once.unscopablesSymbol(unscopablesSymbol);$h͏_once.symbolKeyFor(symbolKeyFor);$h͏_once.symbolFor(symbolFor);
|
|
1666
|
+
|
|
1667
|
+
const { max, min, trunc } = Math;$h͏_once.max(max);$h͏_once.min(min);$h͏_once.trunc(trunc);
|
|
1616
1668
|
|
|
1617
|
-
const { isInteger } = Number;$h͏_once.isInteger(isInteger);
|
|
1669
|
+
const { MAX_SAFE_INTEGER, isInteger } = Number;$h͏_once.MAX_SAFE_INTEGER(MAX_SAFE_INTEGER);$h͏_once.isInteger(isInteger);
|
|
1618
1670
|
|
|
1619
1671
|
const { stringify: stringifyJson } = JSON;
|
|
1620
1672
|
|
|
@@ -1656,6 +1708,7 @@ $h͏_once.stringifyJson(stringifyJson);const{defineProperty:originalDefineProper
|
|
|
1656
1708
|
|
|
1657
1709
|
const { isArray, prototype: arrayPrototype } = Array;$h͏_once.isArray(isArray);$h͏_once.arrayPrototype(arrayPrototype);
|
|
1658
1710
|
const { prototype: arrayBufferPrototype } = ArrayBuffer;$h͏_once.arrayBufferPrototype(arrayBufferPrototype);
|
|
1711
|
+
const { prototype: dataViewPrototype } = DataView;$h͏_once.dataViewPrototype(dataViewPrototype);
|
|
1659
1712
|
const { prototype: mapPrototype } = Map;$h͏_once.mapPrototype(mapPrototype);
|
|
1660
1713
|
const { revocable: proxyRevocable } = Proxy;$h͏_once.proxyRevocable(proxyRevocable);
|
|
1661
1714
|
const { prototype: regexpPrototype } = RegExp;$h͏_once.regexpPrototype(regexpPrototype);
|
|
@@ -1757,6 +1810,7 @@ $h͏_once.iterateMap(iterateMap);const setAdd=uncurryThis(setPrototype.add);$h͏
|
|
|
1757
1810
|
* vulnerable to RegExp.prototype poisoning.
|
|
1758
1811
|
*/$h͏_once.iterateSet(iterateSet);
|
|
1759
1812
|
const regexpExec = uncurryThis(regexpPrototype.exec);
|
|
1813
|
+
|
|
1760
1814
|
/**
|
|
1761
1815
|
* @type { &
|
|
1762
1816
|
* ((thisArg: RegExp, string: string, replaceValue: string) => string) &
|
|
@@ -1765,24 +1819,60 @@ $h͏_once.iterateMap(iterateMap);const setAdd=uncurryThis(setPrototype.add);$h͏
|
|
|
1765
1819
|
*/$h͏_once.regexpExec(regexpExec);
|
|
1766
1820
|
const regexpReplace = /** @type {any} */ (
|
|
1767
1821
|
uncurryThis(regexpPrototype[replaceSymbol])
|
|
1768
|
-
)
|
|
1822
|
+
);
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* `regexpSearch` can be used with a frozen non-global non-sticky RegExp.
|
|
1826
|
+
*
|
|
1827
|
+
* @type {(thisArg: RegExp, string: string) => number}
|
|
1828
|
+
*/$h͏_once.regexpReplace(regexpReplace);
|
|
1829
|
+
const regexpSearch = uncurryThis(regexpPrototype[searchSymbol]);
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* `matchAll` internally creates a new RegExp vulnerable to prototype poisoning,
|
|
1833
|
+
* but this function is still needed to reach %RegExpStringIteratorPrototype%.
|
|
1834
|
+
* @private
|
|
1835
|
+
*/$h͏_once.regexpSearch(regexpSearch);
|
|
1769
1836
|
const matchAllRegExp = uncurryThis(regexpPrototype[matchAllSymbol]);$h͏_once.matchAllRegExp(matchAllRegExp);
|
|
1770
|
-
|
|
1771
|
-
|
|
1837
|
+
|
|
1838
|
+
const regexpDescriptors = getOwnPropertyDescriptors(regexpPrototype);
|
|
1772
1839
|
arrayForEach(ownKeys(regexpDescriptors), key => {
|
|
1773
1840
|
const desc = regexpDescriptors[/** @type {any} */ (key)];
|
|
1774
1841
|
desc.configurable = false;
|
|
1775
1842
|
if (desc.writable) desc.writable = false;
|
|
1776
1843
|
});
|
|
1844
|
+
// Don't follow Symbol.species
|
|
1845
|
+
// https://tc39.es/ecma262/multipage/abstract-operations.html#sec-speciesconstructor
|
|
1846
|
+
defineProperty(regexpDescriptors, 'constructor', {
|
|
1847
|
+
value: undefined,
|
|
1848
|
+
enumerable: false,
|
|
1849
|
+
configurable: false,
|
|
1850
|
+
writable: false,
|
|
1851
|
+
});
|
|
1852
|
+
|
|
1777
1853
|
/**
|
|
1778
1854
|
* Protect a RegExp instance against RegExp.prototype poisoning ("exec",
|
|
1779
|
-
* "flags", Symbol.replace, etc.)
|
|
1855
|
+
* "flags", Symbol.replace, etc.) while still maintaining mutability of its
|
|
1856
|
+
* "lastIndex" property (which is necessary with flags "g" and/or "y" for some
|
|
1857
|
+
* operations, most notably {@link regexpReplace}).
|
|
1858
|
+
*
|
|
1780
1859
|
* @type {<T extends RegExp>(regexp: T) => T}
|
|
1781
1860
|
*/
|
|
1782
1861
|
const sealRegexp = regexp =>
|
|
1783
1862
|
seal(defineProperties(regexp, regexpDescriptors));
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* Protect a RegExp instance against RegExp.prototype poisoning ("exec",
|
|
1866
|
+
* "flags", Symbol.replace, etc.) and freeze its "lastIndex" property, rendering
|
|
1867
|
+
* it fully inert but (absent flags "g" and/or "y") still usable by
|
|
1868
|
+
* {@link regexpExec} and {@link regexpSearch}.
|
|
1869
|
+
*
|
|
1870
|
+
* @type {<T extends RegExp>(regexp: T) => T}
|
|
1871
|
+
*/$h͏_once.sealRegexp(sealRegexp);
|
|
1872
|
+
const freezeRegexp = regexp =>
|
|
1873
|
+
freeze(/** @type {any} */ (defineProperties(regexp, regexpDescriptors)));
|
|
1784
1874
|
//
|
|
1785
|
-
$h͏_once.
|
|
1875
|
+
$h͏_once.freezeRegexp(freezeRegexp);const stringEndsWith=uncurryThis(stringPrototype.endsWith);$h͏_once.stringEndsWith(stringEndsWith);
|
|
1786
1876
|
const stringIncludes = uncurryThis(stringPrototype.includes);$h͏_once.stringIncludes(stringIncludes);
|
|
1787
1877
|
const stringIndexOf = uncurryThis(stringPrototype.indexOf);$h͏_once.stringIndexOf(stringIndexOf);
|
|
1788
1878
|
const stringMatch = uncurryThis(stringPrototype.match);
|
|
@@ -1907,7 +1997,7 @@ const makeTypeError = () => {
|
|
|
1907
1997
|
null.null;
|
|
1908
1998
|
throw TypeError('obligatory'); // To convince the type flow inferrence.
|
|
1909
1999
|
} catch (error) {
|
|
1910
|
-
return error;
|
|
2000
|
+
return /** @type {TypeError} */ (error);
|
|
1911
2001
|
}
|
|
1912
2002
|
};
|
|
1913
2003
|
|
|
@@ -1980,9 +2070,10 @@ const getAsyncGeneratorFunctionInstance = () => {
|
|
|
1980
2070
|
'return (async function* AsyncGeneratorFunctionInstance() {})',
|
|
1981
2071
|
)();
|
|
1982
2072
|
} catch (error) {
|
|
2073
|
+
const err = /** @type {Error} */ (error);
|
|
1983
2074
|
// Note: `Error.prototype.jsEngine` is only set by React Native runtime, not Hermes:
|
|
1984
2075
|
// https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/hermes/executor/HermesExecutorFactory.cpp#L224-L230
|
|
1985
|
-
if (
|
|
2076
|
+
if (err.name === 'SyntaxError') {
|
|
1986
2077
|
// Swallows Hermes error `async generators are unsupported` at runtime.
|
|
1987
2078
|
// Note: `console` is not a JS built-in, so Hermes engine throws:
|
|
1988
2079
|
// Uncaught ReferenceError: Property 'console' doesn't exist
|
|
@@ -1990,11 +2081,11 @@ const getAsyncGeneratorFunctionInstance = () => {
|
|
|
1990
2081
|
// However React Native provides a `console` implementation when setting up error handling:
|
|
1991
2082
|
// https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/InitializeCore.js
|
|
1992
2083
|
return undefined;
|
|
1993
|
-
} else if (
|
|
2084
|
+
} else if (err.name === 'EvalError') {
|
|
1994
2085
|
// eslint-disable-next-line no-empty-function
|
|
1995
2086
|
return async function* AsyncGeneratorFunctionInstance() {};
|
|
1996
2087
|
} else {
|
|
1997
|
-
throw
|
|
2088
|
+
throw err;
|
|
1998
2089
|
}
|
|
1999
2090
|
}
|
|
2000
2091
|
};
|
|
@@ -2012,7 +2103,8 @@ const getAsyncGeneratorFunctionInstance = () => {
|
|
|
2012
2103
|
// === 1. ses ./src/assert-sloppy-mode.js ===
|
|
2013
2104
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);
|
|
2014
2105
|
|
|
2015
|
-
/**
|
|
2106
|
+
/** @this {unknown} */
|
|
2107
|
+
// getThis returns globalThis in sloppy mode or undefined in strict mode.
|
|
2016
2108
|
function getThis() {
|
|
2017
2109
|
return this;
|
|
2018
2110
|
}
|
|
@@ -3304,7 +3396,7 @@ freeze(makeNoteLogArgsArrayKit);
|
|
|
3304
3396
|
})()
|
|
3305
3397
|
,
|
|
3306
3398
|
// === 13. ses ./src/error/assert.js ===
|
|
3307
|
-
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,globalThis,is,isError,
|
|
3399
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,freezeRegexp,globalThis,is,isError,regexpSearch,stringEndsWith,stringIndexOf,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,AggregateError,getOwnPropertyDescriptors,ownKeys,create,objectPrototype,hasOwn,an,bestEffortStringify,makeNoteLogArgsArrayKit;$h͏_imports([["../commons.js", [["RangeError",[$h͏_a => (RangeError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["regexpSearch",[$h͏_a => (regexpSearch = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["stringIndexOf",[$h͏_a => (stringIndexOf = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["weakmapDelete",[$h͏_a => (weakmapDelete = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["AggregateError",[$h͏_a => (AggregateError = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]],["./stringify-utils.js", [["an",[$h͏_a => (an = $h͏_a)]],["bestEffortStringify",[$h͏_a => (bestEffortStringify = $h͏_a)]]]],["./types.js", []],["./internal-types.js", []],["./note-log-args.js", [["makeNoteLogArgsArrayKit",[$h͏_a => (makeNoteLogArgsArrayKit = $h͏_a)]]]]]);
|
|
3308
3400
|
|
|
3309
3401
|
|
|
3310
3402
|
|
|
@@ -3380,13 +3472,13 @@ const quote = (value, spaces = undefined) => {
|
|
|
3380
3472
|
};$h͏_once.quote(quote);
|
|
3381
3473
|
freeze(quote);
|
|
3382
3474
|
|
|
3383
|
-
const canBeBare =
|
|
3475
|
+
const canBeBare = freezeRegexp(/^[\w:-]( ?[\w:-])*$/);
|
|
3384
3476
|
|
|
3385
3477
|
/**
|
|
3386
3478
|
* @type {AssertionUtilities['bare']}
|
|
3387
3479
|
*/
|
|
3388
3480
|
const bare = (text, spaces = undefined) => {
|
|
3389
|
-
if (typeof text !== 'string' ||
|
|
3481
|
+
if (typeof text !== 'string' || regexpSearch(canBeBare, text) === -1) {
|
|
3390
3482
|
return quote(text, spaces);
|
|
3391
3483
|
}
|
|
3392
3484
|
const result = freeze({
|
|
@@ -3507,9 +3599,6 @@ const unredactedDetails = (template, ...args) => {
|
|
|
3507
3599
|
freeze(unredactedDetails);
|
|
3508
3600
|
|
|
3509
3601
|
|
|
3510
|
-
const leadingSpacePattern = sealRegexp(/^ /);
|
|
3511
|
-
const trailingSpacePattern = sealRegexp(/ $/);
|
|
3512
|
-
|
|
3513
3602
|
/**
|
|
3514
3603
|
* Get arguments suitable for a console logger function (e.g., `console.error`)
|
|
3515
3604
|
* from `details` template literal contents, unquoting quoted substitution
|
|
@@ -3527,20 +3616,18 @@ const getLogArgs = ({ template, args }) => {
|
|
|
3527
3616
|
}
|
|
3528
3617
|
// Remove substitution-adjacent spaces from template fixed-string parts
|
|
3529
3618
|
// (since console logging inserts its own argument-separating spaces).
|
|
3530
|
-
const prevLiteralPart =
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
)
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
const
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
);
|
|
3543
|
-
arrayPush(logArgs, arg, nextLiteralPart);
|
|
3619
|
+
const prevLiteralPart = arrayPop(logArgs) || '';
|
|
3620
|
+
const trimmedPrev = stringEndsWith(prevLiteralPart, ' ')
|
|
3621
|
+
? stringSlice(prevLiteralPart, 0, -1)
|
|
3622
|
+
: prevLiteralPart;
|
|
3623
|
+
if (trimmedPrev !== '') {
|
|
3624
|
+
arrayPush(logArgs, trimmedPrev);
|
|
3625
|
+
}
|
|
3626
|
+
const nextLiteralPart = template[i + 1];
|
|
3627
|
+
const trimmedNext = stringStartsWith(nextLiteralPart, ' ')
|
|
3628
|
+
? stringSlice(nextLiteralPart, 1)
|
|
3629
|
+
: nextLiteralPart;
|
|
3630
|
+
arrayPush(logArgs, arg, trimmedNext);
|
|
3544
3631
|
}
|
|
3545
3632
|
if (logArgs[logArgs.length - 1] === '') {
|
|
3546
3633
|
arrayPop(logArgs);
|
|
@@ -4239,6 +4326,7 @@ const freezeTypedArray = array => {
|
|
|
4239
4326
|
try {
|
|
4240
4327
|
delete obj[prop];
|
|
4241
4328
|
} catch (err) {
|
|
4329
|
+
const reason = /** @type {string | object} */ (err);
|
|
4242
4330
|
if (hasOwn(obj, prop)) {
|
|
4243
4331
|
if (typeof obj === 'function' && prop === 'prototype') {
|
|
4244
4332
|
obj.prototype = undefined;
|
|
@@ -4247,9 +4335,9 @@ const freezeTypedArray = array => {
|
|
|
4247
4335
|
return;
|
|
4248
4336
|
}
|
|
4249
4337
|
}
|
|
4250
|
-
error(`failed to delete ${subPath}`,
|
|
4338
|
+
error(`failed to delete ${subPath}`, reason);
|
|
4251
4339
|
} else {
|
|
4252
|
-
error(`deleting ${subPath} threw`,
|
|
4340
|
+
error(`deleting ${subPath} threw`, reason);
|
|
4253
4341
|
}
|
|
4254
4342
|
throw err;
|
|
4255
4343
|
}
|
|
@@ -4318,10 +4406,7 @@ const freezeTypedArray = array => {
|
|
|
4318
4406
|
Boolean: 'Boolean',
|
|
4319
4407
|
DataView: 'DataView',
|
|
4320
4408
|
EvalError: 'EvalError',
|
|
4321
|
-
|
|
4322
|
-
Float16Array: 'Float16Array',
|
|
4323
|
-
Float32Array: 'Float32Array',
|
|
4324
|
-
Float64Array: 'Float64Array',
|
|
4409
|
+
|
|
4325
4410
|
Int8Array: 'Int8Array',
|
|
4326
4411
|
Int16Array: 'Int16Array',
|
|
4327
4412
|
Int32Array: 'Int32Array',
|
|
@@ -4403,6 +4488,18 @@ const freezeTypedArray = array => {
|
|
|
4403
4488
|
|
|
4404
4489
|
Math: '%InitialMath%',
|
|
4405
4490
|
|
|
4491
|
+
// We move these from universalPropertyNames because the NaN side channel
|
|
4492
|
+
// means that they are not quite harmless.
|
|
4493
|
+
// We move them to initialGlobalPropertyNames so that they'll still be
|
|
4494
|
+
// included in the primordials, repaired, and hardened. Thus, they
|
|
4495
|
+
// can be endowed into compartments without hazard beyond the
|
|
4496
|
+
// NaN side channel.
|
|
4497
|
+
//
|
|
4498
|
+
// // https://github.com/tc39/proposal-float16array
|
|
4499
|
+
Float16Array: 'Float16Array',
|
|
4500
|
+
Float32Array: 'Float32Array',
|
|
4501
|
+
Float64Array: 'Float64Array',
|
|
4502
|
+
|
|
4406
4503
|
// ESNext
|
|
4407
4504
|
|
|
4408
4505
|
// From Error-stack proposal
|
|
@@ -4588,7 +4685,7 @@ arrayForEach(['caller', 'arguments'], prop => {
|
|
|
4588
4685
|
strict[prop];
|
|
4589
4686
|
} catch (e) {
|
|
4590
4687
|
// https://github.com/facebook/hermes/blob/main/test/hermes/function-non-strict.js
|
|
4591
|
-
if (e.message === 'Restricted in strict mode') {
|
|
4688
|
+
if (/** @type {Error} */ (e).message === 'Restricted in strict mode') {
|
|
4592
4689
|
// Fixed in Static Hermes: https://github.com/facebook/hermes/issues/1582
|
|
4593
4690
|
FunctionInstance[prop] = accessor;
|
|
4594
4691
|
}
|
|
@@ -5115,6 +5212,8 @@ const CommonMath = {
|
|
|
5115
5212
|
getYear: fn,
|
|
5116
5213
|
setYear: fn,
|
|
5117
5214
|
toGMTString: fn,
|
|
5215
|
+
|
|
5216
|
+
toTemporalInstant: false,
|
|
5118
5217
|
},
|
|
5119
5218
|
|
|
5120
5219
|
// Text Processing
|
|
@@ -5503,6 +5602,8 @@ const CommonMath = {
|
|
|
5503
5602
|
entries: fn,
|
|
5504
5603
|
forEach: fn,
|
|
5505
5604
|
get: fn,
|
|
5605
|
+
getOrInsert: fn,
|
|
5606
|
+
getOrInsertComputed: fn,
|
|
5506
5607
|
has: fn,
|
|
5507
5608
|
keys: fn,
|
|
5508
5609
|
set: fn,
|
|
@@ -5574,6 +5675,8 @@ const CommonMath = {
|
|
|
5574
5675
|
constructor: 'WeakMap',
|
|
5575
5676
|
delete: fn,
|
|
5576
5677
|
get: fn,
|
|
5678
|
+
getOrInsert: fn,
|
|
5679
|
+
getOrInsertComputed: fn,
|
|
5577
5680
|
has: fn,
|
|
5578
5681
|
set: fn,
|
|
5579
5682
|
'@@toStringTag': 'string',
|
|
@@ -6831,7 +6934,263 @@ function sampleGlobals(globalObject, newPropertyNames) {
|
|
|
6831
6934
|
}$h͏_once.default( tameMathObject);
|
|
6832
6935
|
})()
|
|
6833
6936
|
,
|
|
6834
|
-
// === 22. ses ./src/tame-
|
|
6937
|
+
// === 22. ses ./src/tame-nan-sidechannel.js ===
|
|
6938
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,dataViewPrototype,MAX_SAFE_INTEGER,apply,defineProperty,entries,getOwnPropertyDescriptor,hasOwn,is,max,trunc,uncurryThis;$h͏_imports([["./commons.js", [["RangeError",[$h͏_a => (RangeError = $h͏_a)]],["dataViewPrototype",[$h͏_a => (dataViewPrototype = $h͏_a)]],["MAX_SAFE_INTEGER",[$h͏_a => (MAX_SAFE_INTEGER = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["max",[$h͏_a => (max = $h͏_a)]],["trunc",[$h͏_a => (trunc = $h͏_a)]],["uncurryThis",[$h͏_a => (uncurryThis = $h͏_a)]]]]]);
|
|
6939
|
+
|
|
6940
|
+
|
|
6941
|
+
|
|
6942
|
+
|
|
6943
|
+
|
|
6944
|
+
|
|
6945
|
+
|
|
6946
|
+
|
|
6947
|
+
|
|
6948
|
+
|
|
6949
|
+
|
|
6950
|
+
|
|
6951
|
+
|
|
6952
|
+
|
|
6953
|
+
/**
|
|
6954
|
+
* These `FERAL*` methods open up the NaN side-channel on some platforms,
|
|
6955
|
+
* like v8. Thus, we need to encapsulate them and replace them with wrappers
|
|
6956
|
+
* that canonicalize NaNs.
|
|
6957
|
+
*/
|
|
6958
|
+
const {
|
|
6959
|
+
setFloat16: FERAL_SET_FLOAT16,
|
|
6960
|
+
setFloat32: FERAL_SET_FLOAT32,
|
|
6961
|
+
setFloat64: FERAL_SET_FLOAT64,
|
|
6962
|
+
|
|
6963
|
+
setUint16,
|
|
6964
|
+
setUint32,
|
|
6965
|
+
setBigUint64,
|
|
6966
|
+
} = dataViewPrototype;
|
|
6967
|
+
|
|
6968
|
+
const dataViewGetBuffer = uncurryThis(
|
|
6969
|
+
// @ts-expect-error we know it is there on all conforming platforms
|
|
6970
|
+
getOwnPropertyDescriptor(dataViewPrototype, 'buffer').get,
|
|
6971
|
+
);
|
|
6972
|
+
|
|
6973
|
+
/**
|
|
6974
|
+
* See https://webidl.spec.whatwg.org/#js-unrestricted-double which implies
|
|
6975
|
+
* that this is the canonical NaN for web standards.
|
|
6976
|
+
* Casual googling strongly suggests that this is also the cosmWasm
|
|
6977
|
+
* canonical NaN. But I have not yet found an authoritative page stating this.
|
|
6978
|
+
*
|
|
6979
|
+
* As noted there, WebIDL choses this value because
|
|
6980
|
+
* > The `NaN` value ... is chosen simply because it is the quiet NaN
|
|
6981
|
+
* > with the lowest value when its bit pattern is interpreted as an 64-bit
|
|
6982
|
+
* > unsigned integer.
|
|
6983
|
+
*
|
|
6984
|
+
* See https://github.com/endojs/endo/pull/3214#discussion_r3155852021
|
|
6985
|
+
*/
|
|
6986
|
+
const canonicalNaN64Encoding = 0x7ff8000000000000n;
|
|
6987
|
+
|
|
6988
|
+
/**
|
|
6989
|
+
* As of this writing (April 29, 2026) all implementations agree that a
|
|
6990
|
+
* ***literal*** `NaN` seems to encode in 32 bits as `0x7fc00000`.
|
|
6991
|
+
* See https://github.com/endojs/endo/pull/3214#discussion_r3162974396
|
|
6992
|
+
*
|
|
6993
|
+
* Applying WebIDL's rationale for the 64 bit float
|
|
6994
|
+
* > The `NaN` value ... is chosen simply because it is the quiet NaN
|
|
6995
|
+
* > with the lowest value when its bit pattern is interpreted as an 64-bit
|
|
6996
|
+
* > unsigned integer.
|
|
6997
|
+
*
|
|
6998
|
+
* to the 32 bit case agrees with the choice the implementations make
|
|
6999
|
+
* for the 32 bit encoding of a ***literal*** `NaN`.
|
|
7000
|
+
*
|
|
7001
|
+
* See https://github.com/endojs/endo/pull/3214#discussion_r3155852021
|
|
7002
|
+
*/
|
|
7003
|
+
const canonicalNaN32Encoding = 0x7fc00000;
|
|
7004
|
+
|
|
7005
|
+
/**
|
|
7006
|
+
* As of this writing (April 29, 2026) all implementations that implement
|
|
7007
|
+
* float16 (with the almost surely unintentional exception of QuickJS),
|
|
7008
|
+
* agree that a ***literal*** `NaN` seems to encode in 16 bits as `0x7e00`.
|
|
7009
|
+
* See https://github.com/endojs/endo/pull/3214#discussion_r3162974396
|
|
7010
|
+
*
|
|
7011
|
+
* Applying WebIDL's rationale for the 64 bit float
|
|
7012
|
+
* > The `NaN` value ... is chosen simply because it is the quiet NaN
|
|
7013
|
+
* > with the lowest value when its bit pattern is interpreted as an 64-bit
|
|
7014
|
+
* > unsigned integer.
|
|
7015
|
+
*
|
|
7016
|
+
* to the 16 bit case agrees with the choice those implementations make
|
|
7017
|
+
* for the 16 bit encoding of a ***literal*** `NaN`.
|
|
7018
|
+
*
|
|
7019
|
+
* See https://github.com/endojs/endo/pull/3214#discussion_r3155852021
|
|
7020
|
+
*/
|
|
7021
|
+
const canonicalNaN16Encoding = 0x7e00;
|
|
7022
|
+
|
|
7023
|
+
/**
|
|
7024
|
+
* Perform `RequireInternalSlot(obj, [[DataView]])` as needed in
|
|
7025
|
+
* SetViewValue.
|
|
7026
|
+
* https://tc39.es/ecma262/multipage/structured-data.html#sec-setviewvalue
|
|
7027
|
+
* https://tc39.es/ecma262/#sec-get-dataview.prototype.buffer
|
|
7028
|
+
*
|
|
7029
|
+
* @param {unknown} obj
|
|
7030
|
+
* @returns {void}
|
|
7031
|
+
*/
|
|
7032
|
+
const requireDataView = obj => {
|
|
7033
|
+
dataViewGetBuffer(obj);
|
|
7034
|
+
};
|
|
7035
|
+
|
|
7036
|
+
/**
|
|
7037
|
+
* Emulate the internal `ToIndex` from
|
|
7038
|
+
* https://tc39.es/ecma262/multipage/abstract-operations.html#sec-toindex
|
|
7039
|
+
*
|
|
7040
|
+
* @param {unknown} v
|
|
7041
|
+
* @returns {number}
|
|
7042
|
+
*/
|
|
7043
|
+
const toIndex = v => {
|
|
7044
|
+
// @ts-expect-error Math.trunc uses the internal `ToNumber` to coerce its
|
|
7045
|
+
// argument, whatever it is, to an integer number.
|
|
7046
|
+
const n = trunc(v);
|
|
7047
|
+
if (n === 0 || is(n, NaN)) {
|
|
7048
|
+
return 0;
|
|
7049
|
+
}
|
|
7050
|
+
if (n < 0 || n > MAX_SAFE_INTEGER) {
|
|
7051
|
+
throw RangeError('Invalid offset');
|
|
7052
|
+
}
|
|
7053
|
+
return n;
|
|
7054
|
+
};
|
|
7055
|
+
|
|
7056
|
+
/**
|
|
7057
|
+
* Expose the internal `ToNumber` from
|
|
7058
|
+
* https://tc39.es/ecma262/multipage/abstract-operations.html#sec-tonumber
|
|
7059
|
+
* We can't just use `Number(value)` because that is backed by `ToNumeric`,
|
|
7060
|
+
* which coerces bigint output from `ToPrimitive` rather than throwing a
|
|
7061
|
+
* TypeError as required of `ToNumber` (e.g., `Number({ valueOf: () => 42n })`
|
|
7062
|
+
* returns 42).
|
|
7063
|
+
*
|
|
7064
|
+
* @param {unknown} v
|
|
7065
|
+
* @returns {number}
|
|
7066
|
+
*/
|
|
7067
|
+
const toNumber = v =>
|
|
7068
|
+
// @ts-expect-error Math.max uses the internal `ToNumber` to coerce its
|
|
7069
|
+
// argument, whatever it is, to a number.
|
|
7070
|
+
max(v);
|
|
7071
|
+
|
|
7072
|
+
/**
|
|
7073
|
+
* Correctly guarding the `setFloat*` built-ins requires performing
|
|
7074
|
+
* `ToNumber(value)` ourselves, because a non-NaN value such as
|
|
7075
|
+
* `{ valueOf: () => {} }` gets coerced **to** NaN. But, according to
|
|
7076
|
+
* [SetViewValue](https://tc39.es/ecma262/multipage/structured-data.html#sec-setviewvalue),
|
|
7077
|
+
* we must first perform the observable
|
|
7078
|
+
* `RequireInternalSlot(view, [[DataView]])` and `ToIndex(requestIndex)` steps
|
|
7079
|
+
* (in that order). If those steps complete successfully, we have number-coerced
|
|
7080
|
+
* `byteOffset` and `value` values that will pass those same steps internal to
|
|
7081
|
+
* the implementation without incurring further observable interactions.
|
|
7082
|
+
*
|
|
7083
|
+
* We added these coercions to defend against an attack noticed by
|
|
7084
|
+
* https://github.com/deepview-autofix .
|
|
7085
|
+
* We were vulnerable to `value` being an
|
|
7086
|
+
* object with a `valueOf` method that returns a (bad) NaN, since it
|
|
7087
|
+
* would bypass the is NaN check. See where the
|
|
7088
|
+
* `tame-nan*-sidechannel.test.js test cases mention "coercion attack".
|
|
7089
|
+
*
|
|
7090
|
+
* Uses method shorthand syntax to be `this`-sensitive but not be constructable
|
|
7091
|
+
* nor have a `prototype` property.
|
|
7092
|
+
*/
|
|
7093
|
+
const methods = {
|
|
7094
|
+
/**
|
|
7095
|
+
* @param {number} byteOffset
|
|
7096
|
+
* @param {number} value
|
|
7097
|
+
* @param {boolean} [isLittleEndian]
|
|
7098
|
+
*/
|
|
7099
|
+
setFloat16(byteOffset, value, isLittleEndian = undefined) {
|
|
7100
|
+
requireDataView(this);
|
|
7101
|
+
byteOffset = toIndex(byteOffset);
|
|
7102
|
+
value = toNumber(value);
|
|
7103
|
+
if (is(value, NaN)) {
|
|
7104
|
+
return apply(setUint16, this, [
|
|
7105
|
+
byteOffset,
|
|
7106
|
+
canonicalNaN16Encoding,
|
|
7107
|
+
isLittleEndian,
|
|
7108
|
+
]);
|
|
7109
|
+
} else {
|
|
7110
|
+
return apply(FERAL_SET_FLOAT16, this, [
|
|
7111
|
+
byteOffset,
|
|
7112
|
+
value,
|
|
7113
|
+
isLittleEndian,
|
|
7114
|
+
]);
|
|
7115
|
+
}
|
|
7116
|
+
},
|
|
7117
|
+
|
|
7118
|
+
/**
|
|
7119
|
+
* @param {number} byteOffset
|
|
7120
|
+
* @param {number} value
|
|
7121
|
+
* @param {boolean} [isLittleEndian]
|
|
7122
|
+
*/
|
|
7123
|
+
setFloat32(byteOffset, value, isLittleEndian = undefined) {
|
|
7124
|
+
requireDataView(this);
|
|
7125
|
+
byteOffset = toIndex(byteOffset);
|
|
7126
|
+
value = toNumber(value);
|
|
7127
|
+
if (is(value, NaN)) {
|
|
7128
|
+
return apply(setUint32, this, [
|
|
7129
|
+
byteOffset,
|
|
7130
|
+
canonicalNaN32Encoding,
|
|
7131
|
+
isLittleEndian,
|
|
7132
|
+
]);
|
|
7133
|
+
} else {
|
|
7134
|
+
return apply(FERAL_SET_FLOAT32, this, [
|
|
7135
|
+
byteOffset,
|
|
7136
|
+
value,
|
|
7137
|
+
isLittleEndian,
|
|
7138
|
+
]);
|
|
7139
|
+
}
|
|
7140
|
+
},
|
|
7141
|
+
|
|
7142
|
+
/**
|
|
7143
|
+
* @param {number} byteOffset
|
|
7144
|
+
* @param {number} value
|
|
7145
|
+
* @param {boolean} [isLittleEndian]
|
|
7146
|
+
*/
|
|
7147
|
+
setFloat64(byteOffset, value, isLittleEndian = undefined) {
|
|
7148
|
+
requireDataView(this);
|
|
7149
|
+
byteOffset = toIndex(byteOffset);
|
|
7150
|
+
value = toNumber(value);
|
|
7151
|
+
if (is(value, NaN)) {
|
|
7152
|
+
return apply(setBigUint64, this, [
|
|
7153
|
+
byteOffset,
|
|
7154
|
+
canonicalNaN64Encoding,
|
|
7155
|
+
isLittleEndian,
|
|
7156
|
+
]);
|
|
7157
|
+
} else {
|
|
7158
|
+
return apply(FERAL_SET_FLOAT64, this, [
|
|
7159
|
+
byteOffset,
|
|
7160
|
+
value,
|
|
7161
|
+
isLittleEndian,
|
|
7162
|
+
]);
|
|
7163
|
+
}
|
|
7164
|
+
},
|
|
7165
|
+
};
|
|
7166
|
+
|
|
7167
|
+
/**
|
|
7168
|
+
* Replaces the dangerous `setFloat*` methods on `DataView.prototype`
|
|
7169
|
+
* with safe wrappers that first canonicalize NaNs before calling the
|
|
7170
|
+
* original hidden methods.
|
|
7171
|
+
* By itself, this does not make us safe against the NaN side channel.
|
|
7172
|
+
* Separately, we do not include the `Float*Array` constructors on the
|
|
7173
|
+
* list of universal safe globals. Thus, constructed compartments do not
|
|
7174
|
+
* get these by default.
|
|
7175
|
+
*
|
|
7176
|
+
* These replacement `setFloat*` methods canonicalize NaN, but they
|
|
7177
|
+
* do not canonicalize `-0` to `0`. If callers wish to do so, they should do
|
|
7178
|
+
* it themselves before calling these
|
|
7179
|
+
*/
|
|
7180
|
+
const tameNaNSideChannel = () => {
|
|
7181
|
+
for (const [name, method] of entries(methods)) {
|
|
7182
|
+
if (hasOwn(dataViewPrototype, name)) {
|
|
7183
|
+
defineProperty(dataViewPrototype, name, {
|
|
7184
|
+
// Since we're redefining properties that already exist, by omitting the
|
|
7185
|
+
// other descriptor attributes here, they are unchanged.
|
|
7186
|
+
value: method,
|
|
7187
|
+
});
|
|
7188
|
+
}
|
|
7189
|
+
}
|
|
7190
|
+
};$h͏_once.tameNaNSideChannel(tameNaNSideChannel);
|
|
7191
|
+
})()
|
|
7192
|
+
,
|
|
7193
|
+
// === 23. ses ./src/tame-regexp-constructor.js ===
|
|
6835
7194
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,TypeError,construct,defineProperties,getOwnPropertyDescriptor,speciesSymbol;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["speciesSymbol",[$h͏_a => (speciesSymbol = $h͏_a)]]]]]);
|
|
6836
7195
|
|
|
6837
7196
|
|
|
@@ -6899,7 +7258,7 @@ function sampleGlobals(globalObject, newPropertyNames) {
|
|
|
6899
7258
|
}$h͏_once.default( tameRegExpConstructor);
|
|
6900
7259
|
})()
|
|
6901
7260
|
,
|
|
6902
|
-
// ===
|
|
7261
|
+
// === 24. ses ./src/enablements.js ===
|
|
6903
7262
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let toStringTagSymbol,iteratorSymbol;$h͏_imports([["./commons.js", [["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]]]]]);
|
|
6904
7263
|
|
|
6905
7264
|
/**
|
|
@@ -6997,38 +7356,39 @@ function sampleGlobals(globalObject, newPropertyNames) {
|
|
|
6997
7356
|
...minEnablements,
|
|
6998
7357
|
|
|
6999
7358
|
'%ObjectPrototype%': {
|
|
7000
|
-
|
|
7359
|
+
...minEnablements['%ObjectPrototype%'],
|
|
7001
7360
|
valueOf: true,
|
|
7002
7361
|
},
|
|
7003
7362
|
|
|
7004
|
-
'%ArrayPrototype%': {
|
|
7005
|
-
toString: true,
|
|
7006
|
-
push: true, // set by "Google Analytics"
|
|
7007
|
-
concat: true, // set by mobx generated code (old TS compiler?)
|
|
7008
|
-
[iteratorSymbol]: true // set by mobx generated code (old TS compiler?)
|
|
7009
|
-
},
|
|
7010
|
-
|
|
7011
|
-
'%IteratorPrototype%': {
|
|
7012
|
-
[iteratorSymbol]: true // is sometimes used in custom iterators and generators implementations eg. @rive-app/canvas
|
|
7013
|
-
},
|
|
7014
|
-
|
|
7015
7363
|
// Function.prototype has no 'prototype' property to enable.
|
|
7016
7364
|
// Function instances have their own 'name' and 'length' properties
|
|
7017
7365
|
// which are configurable and non-writable. Thus, they are already
|
|
7018
7366
|
// non-assignable anyway.
|
|
7019
7367
|
'%FunctionPrototype%': {
|
|
7368
|
+
...minEnablements['%FunctionPrototype%'],
|
|
7020
7369
|
constructor: true, // set by "regenerator-runtime"
|
|
7021
|
-
bind: true
|
|
7022
|
-
toString: true // set by "rollup"
|
|
7370
|
+
bind: true // set by "underscore", "express"
|
|
7023
7371
|
},
|
|
7024
7372
|
|
|
7025
7373
|
'%ErrorPrototype%': {
|
|
7374
|
+
...minEnablements['%ErrorPrototype%'],
|
|
7026
7375
|
constructor: true, // set by "fast-json-patch", "node-fetch"
|
|
7027
7376
|
message: true,
|
|
7028
|
-
name: true, // set by "precond", "ava", "node-fetch", "node 14"
|
|
7029
7377
|
toString: true // set by "bluebird"
|
|
7030
7378
|
},
|
|
7031
7379
|
|
|
7380
|
+
'%IteratorPrototype%': {
|
|
7381
|
+
...minEnablements['%IteratorPrototype%'],
|
|
7382
|
+
[iteratorSymbol]: true // is sometimes used in custom iterators and generators implementations eg. @rive-app/canvas
|
|
7383
|
+
},
|
|
7384
|
+
|
|
7385
|
+
'%ArrayPrototype%': {
|
|
7386
|
+
toString: true,
|
|
7387
|
+
push: true, // set by "Google Analytics"
|
|
7388
|
+
concat: true, // set by mobx generated code (old TS compiler?)
|
|
7389
|
+
[iteratorSymbol]: true // set by mobx generated code (old TS compiler?)
|
|
7390
|
+
},
|
|
7391
|
+
|
|
7032
7392
|
'%TypeErrorPrototype%': {
|
|
7033
7393
|
constructor: true, // set by "readable-stream"
|
|
7034
7394
|
message: true, // set by "tape"
|
|
@@ -7145,7 +7505,7 @@ function sampleGlobals(globalObject, newPropertyNames) {
|
|
|
7145
7505
|
};$h͏_once.severeEnablements(severeEnablements);
|
|
7146
7506
|
})()
|
|
7147
7507
|
,
|
|
7148
|
-
// ===
|
|
7508
|
+
// === 25. ses ./src/enable-property-overrides.js ===
|
|
7149
7509
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,isPrimitive,hasOwn,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)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $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)]]]]]);
|
|
7150
7510
|
|
|
7151
7511
|
|
|
@@ -7359,8 +7719,9 @@ function sampleGlobals(globalObject, newPropertyNames) {
|
|
|
7359
7719
|
}$h͏_once.default( enablePropertyOverrides);
|
|
7360
7720
|
})()
|
|
7361
7721
|
,
|
|
7362
|
-
// ===
|
|
7363
|
-
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Number,String,TypeError,defineProperty,getOwnPropertyNames,isPrimitive,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)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
|
|
7722
|
+
// === 26. ses ./src/tame-locale-methods.js ===
|
|
7723
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Number,String,TypeError,defineProperty,freezeRegexp,getOwnPropertyNames,isPrimitive,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)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
|
|
7724
|
+
|
|
7364
7725
|
|
|
7365
7726
|
|
|
7366
7727
|
|
|
@@ -7373,7 +7734,7 @@ function sampleGlobals(globalObject, newPropertyNames) {
|
|
|
7373
7734
|
|
|
7374
7735
|
const { Fail, quote: q } = assert;
|
|
7375
7736
|
|
|
7376
|
-
const localePattern = /^(\w*[a-z])Locale([A-Z]\w*)
|
|
7737
|
+
const localePattern = freezeRegexp(/^(\w*[a-z])Locale([A-Z]\w*)$/);
|
|
7377
7738
|
|
|
7378
7739
|
// Use concise methods to obtain named functions without constructor
|
|
7379
7740
|
// behavior or `.prototype` property.
|
|
@@ -7440,7 +7801,7 @@ const numberToString = tamedMethods.toString;
|
|
|
7440
7801
|
}$h͏_once.default( tameLocaleMethods);
|
|
7441
7802
|
})()
|
|
7442
7803
|
,
|
|
7443
|
-
// ===
|
|
7804
|
+
// === 27. ses ./src/make-eval-function.js ===
|
|
7444
7805
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/**
|
|
7445
7806
|
* makeEvalFunction()
|
|
7446
7807
|
* A safe version of the native eval function which relies on
|
|
@@ -7471,7 +7832,7 @@ const numberToString = tamedMethods.toString;
|
|
|
7471
7832
|
};$h͏_once.makeEvalFunction(makeEvalFunction);
|
|
7472
7833
|
})()
|
|
7473
7834
|
,
|
|
7474
|
-
// ===
|
|
7835
|
+
// === 28. ses ./src/make-function-constructor.js ===
|
|
7475
7836
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,arrayPop,defineProperties,getPrototypeOf,assert;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
|
|
7476
7837
|
|
|
7477
7838
|
|
|
@@ -7553,7 +7914,7 @@ const { Fail } = assert;
|
|
|
7553
7914
|
};$h͏_once.makeFunctionConstructor(makeFunctionConstructor);
|
|
7554
7915
|
})()
|
|
7555
7916
|
,
|
|
7556
|
-
// ===
|
|
7917
|
+
// === 29. ses ./src/global-object.js ===
|
|
7557
7918
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,assign,create,defineProperty,entries,freeze,hasOwn,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)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["unscopablesSymbol",[$h͏_a => (unscopablesSymbol = $h͏_a)]]]],["./make-eval-function.js", [["makeEvalFunction",[$h͏_a => (makeEvalFunction = $h͏_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor",[$h͏_a => (makeFunctionConstructor = $h͏_a)]]]],["./permits.js", [["constantProperties",[$h͏_a => (constantProperties = $h͏_a)]],["universalPropertyNames",[$h͏_a => (universalPropertyNames = $h͏_a)]]]]]);
|
|
7558
7919
|
|
|
7559
7920
|
|
|
@@ -7731,7 +8092,7 @@ const { Fail } = assert;
|
|
|
7731
8092
|
};$h͏_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
|
|
7732
8093
|
})()
|
|
7733
8094
|
,
|
|
7734
|
-
// ===
|
|
8095
|
+
// === 30. ses ./src/strict-scope-terminator.js ===
|
|
7735
8096
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,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)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
|
|
7736
8097
|
|
|
7737
8098
|
|
|
@@ -7833,7 +8194,7 @@ const scopeProxyHandlerProperties = {
|
|
|
7833
8194
|
);$h͏_once.strictScopeTerminator(strictScopeTerminator);
|
|
7834
8195
|
})()
|
|
7835
8196
|
,
|
|
7836
|
-
// ===
|
|
8197
|
+
// === 31. ses ./src/sloppy-globals-scope-terminator.js ===
|
|
7837
8198
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,create,freeze,getOwnPropertyDescriptors,reflectSet,strictScopeTerminatorHandler,alwaysThrowHandler;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler",[$h͏_a => (strictScopeTerminatorHandler = $h͏_a)]],["alwaysThrowHandler",[$h͏_a => (alwaysThrowHandler = $h͏_a)]]]]]);
|
|
7838
8199
|
|
|
7839
8200
|
|
|
@@ -7897,7 +8258,7 @@ const objTarget = freeze({ __proto__: null });
|
|
|
7897
8258
|
freeze(createSloppyGlobalsScopeTerminator);
|
|
7898
8259
|
})()
|
|
7899
8260
|
,
|
|
7900
|
-
// ===
|
|
8261
|
+
// === 32. ses ./src/eval-scope.js ===
|
|
7901
8262
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_EVAL,create,defineProperties,freeze,assert;$h͏_imports([["./commons.js", [["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
|
|
7902
8263
|
|
|
7903
8264
|
|
|
@@ -7989,8 +8350,13 @@ const { Fail } = assert;
|
|
|
7989
8350
|
};$h͏_once.makeEvalScopeKit(makeEvalScopeKit);
|
|
7990
8351
|
})()
|
|
7991
8352
|
,
|
|
7992
|
-
// ===
|
|
7993
|
-
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,regexpExec,stringSlice;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]]]]]);
|
|
8353
|
+
// === 33. ses ./src/get-source-url.js ===
|
|
8354
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,freezeRegexp,regexpExec,stringSlice;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]]]]]);
|
|
8355
|
+
|
|
8356
|
+
|
|
8357
|
+
|
|
8358
|
+
|
|
8359
|
+
|
|
7994
8360
|
|
|
7995
8361
|
// Captures a key and value of the form #key=value or @key=value
|
|
7996
8362
|
const sourceMetaEntryRegExp =
|
|
@@ -8001,8 +8367,10 @@ const sourceMetaEntryRegExp =
|
|
|
8001
8367
|
// On account of the mechanics of regular expressions, scanning from the end
|
|
8002
8368
|
// does not allow us to capture every pair, so getSourceURL must capture and
|
|
8003
8369
|
// trim until there are no matching comments.
|
|
8004
|
-
const sourceMetaEntriesRegExp =
|
|
8005
|
-
|
|
8370
|
+
const sourceMetaEntriesRegExp = freezeRegexp(
|
|
8371
|
+
new FERAL_REG_EXP(
|
|
8372
|
+
`(?:\\s*//${sourceMetaEntryRegExp}|/\\*${sourceMetaEntryRegExp}\\s*\\*/)\\s*$`,
|
|
8373
|
+
),
|
|
8006
8374
|
);
|
|
8007
8375
|
|
|
8008
8376
|
/**
|
|
@@ -8023,7 +8391,7 @@ const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
|
|
|
8023
8391
|
if (match === null) {
|
|
8024
8392
|
break;
|
|
8025
8393
|
}
|
|
8026
|
-
src = stringSlice(src, 0,
|
|
8394
|
+
src = stringSlice(src, 0, -match[0].length);
|
|
8027
8395
|
|
|
8028
8396
|
// We skip $0 since it contains the entire match.
|
|
8029
8397
|
// The match contains four capture groups,
|
|
@@ -8042,8 +8410,9 @@ const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
|
|
|
8042
8410
|
};$h͏_once.getSourceURL(getSourceURL);
|
|
8043
8411
|
})()
|
|
8044
8412
|
,
|
|
8045
|
-
// ===
|
|
8046
|
-
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,SyntaxError,regexpReplace,sealRegexp,
|
|
8413
|
+
// === 34. ses ./src/transforms.js ===
|
|
8414
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,SyntaxError,freezeRegexp,regexpReplace,regexpSearch,sealRegexp,stringSlice,stringSplit,freeze,getSourceURL;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["regexpReplace",[$h͏_a => (regexpReplace = $h͏_a)]],["regexpSearch",[$h͏_a => (regexpSearch = $h͏_a)]],["sealRegexp",[$h͏_a => (sealRegexp = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./get-source-url.js", [["getSourceURL",[$h͏_a => (getSourceURL = $h͏_a)]]]]]);
|
|
8415
|
+
|
|
8047
8416
|
|
|
8048
8417
|
|
|
8049
8418
|
|
|
@@ -8066,7 +8435,7 @@ const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
|
|
|
8066
8435
|
* @returns {number}
|
|
8067
8436
|
*/
|
|
8068
8437
|
function getLineNumber(src, pattern) {
|
|
8069
|
-
const index =
|
|
8438
|
+
const index = regexpSearch(pattern, src);
|
|
8070
8439
|
if (index < 0) {
|
|
8071
8440
|
return -1;
|
|
8072
8441
|
}
|
|
@@ -8222,9 +8591,8 @@ const importPattern = sealRegexp(
|
|
|
8222
8591
|
|
|
8223
8592
|
// /////////////////////////////////////////////////////////////////////////////
|
|
8224
8593
|
$h͏_once.evadeImportExpressionTest(evadeImportExpressionTest);
|
|
8225
|
-
const someDirectEvalPattern =
|
|
8226
|
-
'(^|[^.])\\beval(\\s*\\()',
|
|
8227
|
-
'g',
|
|
8594
|
+
const someDirectEvalPattern = freezeRegexp(
|
|
8595
|
+
new FERAL_REG_EXP('(^|[^.])\\beval(\\s*\\()'),
|
|
8228
8596
|
);
|
|
8229
8597
|
|
|
8230
8598
|
/**
|
|
@@ -8314,8 +8682,9 @@ $h͏_once.applyTransforms(applyTransforms);const transforms=freeze({
|
|
|
8314
8682
|
});$h͏_once.transforms(transforms);
|
|
8315
8683
|
})()
|
|
8316
8684
|
,
|
|
8317
|
-
// ===
|
|
8318
|
-
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayFilter,arrayIncludes,getOwnPropertyDescriptor,getOwnPropertyNames,hasOwn,
|
|
8685
|
+
// === 35. ses ./src/scope-constants.js ===
|
|
8686
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayFilter,arrayIncludes,freezeRegexp,getOwnPropertyDescriptor,getOwnPropertyNames,hasOwn,regexpSearch,Set,setHas;$h͏_imports([["./commons.js", [["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["regexpSearch",[$h͏_a => (regexpSearch = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]]]);
|
|
8687
|
+
|
|
8319
8688
|
|
|
8320
8689
|
|
|
8321
8690
|
|
|
@@ -8408,7 +8777,7 @@ const reservedNames = new Set([
|
|
|
8408
8777
|
* Note: \w is equivalent [a-zA-Z_0-9]
|
|
8409
8778
|
* See 11.6.1 Identifier Names
|
|
8410
8779
|
*/
|
|
8411
|
-
const identifierPattern = /^[a-zA-Z_$][\w$]
|
|
8780
|
+
const identifierPattern = freezeRegexp(/^[a-zA-Z_$][\w$]*$/);
|
|
8412
8781
|
|
|
8413
8782
|
/**
|
|
8414
8783
|
* isValidIdentifierName()
|
|
@@ -8417,7 +8786,7 @@ const identifierPattern = /^[a-zA-Z_$][\w$]*$/;
|
|
|
8417
8786
|
* @param {string} name
|
|
8418
8787
|
*/
|
|
8419
8788
|
const isValidIdentifierName = name =>
|
|
8420
|
-
!setHas(reservedNames, name) &&
|
|
8789
|
+
!setHas(reservedNames, name) && regexpSearch(identifierPattern, name) !== -1;
|
|
8421
8790
|
|
|
8422
8791
|
/*
|
|
8423
8792
|
* isImmutableDataProperty
|
|
@@ -8491,7 +8860,7 @@ function isImmutableDataProperty(obj, name) {
|
|
|
8491
8860
|
};$h͏_once.getScopeConstants(getScopeConstants);
|
|
8492
8861
|
})()
|
|
8493
8862
|
,
|
|
8494
|
-
// ===
|
|
8863
|
+
// === 36. ses ./src/make-evaluate.js ===
|
|
8495
8864
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,apply,getScopeConstants;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]]]],["./scope-constants.js", [["getScopeConstants",[$h͏_a => (getScopeConstants = $h͏_a)]]]]]);
|
|
8496
8865
|
|
|
8497
8866
|
|
|
@@ -8604,7 +8973,7 @@ function buildOptimizer(constants, name) {
|
|
|
8604
8973
|
};$h͏_once.makeEvaluate(makeEvaluate);
|
|
8605
8974
|
})()
|
|
8606
8975
|
,
|
|
8607
|
-
// ===
|
|
8976
|
+
// === 37. ses ./src/make-safe-evaluator.js ===
|
|
8608
8977
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let apply,arrayFlatMap,freeze,identity,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h͏_imports([["./commons.js", [["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminator",[$h͏_a => (strictScopeTerminator = $h͏_a)]]]],["./sloppy-globals-scope-terminator.js", [["createSloppyGlobalsScopeTerminator",[$h͏_a => (createSloppyGlobalsScopeTerminator = $h͏_a)]]]],["./eval-scope.js", [["makeEvalScopeKit",[$h͏_a => (makeEvalScopeKit = $h͏_a)]]]],["./transforms.js", [["applyTransforms",[$h͏_a => (applyTransforms = $h͏_a)]],["mandatoryTransforms",[$h͏_a => (mandatoryTransforms = $h͏_a)]]]],["./make-evaluate.js", [["makeEvaluate",[$h͏_a => (makeEvaluate = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
|
|
8609
8978
|
|
|
8610
8979
|
|
|
@@ -8719,7 +9088,7 @@ const { Fail } = assert;
|
|
|
8719
9088
|
};$h͏_once.makeSafeEvaluator(makeSafeEvaluator);
|
|
8720
9089
|
})()
|
|
8721
9090
|
,
|
|
8722
|
-
// ===
|
|
9091
|
+
// === 38. ses ./src/tame-function-tostring.js ===
|
|
8723
9092
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,defineProperty,freeze,functionPrototype,functionToString,stringEndsWith,weaksetAdd,weaksetHas;$h͏_imports([["./commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["functionToString",[$h͏_a => (functionToString = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);
|
|
8724
9093
|
|
|
8725
9094
|
|
|
@@ -8772,7 +9141,7 @@ let markVirtualizedNativeFunction;
|
|
|
8772
9141
|
};$h͏_once.tameFunctionToString(tameFunctionToString);
|
|
8773
9142
|
})()
|
|
8774
9143
|
,
|
|
8775
|
-
// ===
|
|
9144
|
+
// === 39. ses ./src/tame-domains.js ===
|
|
8776
9145
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,globalThis,getOwnPropertyDescriptor,defineProperty;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);Object.defineProperty(tameDomains,'name',{value:"tameDomains"});$h͏_once.tameDomains(tameDomains);
|
|
8777
9146
|
|
|
8778
9147
|
|
|
@@ -8816,7 +9185,7 @@ let markVirtualizedNativeFunction;
|
|
|
8816
9185
|
}
|
|
8817
9186
|
})()
|
|
8818
9187
|
,
|
|
8819
|
-
// ===
|
|
9188
|
+
// === 40. ses ./src/tame-module-source.js ===
|
|
8820
9189
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let functionPrototype,getPrototypeOf,globalThis,objectPrototype,setPrototypeOf;$h͏_imports([["./commons.js", [["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]]]]]);
|
|
8821
9190
|
|
|
8822
9191
|
|
|
@@ -8870,7 +9239,7 @@ let markVirtualizedNativeFunction;
|
|
|
8870
9239
|
};$h͏_once.tameModuleSource(tameModuleSource);
|
|
8871
9240
|
})()
|
|
8872
9241
|
,
|
|
8873
|
-
// ===
|
|
9242
|
+
// === 41. ses ./src/error/console.js ===
|
|
8874
9243
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,arrayFilter,arrayFlatMap,arrayMap,arrayPop,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,stringIncludes,stringSplit,weaksetAdd,weaksetHas;$h͏_imports([["../commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["stringIncludes",[$h͏_a => (stringIncludes = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);
|
|
8875
9244
|
|
|
8876
9245
|
|
|
@@ -9414,7 +9783,7 @@ freeze(defineCausalConsoleFromLogger);
|
|
|
9414
9783
|
freeze(filterConsole);
|
|
9415
9784
|
})()
|
|
9416
9785
|
,
|
|
9417
|
-
// ===
|
|
9786
|
+
// === 42. ses ./src/error/unhandled-rejection.js ===
|
|
9418
9787
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FinalizationRegistry,Map,mapGet,mapDelete,WeakMap,mapSet,finalizationRegistryRegister,weakmapSet,weakmapGet,mapEntries,mapHas;$h͏_imports([["../commons.js", [["FinalizationRegistry",[$h͏_a => (FinalizationRegistry = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapDelete",[$h͏_a => (mapDelete = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["finalizationRegistryRegister",[$h͏_a => (finalizationRegistryRegister = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["mapEntries",[$h͏_a => (mapEntries = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]]]]]);
|
|
9419
9788
|
|
|
9420
9789
|
|
|
@@ -9539,7 +9908,7 @@ freeze(filterConsole);
|
|
|
9539
9908
|
};$h͏_once.makeRejectionHandlers(makeRejectionHandlers);
|
|
9540
9909
|
})()
|
|
9541
9910
|
,
|
|
9542
|
-
// ===
|
|
9911
|
+
// === 43. ses ./src/error/tame-console.js ===
|
|
9543
9912
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,apply,defineProperty,freeze,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h͏_imports([["../commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./assert.js", [["loggedErrorHandler",[$h͏_a => (defaultHandler = $h͏_a)]]]],["./console.js", [["makeCausalConsole",[$h͏_a => (makeCausalConsole = $h͏_a)]]]],["./unhandled-rejection.js", [["makeRejectionHandlers",[$h͏_a => (makeRejectionHandlers = $h͏_a)]]]]]);
|
|
9544
9913
|
|
|
9545
9914
|
|
|
@@ -9739,8 +10108,10 @@ const wrapLogger = (logger, thisArg) =>
|
|
|
9739
10108
|
};$h͏_once.tameConsole(tameConsole);
|
|
9740
10109
|
})()
|
|
9741
10110
|
,
|
|
9742
|
-
// ===
|
|
9743
|
-
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$h͏_imports([["../commons.js", [["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);
|
|
10111
|
+
// === 44. ses ./src/error/tame-v8-error-constructor.js ===
|
|
10112
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,freezeRegexp,fromEntries,reflectSet,regexpExec,regexpSearch,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$h͏_imports([["../commons.js", [["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["regexpSearch",[$h͏_a => (regexpSearch = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);
|
|
10113
|
+
|
|
10114
|
+
|
|
9744
10115
|
|
|
9745
10116
|
|
|
9746
10117
|
|
|
@@ -9805,27 +10176,33 @@ const safeV8SST = sst => arrayMap(sst, safeV8CallSiteFacet);
|
|
|
9805
10176
|
// If it has `/node_modules/` anywhere in it, on Node it is likely
|
|
9806
10177
|
// to be a dependent package of the current package, and so to
|
|
9807
10178
|
// be an infrastructure frame to be dropped from concise stack traces.
|
|
9808
|
-
const FILENAME_NODE_DEPENDENTS_CENSOR = /\/node_modules
|
|
10179
|
+
const FILENAME_NODE_DEPENDENTS_CENSOR = freezeRegexp(/\/node_modules\//);
|
|
9809
10180
|
|
|
9810
10181
|
// If it begins with `internal/` or `node:internal` then it is likely
|
|
9811
10182
|
// part of the node infrustructre itself, to be dropped from concise
|
|
9812
10183
|
// stack traces.
|
|
9813
|
-
const FILENAME_NODE_INTERNALS_CENSOR = /^(?:node:)?internal
|
|
10184
|
+
const FILENAME_NODE_INTERNALS_CENSOR = freezeRegexp(/^(?:node:)?internal\//);
|
|
9814
10185
|
|
|
9815
10186
|
// Frames within SES `assert.js` should be dropped from concise stack traces, as
|
|
9816
10187
|
// these are just steps towards creating the error object in question.
|
|
9817
|
-
const FILENAME_ASSERT_CENSOR =
|
|
10188
|
+
const FILENAME_ASSERT_CENSOR = freezeRegexp(
|
|
10189
|
+
/\/packages\/ses\/src\/error\/assert\.js$/,
|
|
10190
|
+
);
|
|
9818
10191
|
|
|
9819
10192
|
// Frames within the `eventual-send` shim should be dropped so that concise
|
|
9820
10193
|
// deep stacks omit the internals of the eventual-sending mechanism causing
|
|
9821
10194
|
// asynchronous messages to be sent.
|
|
9822
10195
|
// Note that the eventual-send package will move from agoric-sdk to
|
|
9823
10196
|
// Endo, so this rule will be of general interest.
|
|
9824
|
-
const FILENAME_EVENTUAL_SEND_CENSOR =
|
|
10197
|
+
const FILENAME_EVENTUAL_SEND_CENSOR = freezeRegexp(
|
|
10198
|
+
/\/packages\/eventual-send\/src\//,
|
|
10199
|
+
);
|
|
9825
10200
|
|
|
9826
10201
|
// Frames within the `ses-ava` package should be dropped from concise stack
|
|
9827
10202
|
// traces, as they just support exposing error details to AVA.
|
|
9828
|
-
const FILENAME_SES_AVA_CENSOR =
|
|
10203
|
+
const FILENAME_SES_AVA_CENSOR = freezeRegexp(
|
|
10204
|
+
/\/packages\/ses-ava\/src\/ses-ava-test\.js$/,
|
|
10205
|
+
);
|
|
9829
10206
|
|
|
9830
10207
|
// Any stack frame whose `fileName` matches any of these censor patterns
|
|
9831
10208
|
// will be omitted from concise stacks.
|
|
@@ -9848,7 +10225,7 @@ const FILENAME_CENSORS = [
|
|
|
9848
10225
|
return false;
|
|
9849
10226
|
}
|
|
9850
10227
|
for (const filter of FILENAME_CENSORS) {
|
|
9851
|
-
if (
|
|
10228
|
+
if (regexpSearch(filter, fileName) !== -1) {
|
|
9852
10229
|
return false;
|
|
9853
10230
|
}
|
|
9854
10231
|
}
|
|
@@ -9865,7 +10242,9 @@ const FILENAME_CENSORS = [
|
|
|
9865
10242
|
//
|
|
9866
10243
|
// See thread starting at
|
|
9867
10244
|
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
|
|
9868
|
-
$h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1
|
|
10245
|
+
$h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1=freezeRegexp(
|
|
10246
|
+
/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/,
|
|
10247
|
+
);
|
|
9869
10248
|
|
|
9870
10249
|
// The ad-hoc rule of the current pattern is that any likely-file-path or
|
|
9871
10250
|
// likely url-path prefix consisting of `.../` should get dropped.
|
|
@@ -9877,7 +10256,7 @@ $h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1=/^((?:
|
|
|
9877
10256
|
//
|
|
9878
10257
|
// See thread starting at
|
|
9879
10258
|
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
|
|
9880
|
-
const CALLSITE_ELLIPSIS_PATTERN2 = /^((?:.*[( ])?)\.\.\.\/(.+)
|
|
10259
|
+
const CALLSITE_ELLIPSIS_PATTERN2 = freezeRegexp(/^((?:.*[( ])?)\.\.\.\/(.+)$/);
|
|
9881
10260
|
|
|
9882
10261
|
// The ad-hoc rule of the current pattern is that any likely-file-path or
|
|
9883
10262
|
// likely url-path prefix, ending in a `/` and prior to `package/` should get
|
|
@@ -9889,7 +10268,9 @@ const CALLSITE_ELLIPSIS_PATTERN2 = /^((?:.*[( ])?)\.\.\.\/(.+)$/;
|
|
|
9889
10268
|
// `'Object.bar (packages/errors/test/deep-send.test.js:13:21)'`.
|
|
9890
10269
|
// Note that `/packages/` is a convention for monorepos encouraged by
|
|
9891
10270
|
// lerna.
|
|
9892
|
-
const CALLSITE_PACKAGES_PATTERN =
|
|
10271
|
+
const CALLSITE_PACKAGES_PATTERN = freezeRegexp(
|
|
10272
|
+
/^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/,
|
|
10273
|
+
);
|
|
9893
10274
|
|
|
9894
10275
|
// The ad-hoc rule of the current pattern is that any likely-file-path or
|
|
9895
10276
|
// likely url-path prefix of the form `file://` but not `file:///` gets
|
|
@@ -9905,7 +10286,9 @@ const CALLSITE_PACKAGES_PATTERN = /^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/;
|
|
|
9905
10286
|
// clickable without removing the `file:///`, whereas `file://` usually precedes
|
|
9906
10287
|
// a relative path which, for whatever vscode reason, is not clickable until the
|
|
9907
10288
|
// `file://` is removed.
|
|
9908
|
-
const CALLSITE_FILE_2SLASH_PATTERN =
|
|
10289
|
+
const CALLSITE_FILE_2SLASH_PATTERN = freezeRegexp(
|
|
10290
|
+
/^((?:.*[( ])?)file:\/\/([^/].*)$/,
|
|
10291
|
+
);
|
|
9909
10292
|
|
|
9910
10293
|
// The use of these callSite patterns below assumes that any match will bind
|
|
9911
10294
|
// capture groups containing the parts of the original string we want
|
|
@@ -10131,7 +10514,7 @@ const CALLSITE_PATTERNS = [
|
|
|
10131
10514
|
};$h͏_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
|
|
10132
10515
|
})()
|
|
10133
10516
|
,
|
|
10134
|
-
// ===
|
|
10517
|
+
// === 45. ses ./src/error/tame-error-constructor.js ===
|
|
10135
10518
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_ERROR,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,getOwnPropertyDescriptors,NativeErrors,tameV8ErrorConstructor;$h͏_imports([["../commons.js", [["FERAL_ERROR",[$h͏_a => (FERAL_ERROR = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["../permits.js", [["NativeErrors",[$h͏_a => (NativeErrors = $h͏_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor",[$h͏_a => (tameV8ErrorConstructor = $h͏_a)]]]]]);
|
|
10136
10519
|
|
|
10137
10520
|
|
|
@@ -10176,10 +10559,16 @@ let initialGetStackString = tamedMethods.getStackString;
|
|
|
10176
10559
|
typeof originalCaptureStackTrace === 'function' ? 'v8' : 'unknown';
|
|
10177
10560
|
|
|
10178
10561
|
const makeErrorConstructor = (_ = {}) => {
|
|
10562
|
+
/**
|
|
10563
|
+
* @this {ErrorConstructor}
|
|
10564
|
+
* @param {...any} rest
|
|
10565
|
+
*/
|
|
10179
10566
|
// eslint-disable-next-line no-shadow
|
|
10180
10567
|
const ResultError = function Error(...rest) {
|
|
10181
10568
|
let error;
|
|
10182
10569
|
if (new.target === undefined) {
|
|
10570
|
+
// Forward caller's `this` to FERAL_ERROR to keep the shim transparent.
|
|
10571
|
+
// Error() as a function ignores `this` per spec, but do not narrow it.
|
|
10183
10572
|
error = apply(FERAL_ERROR, this, rest);
|
|
10184
10573
|
} else {
|
|
10185
10574
|
error = construct(FERAL_ERROR, rest, new.target);
|
|
@@ -10418,7 +10807,7 @@ let initialGetStackString = tamedMethods.getStackString;
|
|
|
10418
10807
|
}$h͏_once.default( tameErrorConstructor);
|
|
10419
10808
|
})()
|
|
10420
10809
|
,
|
|
10421
|
-
// ===
|
|
10810
|
+
// === 46. ses ./src/module-load.js ===
|
|
10422
10811
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,Map,Set,TypeError,arrayJoin,arrayMap,arrayPush,arraySome,create,freeze,generatorNext,generatorThrow,getOwnPropertyNames,isArray,isPrimitive,mapGet,mapHas,mapSet,promiseThen,setAdd,values,weakmapGet,weakmapHas,makeError,annotateError,q,b,X;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["generatorNext",[$h͏_a => (generatorNext = $h͏_a)]],["generatorThrow",[$h͏_a => (generatorThrow = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["values",[$h͏_a => (values = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]]]],["./error/assert.js", [["makeError",[$h͏_a => (makeError = $h͏_a)]],["annotateError",[$h͏_a => (annotateError = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]],["b",[$h͏_a => (b = $h͏_a)]],["X",[$h͏_a => (X = $h͏_a)]]]]]);
|
|
10423
10812
|
|
|
10424
10813
|
|
|
@@ -10931,7 +11320,7 @@ const memoizedLoadWithErrorAnnotation = (
|
|
|
10931
11320
|
/**
|
|
10932
11321
|
* If `aggregateErrors` is `false`, the `errors` property of the fulfilled object
|
|
10933
11322
|
* will always be empty.
|
|
10934
|
-
* @param {{errors?: Error[], noAggregateErrors?: boolean}} [options]
|
|
11323
|
+
* @param {{errors?: Error[], noAggregateErrors?: boolean | undefined}} [options]
|
|
10935
11324
|
*/
|
|
10936
11325
|
const asyncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
|
|
10937
11326
|
/** @type {Set<Promise<undefined>>} */
|
|
@@ -10973,7 +11362,7 @@ const asyncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
|
|
|
10973
11362
|
/**
|
|
10974
11363
|
* If `aggregateErrors` is `false`, the `errors` property of the returned object
|
|
10975
11364
|
* will always be empty.
|
|
10976
|
-
* @param {{errors?: Error[], noAggregateErrors?: boolean}} [options]
|
|
11365
|
+
* @param {{errors?: Error[], noAggregateErrors?: boolean | undefined}} [options]
|
|
10977
11366
|
*/
|
|
10978
11367
|
const syncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
|
|
10979
11368
|
let current = [];
|
|
@@ -11046,7 +11435,7 @@ const preferAsync = (asyncImpl, _syncImpl) => asyncImpl;
|
|
|
11046
11435
|
* @param {WeakMap<object, object>} moduleAliases
|
|
11047
11436
|
* @param {Compartment} compartment
|
|
11048
11437
|
* @param {string} moduleSpecifier - The module specifier to load.
|
|
11049
|
-
* @param {{ noAggregateErrors?: boolean}} options
|
|
11438
|
+
* @param {{ noAggregateErrors?: boolean | undefined}} options
|
|
11050
11439
|
*/
|
|
11051
11440
|
const load = async (
|
|
11052
11441
|
compartmentPrivateFields,
|
|
@@ -11097,7 +11486,7 @@ const preferAsync = (asyncImpl, _syncImpl) => asyncImpl;
|
|
|
11097
11486
|
* @param {WeakMap<object, object>} moduleAliases
|
|
11098
11487
|
* @param {Compartment} compartment
|
|
11099
11488
|
* @param {string} moduleSpecifier - The module specifier to load.
|
|
11100
|
-
* @param {{ noAggregateErrors?: boolean}} options
|
|
11489
|
+
* @param {{ noAggregateErrors?: boolean | undefined}} options
|
|
11101
11490
|
*/$h͏_once.load(load);
|
|
11102
11491
|
|
|
11103
11492
|
const loadNow = (
|
|
@@ -11140,7 +11529,7 @@ const preferAsync = (asyncImpl, _syncImpl) => asyncImpl;
|
|
|
11140
11529
|
};$h͏_once.loadNow(loadNow);
|
|
11141
11530
|
})()
|
|
11142
11531
|
,
|
|
11143
|
-
// ===
|
|
11532
|
+
// === 47. ses ./src/module-proxy.js ===
|
|
11144
11533
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,toStringTagSymbol,weakmapSet,assert;$h͏_imports([["./module-load.js", [["makeAlias",[$h͏_a => (makeAlias = $h͏_a)]]]],["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["reflectGet",[$h͏_a => (reflectGet = $h͏_a)]],["reflectGetOwnPropertyDescriptor",[$h͏_a => (reflectGetOwnPropertyDescriptor = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["reflectIsExtensible",[$h͏_a => (reflectIsExtensible = $h͏_a)]],["reflectPreventExtensions",[$h͏_a => (reflectPreventExtensions = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
|
|
11145
11534
|
|
|
11146
11535
|
|
|
@@ -11343,7 +11732,7 @@ const { quote: q } = assert;
|
|
|
11343
11732
|
};$h͏_once.getDeferredExports(getDeferredExports);
|
|
11344
11733
|
})()
|
|
11345
11734
|
,
|
|
11346
|
-
// ===
|
|
11735
|
+
// === 48. ses ./src/compartment-evaluate.js ===
|
|
11347
11736
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,arrayPush,create,getOwnPropertyDescriptors,evadeHtmlCommentTest,evadeImportExpressionTest,rejectSomeDirectEvalExpressions,makeSafeEvaluator;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./transforms.js", [["evadeHtmlCommentTest",[$h͏_a => (evadeHtmlCommentTest = $h͏_a)]],["evadeImportExpressionTest",[$h͏_a => (evadeImportExpressionTest = $h͏_a)]],["rejectSomeDirectEvalExpressions",[$h͏_a => (rejectSomeDirectEvalExpressions = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);
|
|
11348
11737
|
|
|
11349
11738
|
|
|
@@ -11439,7 +11828,7 @@ const { quote: q } = assert;
|
|
|
11439
11828
|
};$h͏_once.compartmentEvaluate(compartmentEvaluate);
|
|
11440
11829
|
})()
|
|
11441
11830
|
,
|
|
11442
|
-
// ===
|
|
11831
|
+
// === 49. ses ./src/module-instance.js ===
|
|
11443
11832
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,reflectHas,assign,compartmentEvaluate;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./commons.js", [["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["arraySort",[$h͏_a => (arraySort = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["keys",[$h͏_a => (keys = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]]]);
|
|
11444
11833
|
|
|
11445
11834
|
|
|
@@ -11943,7 +12332,7 @@ $h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleI
|
|
|
11943
12332
|
};$h͏_once.makeModuleInstance(makeModuleInstance);
|
|
11944
12333
|
})()
|
|
11945
12334
|
,
|
|
11946
|
-
// ===
|
|
12335
|
+
// === 50. ses ./src/module-link.js ===
|
|
11947
12336
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,makeModuleInstance,makeVirtualModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isPrimitive,mapGet,mapHas,mapSet,weakmapGet;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-instance.js", [["makeModuleInstance",[$h͏_a => (makeModuleInstance = $h͏_a)]],["makeVirtualModuleInstance",[$h͏_a => (makeVirtualModuleInstance = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $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)]]]]]);
|
|
11948
12337
|
|
|
11949
12338
|
|
|
@@ -12105,7 +12494,7 @@ function validateModuleSource(moduleSource, moduleSpecifier) {
|
|
|
12105
12494
|
};$h͏_once.instantiate(instantiate);
|
|
12106
12495
|
})()
|
|
12107
12496
|
,
|
|
12108
|
-
// ===
|
|
12497
|
+
// === 51. ses ./src/compartment.js ===
|
|
12109
12498
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Map,TypeError,WeakMap,arrayFlatMap,assign,defineProperties,identity,promiseThen,toStringTagSymbol,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,assert,assertEqual,q,sharedGlobalPropertyNames,load,loadNow,link,getDeferredExports,compartmentEvaluate,makeSafeEvaluator;$h͏_imports([["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectSymbolUnscopables",[$h͏_a => (setGlobalObjectSymbolUnscopables = $h͏_a)]],["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["assertEqual",[$h͏_a => (assertEqual = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]]]],["./permits.js", [["sharedGlobalPropertyNames",[$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]]]],["./module-load.js", [["load",[$h͏_a => (load = $h͏_a)]],["loadNow",[$h͏_a => (loadNow = $h͏_a)]]]],["./module-link.js", [["link",[$h͏_a => (link = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);
|
|
12110
12499
|
|
|
12111
12500
|
|
|
@@ -12443,9 +12832,9 @@ defineProperties(InertCompartment, {
|
|
|
12443
12832
|
{ parentCompartment = undefined, enforceNew = false } = {},
|
|
12444
12833
|
) => {
|
|
12445
12834
|
/**
|
|
12446
|
-
*
|
|
12447
|
-
* @param {CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
|
|
12835
|
+
* @param {...CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
|
|
12448
12836
|
*/
|
|
12837
|
+
/** @this {Compartment} */
|
|
12449
12838
|
function Compartment(...args) {
|
|
12450
12839
|
if (enforceNew && new.target === undefined) {
|
|
12451
12840
|
throw TypeError(
|
|
@@ -12467,7 +12856,9 @@ defineProperties(InertCompartment, {
|
|
|
12467
12856
|
importMetaHook,
|
|
12468
12857
|
__noNamespaceBox__: noNamespaceBox = false,
|
|
12469
12858
|
noAggregateLoadErrors = false,
|
|
12470
|
-
} = compartmentOptions(
|
|
12859
|
+
} = compartmentOptions(
|
|
12860
|
+
.../** @type {Parameters<typeof compartmentOptions>} */ (args),
|
|
12861
|
+
);
|
|
12471
12862
|
const globalTransforms = arrayFlatMap(
|
|
12472
12863
|
[transforms, __shimTransforms__],
|
|
12473
12864
|
identity,
|
|
@@ -12484,7 +12875,7 @@ defineProperties(InertCompartment, {
|
|
|
12484
12875
|
|
|
12485
12876
|
const globalObject = {};
|
|
12486
12877
|
|
|
12487
|
-
const compartment = this;
|
|
12878
|
+
const compartment = /** @type {Compartment} */ (this);
|
|
12488
12879
|
|
|
12489
12880
|
setGlobalObjectSymbolUnscopables(globalObject);
|
|
12490
12881
|
|
|
@@ -12505,7 +12896,7 @@ defineProperties(InertCompartment, {
|
|
|
12505
12896
|
intrinsics,
|
|
12506
12897
|
newGlobalPropertyNames: sharedGlobalPropertyNames,
|
|
12507
12898
|
makeCompartmentConstructor: targetMakeCompartmentConstructor,
|
|
12508
|
-
parentCompartment:
|
|
12899
|
+
parentCompartment: compartment,
|
|
12509
12900
|
markVirtualizedNativeFunction,
|
|
12510
12901
|
});
|
|
12511
12902
|
|
|
@@ -12557,7 +12948,7 @@ defineProperties(InertCompartment, {
|
|
|
12557
12948
|
return exportsProxy;
|
|
12558
12949
|
};
|
|
12559
12950
|
|
|
12560
|
-
weakmapSet(privateFields,
|
|
12951
|
+
weakmapSet(privateFields, compartment, {
|
|
12561
12952
|
name: `${name}`,
|
|
12562
12953
|
globalTransforms,
|
|
12563
12954
|
globalObject,
|
|
@@ -12585,8 +12976,8 @@ defineProperties(InertCompartment, {
|
|
|
12585
12976
|
};$h͏_once.makeCompartmentConstructor(makeCompartmentConstructor);
|
|
12586
12977
|
})()
|
|
12587
12978
|
,
|
|
12588
|
-
// ===
|
|
12589
|
-
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,
|
|
12979
|
+
// === 52. ses ./src/get-anonymous-intrinsics.js ===
|
|
12980
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,FERAL_FLOAT64_ARRAY,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,globalThis,assign,AsyncGeneratorFunctionInstance,ArrayBuffer,InertCompartment;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_FLOAT64_ARRAY",[$h͏_a => (FERAL_FLOAT64_ARRAY = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["iterateArray",[$h͏_a => (iterateArray = $h͏_a)]],["iterateMap",[$h͏_a => (iterateMap = $h͏_a)]],["iterateSet",[$h͏_a => (iterateSet = $h͏_a)]],["iterateString",[$h͏_a => (iterateString = $h͏_a)]],["matchAllRegExp",[$h͏_a => (matchAllRegExp = $h͏_a)]],["matchAllSymbol",[$h͏_a => (matchAllSymbol = $h͏_a)]],["regexpPrototype",[$h͏_a => (regexpPrototype = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["AsyncGeneratorFunctionInstance",[$h͏_a => (AsyncGeneratorFunctionInstance = $h͏_a)]],["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]]]],["./compartment.js", [["InertCompartment",[$h͏_a => (InertCompartment = $h͏_a)]]]]]);
|
|
12590
12981
|
|
|
12591
12982
|
|
|
12592
12983
|
|
|
@@ -12648,7 +13039,7 @@ function makeArguments() {
|
|
|
12648
13039
|
|
|
12649
13040
|
// 21.2.7.1 The %RegExpStringIteratorPrototype% Object
|
|
12650
13041
|
const RegExpStringIterator =
|
|
12651
|
-
regexpPrototype[matchAllSymbol] && matchAllRegExp(
|
|
13042
|
+
regexpPrototype[matchAllSymbol] && matchAllRegExp(/./, '');
|
|
12652
13043
|
const RegExpStringIteratorPrototype =
|
|
12653
13044
|
RegExpStringIterator && getPrototypeOf(RegExpStringIterator);
|
|
12654
13045
|
|
|
@@ -12660,7 +13051,7 @@ function makeArguments() {
|
|
|
12660
13051
|
|
|
12661
13052
|
// 22.2.1 The %TypedArray% Intrinsic Object
|
|
12662
13053
|
|
|
12663
|
-
const TypedArray = getPrototypeOf(
|
|
13054
|
+
const TypedArray = getPrototypeOf(FERAL_FLOAT64_ARRAY);
|
|
12664
13055
|
|
|
12665
13056
|
// 23.1.5.2 The %MapIteratorPrototype% Object
|
|
12666
13057
|
|
|
@@ -12768,7 +13159,7 @@ function makeArguments() {
|
|
|
12768
13159
|
};$h͏_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
|
|
12769
13160
|
})()
|
|
12770
13161
|
,
|
|
12771
|
-
// ===
|
|
13162
|
+
// === 53. ses ./src/tame-harden.js ===
|
|
12772
13163
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let freeze;$h͏_imports([["./commons.js", [["freeze",[$h͏_a => (freeze = $h͏_a)]]]]]);
|
|
12773
13164
|
|
|
12774
13165
|
|
|
@@ -12800,7 +13191,7 @@ function makeArguments() {
|
|
|
12800
13191
|
freeze(tameHarden);
|
|
12801
13192
|
})()
|
|
12802
13193
|
,
|
|
12803
|
-
// ===
|
|
13194
|
+
// === 54. ses ./src/tame-symbol-constructor.js ===
|
|
12804
13195
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap,functionBind;$h͏_imports([["./commons.js", [["Symbol",[$h͏_a => (Symbol = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["functionBind",[$h͏_a => (functionBind = $h͏_a)]]]]]);
|
|
12805
13196
|
|
|
12806
13197
|
|
|
@@ -12867,7 +13258,7 @@ freeze(tameHarden);
|
|
|
12867
13258
|
};$h͏_once.tameSymbolConstructor(tameSymbolConstructor);
|
|
12868
13259
|
})()
|
|
12869
13260
|
,
|
|
12870
|
-
// ===
|
|
13261
|
+
// === 55. ses ./src/tame-faux-data-properties.js ===
|
|
12871
13262
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getOwnPropertyDescriptor,apply,defineProperty,toStringTagSymbol;$h͏_imports([["./commons.js", [["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);
|
|
12872
13263
|
|
|
12873
13264
|
|
|
@@ -13080,7 +13471,7 @@ const throws = thunk => {
|
|
|
13080
13471
|
};$h͏_once.tameFauxDataProperties(tameFauxDataProperties);
|
|
13081
13472
|
})()
|
|
13082
13473
|
,
|
|
13083
|
-
// ===
|
|
13474
|
+
// === 56. ses ./src/tame-regenerator-runtime.js ===
|
|
13084
13475
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let defineProperty,iteratorPrototype,iteratorSymbol,hasOwn;$h͏_imports([["./commons.js", [["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["iteratorPrototype",[$h͏_a => (iteratorPrototype = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]]]);
|
|
13085
13476
|
|
|
13086
13477
|
|
|
@@ -13112,7 +13503,7 @@ const throws = thunk => {
|
|
|
13112
13503
|
};$h͏_once.tameRegeneratorRuntime(tameRegeneratorRuntime);
|
|
13113
13504
|
})()
|
|
13114
13505
|
,
|
|
13115
|
-
// ===
|
|
13506
|
+
// === 57. ses ./src/shim-arraybuffer-transfer.js ===
|
|
13116
13507
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let ArrayBuffer,arrayBufferPrototype,arrayBufferSlice,arrayBufferGetByteLength,Uint8Array,typedArraySet,globalThis,TypeError,defineProperty;$h͏_imports([["./commons.js", [["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]],["arrayBufferPrototype",[$h͏_a => (arrayBufferPrototype = $h͏_a)]],["arrayBufferSlice",[$h͏_a => (arrayBufferSlice = $h͏_a)]],["arrayBufferGetByteLength",[$h͏_a => (arrayBufferGetByteLength = $h͏_a)]],["Uint8Array",[$h͏_a => (Uint8Array = $h͏_a)]],["typedArraySet",[$h͏_a => (typedArraySet = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);
|
|
13117
13508
|
|
|
13118
13509
|
|
|
@@ -13200,7 +13591,7 @@ const throws = thunk => {
|
|
|
13200
13591
|
};$h͏_once.shimArrayBufferTransfer(shimArrayBufferTransfer);
|
|
13201
13592
|
})()
|
|
13202
13593
|
,
|
|
13203
|
-
// ===
|
|
13594
|
+
// === 58. ses ./src/reporting.js ===
|
|
13204
13595
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,assert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
|
|
13205
13596
|
|
|
13206
13597
|
|
|
@@ -13344,8 +13735,9 @@ const mute = () => {};
|
|
|
13344
13735
|
};$h͏_once.reportInGroup(reportInGroup);
|
|
13345
13736
|
})()
|
|
13346
13737
|
,
|
|
13347
|
-
// ===
|
|
13348
|
-
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,symbolFor,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["@endo/immutable-arraybuffer/shim.js", []],["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["noEvalEvaluate",[$h͏_a => (noEvalEvaluate = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener",[$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector",[$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default",[$h͏_a => (removeUnpermittedIntrinsics = $h͏_a)]]]],["./tame-function-constructors.js", [["default",[$h͏_a => (tameFunctionConstructors = $h͏_a)]]]],["./tame-date-constructor.js", [["default",[$h͏_a => (tameDateConstructor = $h͏_a)]]]],["./tame-math-object.js", [["default",[$h͏_a => (tameMathObject = $h͏_a)]]]],["./tame-regexp-constructor.js", [["default",[$h͏_a => (tameRegExpConstructor = $h͏_a)]]]],["./enable-property-overrides.js", [["default",[$h͏_a => (enablePropertyOverrides = $h͏_a)]]]],["./tame-locale-methods.js", [["default",[$h͏_a => (tameLocaleMethods = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]],["./permits.js", [["initialGlobalPropertyNames",[$h͏_a => (initialGlobalPropertyNames = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./tame-domains.js", [["tameDomains",[$h͏_a => (tameDomains = $h͏_a)]]]],["./tame-module-source.js", [["tameModuleSource",[$h͏_a => (tameModuleSource = $h͏_a)]]]],["./error/tame-console.js", [["tameConsole",[$h͏_a => (tameConsole = $h͏_a)]]]],["./error/tame-error-constructor.js", [["default",[$h͏_a => (tameErrorConstructor = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics",[$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden",[$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor",[$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties",[$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime",[$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer",[$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup",[$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);
|
|
13738
|
+
// === 59. ses ./src/lockdown.js ===
|
|
13739
|
+
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,symbolFor,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameNaNSideChannel,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["@endo/immutable-arraybuffer/shim.js", []],["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["noEvalEvaluate",[$h͏_a => (noEvalEvaluate = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener",[$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector",[$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default",[$h͏_a => (removeUnpermittedIntrinsics = $h͏_a)]]]],["./tame-function-constructors.js", [["default",[$h͏_a => (tameFunctionConstructors = $h͏_a)]]]],["./tame-date-constructor.js", [["default",[$h͏_a => (tameDateConstructor = $h͏_a)]]]],["./tame-math-object.js", [["default",[$h͏_a => (tameMathObject = $h͏_a)]]]],["./tame-nan-sidechannel.js", [["tameNaNSideChannel",[$h͏_a => (tameNaNSideChannel = $h͏_a)]]]],["./tame-regexp-constructor.js", [["default",[$h͏_a => (tameRegExpConstructor = $h͏_a)]]]],["./enable-property-overrides.js", [["default",[$h͏_a => (enablePropertyOverrides = $h͏_a)]]]],["./tame-locale-methods.js", [["default",[$h͏_a => (tameLocaleMethods = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]],["./permits.js", [["initialGlobalPropertyNames",[$h͏_a => (initialGlobalPropertyNames = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./tame-domains.js", [["tameDomains",[$h͏_a => (tameDomains = $h͏_a)]]]],["./tame-module-source.js", [["tameModuleSource",[$h͏_a => (tameModuleSource = $h͏_a)]]]],["./error/tame-console.js", [["tameConsole",[$h͏_a => (tameConsole = $h͏_a)]]]],["./error/tame-error-constructor.js", [["default",[$h͏_a => (tameErrorConstructor = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics",[$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden",[$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor",[$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties",[$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime",[$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer",[$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup",[$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);
|
|
13740
|
+
|
|
13349
13741
|
|
|
13350
13742
|
|
|
13351
13743
|
|
|
@@ -13700,6 +14092,7 @@ const probeHostEvaluators = () => {
|
|
|
13700
14092
|
addIntrinsics(tameDateConstructor());
|
|
13701
14093
|
addIntrinsics(tameErrorConstructor(errorTaming, stackFiltering));
|
|
13702
14094
|
addIntrinsics(tameMathObject());
|
|
14095
|
+
tameNaNSideChannel();
|
|
13703
14096
|
addIntrinsics(tameRegExpConstructor(regExpTaming));
|
|
13704
14097
|
addIntrinsics(tameSymbolConstructor());
|
|
13705
14098
|
addIntrinsics(shimArrayBufferTransfer());
|
|
@@ -13927,7 +14320,7 @@ const probeHostEvaluators = () => {
|
|
|
13927
14320
|
};$h͏_once.repairIntrinsics(repairIntrinsics);
|
|
13928
14321
|
})()
|
|
13929
14322
|
,
|
|
13930
|
-
// ===
|
|
14323
|
+
// === 60. ses ./src/lockdown-shim.js ===
|
|
13931
14324
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,repairIntrinsics;$h͏_imports([["./assert-sloppy-mode.js", []],["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./lockdown.js", [["repairIntrinsics",[$h͏_a => (repairIntrinsics = $h͏_a)]]]]]);
|
|
13932
14325
|
|
|
13933
14326
|
|
|
@@ -13967,7 +14360,7 @@ globalThis.repairIntrinsics = options => {
|
|
|
13967
14360
|
};
|
|
13968
14361
|
})()
|
|
13969
14362
|
,
|
|
13970
|
-
// ===
|
|
14363
|
+
// === 61. ses ./src/compartment-shim.js ===
|
|
13971
14364
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics,chooseReporter;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./intrinsics.js", [["getGlobalIntrinsics",[$h͏_a => (getGlobalIntrinsics = $h͏_a)]]]],["./reporting.js", [["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);
|
|
13972
14365
|
|
|
13973
14366
|
|
|
@@ -13992,14 +14385,14 @@ globalThis.Compartment = makeCompartmentConstructor(
|
|
|
13992
14385
|
);
|
|
13993
14386
|
})()
|
|
13994
14387
|
,
|
|
13995
|
-
// ===
|
|
14388
|
+
// === 62. ses ./src/assert-shim.js ===
|
|
13996
14389
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeAssert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]]]);
|
|
13997
14390
|
|
|
13998
14391
|
|
|
13999
14392
|
globalThis.assert = makeAssert(undefined, true);
|
|
14000
14393
|
})()
|
|
14001
14394
|
,
|
|
14002
|
-
// ===
|
|
14395
|
+
// === 63. ses ./src/console-shim.js ===
|
|
14003
14396
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let symbolFor,globalThis,defineCausalConsoleFromLogger,loggedErrorHandler;$h͏_imports([["./commons.js", [["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/console.js", [["defineCausalConsoleFromLogger",[$h͏_a => (defineCausalConsoleFromLogger = $h͏_a)]]]],["./error/assert.js", [["loggedErrorHandler",[$h͏_a => (loggedErrorHandler = $h͏_a)]]]]]);
|
|
14004
14397
|
|
|
14005
14398
|
|
|
@@ -14052,7 +14445,7 @@ globalThis[MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA] =
|
|
|
14052
14445
|
makeCausalConsoleFromLoggerForSesAva;
|
|
14053
14446
|
})()
|
|
14054
14447
|
,
|
|
14055
|
-
// ===
|
|
14448
|
+
// === 64. ses ./index.js ===
|
|
14056
14449
|
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/lockdown-shim.js", []],["./src/compartment-shim.js", []],["./src/assert-shim.js", []],["./src/console-shim.js", []]]);
|
|
14057
14450
|
})()
|
|
14058
14451
|
,
|