ses 0.15.0 → 0.15.4
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/CHANGELOG.md +51 -0
- package/NEWS.md +25 -0
- package/README.md +204 -10
- package/SECURITY.md +30 -17
- package/dist/lockdown.cjs +1199 -2149
- package/dist/lockdown.mjs +1199 -2149
- package/dist/lockdown.umd.js +1199 -2149
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +1199 -2149
- package/dist/ses.mjs +1199 -2149
- package/dist/ses.umd.js +1199 -2149
- package/dist/ses.umd.min.js +1 -1
- package/index.d.ts +3 -2
- package/package.json +9 -10
- package/src/commons.js +1 -0
- package/src/error/tame-console.js +1 -3
- package/src/lockdown-shim.js +35 -0
- package/src/make-hardener.js +2 -2
- package/src/tame-locale-methods.js +12 -0
- package/src/whitelist-intrinsics.js +3 -3
- package/src/whitelist.js +19 -0
package/dist/ses.cjs
CHANGED
|
@@ -1,2004 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value = newValue;
|
|
7
|
-
for (const observe of observers) {
|
|
8
|
-
observe(value);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function get() {
|
|
12
|
-
return value;
|
|
13
|
-
}
|
|
14
|
-
function observe(observe) {
|
|
15
|
-
observers.push(observe);
|
|
16
|
-
observe(value);
|
|
17
|
-
}
|
|
18
|
-
return { get, set, observe, enumerable: true };
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const cells = [{
|
|
22
|
-
globalThis: cell("globalThis"),
|
|
23
|
-
Array: cell("Array"),
|
|
24
|
-
Date: cell("Date"),
|
|
25
|
-
Float32Array: cell("Float32Array"),
|
|
26
|
-
JSON: cell("JSON"),
|
|
27
|
-
Map: cell("Map"),
|
|
28
|
-
Math: cell("Math"),
|
|
29
|
-
Object: cell("Object"),
|
|
30
|
-
Promise: cell("Promise"),
|
|
31
|
-
Proxy: cell("Proxy"),
|
|
32
|
-
Reflect: cell("Reflect"),
|
|
33
|
-
FERAL_REG_EXP: cell("FERAL_REG_EXP"),
|
|
34
|
-
Set: cell("Set"),
|
|
35
|
-
String: cell("String"),
|
|
36
|
-
WeakMap: cell("WeakMap"),
|
|
37
|
-
WeakSet: cell("WeakSet"),
|
|
38
|
-
FERAL_ERROR: cell("FERAL_ERROR"),
|
|
39
|
-
RangeError: cell("RangeError"),
|
|
40
|
-
ReferenceError: cell("ReferenceError"),
|
|
41
|
-
SyntaxError: cell("SyntaxError"),
|
|
42
|
-
TypeError: cell("TypeError"),
|
|
43
|
-
assign: cell("assign"),
|
|
44
|
-
create: cell("create"),
|
|
45
|
-
defineProperties: cell("defineProperties"),
|
|
46
|
-
entries: cell("entries"),
|
|
47
|
-
freeze: cell("freeze"),
|
|
48
|
-
getOwnPropertyDescriptor: cell("getOwnPropertyDescriptor"),
|
|
49
|
-
getOwnPropertyDescriptors: cell("getOwnPropertyDescriptors"),
|
|
50
|
-
getOwnPropertyNames: cell("getOwnPropertyNames"),
|
|
51
|
-
getPrototypeOf: cell("getPrototypeOf"),
|
|
52
|
-
is: cell("is"),
|
|
53
|
-
isExtensible: cell("isExtensible"),
|
|
54
|
-
keys: cell("keys"),
|
|
55
|
-
objectPrototype: cell("objectPrototype"),
|
|
56
|
-
seal: cell("seal"),
|
|
57
|
-
setPrototypeOf: cell("setPrototypeOf"),
|
|
58
|
-
values: cell("values"),
|
|
59
|
-
speciesSymbol: cell("speciesSymbol"),
|
|
60
|
-
toStringTagSymbol: cell("toStringTagSymbol"),
|
|
61
|
-
iteratorSymbol: cell("iteratorSymbol"),
|
|
62
|
-
matchAllSymbol: cell("matchAllSymbol"),
|
|
63
|
-
stringifyJson: cell("stringifyJson"),
|
|
64
|
-
fromEntries: cell("fromEntries"),
|
|
65
|
-
defineProperty: cell("defineProperty"),
|
|
66
|
-
apply: cell("apply"),
|
|
67
|
-
construct: cell("construct"),
|
|
68
|
-
reflectGet: cell("reflectGet"),
|
|
69
|
-
reflectGetOwnPropertyDescriptor: cell("reflectGetOwnPropertyDescriptor"),
|
|
70
|
-
reflectHas: cell("reflectHas"),
|
|
71
|
-
reflectIsExtensible: cell("reflectIsExtensible"),
|
|
72
|
-
ownKeys: cell("ownKeys"),
|
|
73
|
-
reflectPreventExtensions: cell("reflectPreventExtensions"),
|
|
74
|
-
reflectSet: cell("reflectSet"),
|
|
75
|
-
isArray: cell("isArray"),
|
|
76
|
-
arrayPrototype: cell("arrayPrototype"),
|
|
77
|
-
mapPrototype: cell("mapPrototype"),
|
|
78
|
-
proxyRevocable: cell("proxyRevocable"),
|
|
79
|
-
regexpPrototype: cell("regexpPrototype"),
|
|
80
|
-
setPrototype: cell("setPrototype"),
|
|
81
|
-
stringPrototype: cell("stringPrototype"),
|
|
82
|
-
weakmapPrototype: cell("weakmapPrototype"),
|
|
83
|
-
weaksetPrototype: cell("weaksetPrototype"),
|
|
84
|
-
functionPrototype: cell("functionPrototype"),
|
|
85
|
-
promisePrototype: cell("promisePrototype"),
|
|
86
|
-
uncurryThis: cell("uncurryThis"),
|
|
87
|
-
objectHasOwnProperty: cell("objectHasOwnProperty"),
|
|
88
|
-
arrayFilter: cell("arrayFilter"),
|
|
89
|
-
arrayForEach: cell("arrayForEach"),
|
|
90
|
-
arrayIncludes: cell("arrayIncludes"),
|
|
91
|
-
arrayJoin: cell("arrayJoin"),
|
|
92
|
-
arrayMap: cell("arrayMap"),
|
|
93
|
-
arrayPop: cell("arrayPop"),
|
|
94
|
-
arrayPush: cell("arrayPush"),
|
|
95
|
-
arraySlice: cell("arraySlice"),
|
|
96
|
-
arraySome: cell("arraySome"),
|
|
97
|
-
arraySort: cell("arraySort"),
|
|
98
|
-
iterateArray: cell("iterateArray"),
|
|
99
|
-
mapSet: cell("mapSet"),
|
|
100
|
-
mapGet: cell("mapGet"),
|
|
101
|
-
mapHas: cell("mapHas"),
|
|
102
|
-
iterateMap: cell("iterateMap"),
|
|
103
|
-
setAdd: cell("setAdd"),
|
|
104
|
-
setForEach: cell("setForEach"),
|
|
105
|
-
setHas: cell("setHas"),
|
|
106
|
-
iterateSet: cell("iterateSet"),
|
|
107
|
-
regexpTest: cell("regexpTest"),
|
|
108
|
-
regexpExec: cell("regexpExec"),
|
|
109
|
-
matchAllRegExp: cell("matchAllRegExp"),
|
|
110
|
-
stringEndsWith: cell("stringEndsWith"),
|
|
111
|
-
stringIncludes: cell("stringIncludes"),
|
|
112
|
-
stringIndexOf: cell("stringIndexOf"),
|
|
113
|
-
stringMatch: cell("stringMatch"),
|
|
114
|
-
stringReplace: cell("stringReplace"),
|
|
115
|
-
stringSearch: cell("stringSearch"),
|
|
116
|
-
stringSlice: cell("stringSlice"),
|
|
117
|
-
stringSplit: cell("stringSplit"),
|
|
118
|
-
stringStartsWith: cell("stringStartsWith"),
|
|
119
|
-
iterateString: cell("iterateString"),
|
|
120
|
-
weakmapDelete: cell("weakmapDelete"),
|
|
121
|
-
weakmapGet: cell("weakmapGet"),
|
|
122
|
-
weakmapHas: cell("weakmapHas"),
|
|
123
|
-
weakmapSet: cell("weakmapSet"),
|
|
124
|
-
weaksetAdd: cell("weaksetAdd"),
|
|
125
|
-
weaksetGet: cell("weaksetGet"),
|
|
126
|
-
weaksetHas: cell("weaksetHas"),
|
|
127
|
-
functionToString: cell("functionToString"),
|
|
128
|
-
promiseAll: cell("promiseAll"),
|
|
129
|
-
promiseCatch: cell("promiseCatch"),
|
|
130
|
-
promiseThen: cell("promiseThen"),
|
|
131
|
-
getConstructorOf: cell("getConstructorOf"),
|
|
132
|
-
immutableObject: cell("immutableObject"),
|
|
133
|
-
isObject: cell("isObject"),
|
|
134
|
-
isError: cell("isError"),
|
|
135
|
-
FERAL_EVAL: cell("FERAL_EVAL"),
|
|
136
|
-
FERAL_FUNCTION: cell("FERAL_FUNCTION"),
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
},{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
},{
|
|
143
|
-
an: cell("an"),
|
|
144
|
-
bestEffortStringify: cell("bestEffortStringify"),
|
|
145
|
-
enJoin: cell("enJoin"),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
},{
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
},{
|
|
152
|
-
unredactedDetails: cell("unredactedDetails"),
|
|
153
|
-
loggedErrorHandler: cell("loggedErrorHandler"),
|
|
154
|
-
makeAssert: cell("makeAssert"),
|
|
155
|
-
assert: cell("assert"),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
},{
|
|
159
|
-
makeEvaluateFactory: cell("makeEvaluateFactory"),
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
},{
|
|
163
|
-
isValidIdentifierName: cell("isValidIdentifierName"),
|
|
164
|
-
getScopeConstants: cell("getScopeConstants"),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
},{
|
|
168
|
-
createScopeHandler: cell("createScopeHandler"),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
},{
|
|
172
|
-
getSourceURL: cell("getSourceURL"),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
},{
|
|
176
|
-
rejectHtmlComments: cell("rejectHtmlComments"),
|
|
177
|
-
evadeHtmlCommentTest: cell("evadeHtmlCommentTest"),
|
|
178
|
-
rejectImportExpressions: cell("rejectImportExpressions"),
|
|
179
|
-
evadeImportExpressionTest: cell("evadeImportExpressionTest"),
|
|
180
|
-
rejectSomeDirectEvalExpressions: cell("rejectSomeDirectEvalExpressions"),
|
|
181
|
-
mandatoryTransforms: cell("mandatoryTransforms"),
|
|
182
|
-
applyTransforms: cell("applyTransforms"),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
},{
|
|
186
|
-
makeSafeEvaluator: cell("makeSafeEvaluator"),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
},{
|
|
190
|
-
provideCompartmentEvaluator: cell("provideCompartmentEvaluator"),
|
|
191
|
-
compartmentEvaluate: cell("compartmentEvaluate"),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
},{
|
|
195
|
-
makeEvalFunction: cell("makeEvalFunction"),
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
},{
|
|
199
|
-
makeFunctionConstructor: cell("makeFunctionConstructor"),
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
},{
|
|
203
|
-
constantProperties: cell("constantProperties"),
|
|
204
|
-
universalPropertyNames: cell("universalPropertyNames"),
|
|
205
|
-
initialGlobalPropertyNames: cell("initialGlobalPropertyNames"),
|
|
206
|
-
sharedGlobalPropertyNames: cell("sharedGlobalPropertyNames"),
|
|
207
|
-
uniqueGlobalPropertyNames: cell("uniqueGlobalPropertyNames"),
|
|
208
|
-
NativeErrors: cell("NativeErrors"),
|
|
209
|
-
FunctionInstance: cell("FunctionInstance"),
|
|
210
|
-
isAccessorPermit: cell("isAccessorPermit"),
|
|
211
|
-
whitelist: cell("whitelist"),
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
},{
|
|
215
|
-
setGlobalObjectConstantProperties: cell("setGlobalObjectConstantProperties"),
|
|
216
|
-
setGlobalObjectMutableProperties: cell("setGlobalObjectMutableProperties"),
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
},{
|
|
220
|
-
makeAlias: cell("makeAlias"),
|
|
221
|
-
load: cell("load"),
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
},{
|
|
225
|
-
deferExports: cell("deferExports"),
|
|
226
|
-
getDeferredExports: cell("getDeferredExports"),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
},{
|
|
230
|
-
makeThirdPartyModuleInstance: cell("makeThirdPartyModuleInstance"),
|
|
231
|
-
makeModuleInstance: cell("makeModuleInstance"),
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
},{
|
|
235
|
-
link: cell("link"),
|
|
236
|
-
instantiate: cell("instantiate"),
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
},{
|
|
240
|
-
InertCompartment: cell("InertCompartment"),
|
|
241
|
-
CompartmentPrototype: cell("CompartmentPrototype"),
|
|
242
|
-
makeCompartmentConstructor: cell("makeCompartmentConstructor"),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
},{
|
|
246
|
-
makeIntrinsicsCollector: cell("makeIntrinsicsCollector"),
|
|
247
|
-
getGlobalIntrinsics: cell("getGlobalIntrinsics"),
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
},{
|
|
251
|
-
minEnablements: cell("minEnablements"),
|
|
252
|
-
moderateEnablements: cell("moderateEnablements"),
|
|
253
|
-
severeEnablements: cell("severeEnablements"),
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
},{
|
|
257
|
-
default: cell("default"),
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
},{
|
|
261
|
-
makeEnvironmentCaptor: cell("makeEnvironmentCaptor"),
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
},{
|
|
265
|
-
makeLoggingConsoleKit: cell("makeLoggingConsoleKit"),
|
|
266
|
-
makeCausalConsole: cell("makeCausalConsole"),
|
|
267
|
-
filterConsole: cell("filterConsole"),
|
|
268
|
-
consoleWhitelist: cell("consoleWhitelist"),
|
|
269
|
-
BASE_CONSOLE_LEVEL: cell("BASE_CONSOLE_LEVEL"),
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
},{
|
|
273
|
-
tameConsole: cell("tameConsole"),
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
},{
|
|
277
|
-
filterFileName: cell("filterFileName"),
|
|
278
|
-
shortenCallSiteString: cell("shortenCallSiteString"),
|
|
279
|
-
tameV8ErrorConstructor: cell("tameV8ErrorConstructor"),
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
},{
|
|
283
|
-
default: cell("default"),
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
},{
|
|
287
|
-
getAnonymousIntrinsics: cell("getAnonymousIntrinsics"),
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
},{
|
|
291
|
-
makeHardener: cell("makeHardener"),
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
},{
|
|
295
|
-
default: cell("default"),
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
},{
|
|
299
|
-
tameDomains: cell("tameDomains"),
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
},{
|
|
303
|
-
default: cell("default"),
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
},{
|
|
307
|
-
tameFunctionToString: cell("tameFunctionToString"),
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
},{
|
|
311
|
-
default: cell("default"),
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
},{
|
|
315
|
-
default: cell("default"),
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
},{
|
|
319
|
-
default: cell("default"),
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
},{
|
|
323
|
-
default: cell("default"),
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
},{
|
|
327
|
-
repairIntrinsics: cell("repairIntrinsics"),
|
|
328
|
-
lockdown: cell("lockdown"),
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
},{
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
},];
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
const namespaces = cells.map(cells => Object.create(null, cells));
|
|
339
|
-
|
|
340
|
-
for (let index = 0; index < namespaces.length; index += 1) {
|
|
341
|
-
cells[index]['*'] = cell('*', namespaces[index]);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
functors[0]({
|
|
345
|
-
imports(entries) {
|
|
346
|
-
const map = new Map(entries);
|
|
347
|
-
|
|
348
|
-
},
|
|
349
|
-
liveVar: {
|
|
350
|
-
|
|
351
|
-
},
|
|
352
|
-
onceVar: {
|
|
353
|
-
universalThis: cells[0].globalThis.set,
|
|
354
|
-
Array: cells[0].Array.set,
|
|
355
|
-
Date: cells[0].Date.set,
|
|
356
|
-
Float32Array: cells[0].Float32Array.set,
|
|
357
|
-
JSON: cells[0].JSON.set,
|
|
358
|
-
Map: cells[0].Map.set,
|
|
359
|
-
Math: cells[0].Math.set,
|
|
360
|
-
Object: cells[0].Object.set,
|
|
361
|
-
Promise: cells[0].Promise.set,
|
|
362
|
-
Proxy: cells[0].Proxy.set,
|
|
363
|
-
Reflect: cells[0].Reflect.set,
|
|
364
|
-
FERAL_REG_EXP: cells[0].FERAL_REG_EXP.set,
|
|
365
|
-
Set: cells[0].Set.set,
|
|
366
|
-
String: cells[0].String.set,
|
|
367
|
-
WeakMap: cells[0].WeakMap.set,
|
|
368
|
-
WeakSet: cells[0].WeakSet.set,
|
|
369
|
-
FERAL_ERROR: cells[0].FERAL_ERROR.set,
|
|
370
|
-
RangeError: cells[0].RangeError.set,
|
|
371
|
-
ReferenceError: cells[0].ReferenceError.set,
|
|
372
|
-
SyntaxError: cells[0].SyntaxError.set,
|
|
373
|
-
TypeError: cells[0].TypeError.set,
|
|
374
|
-
assign: cells[0].assign.set,
|
|
375
|
-
create: cells[0].create.set,
|
|
376
|
-
defineProperties: cells[0].defineProperties.set,
|
|
377
|
-
entries: cells[0].entries.set,
|
|
378
|
-
freeze: cells[0].freeze.set,
|
|
379
|
-
getOwnPropertyDescriptor: cells[0].getOwnPropertyDescriptor.set,
|
|
380
|
-
getOwnPropertyDescriptors: cells[0].getOwnPropertyDescriptors.set,
|
|
381
|
-
getOwnPropertyNames: cells[0].getOwnPropertyNames.set,
|
|
382
|
-
getPrototypeOf: cells[0].getPrototypeOf.set,
|
|
383
|
-
is: cells[0].is.set,
|
|
384
|
-
isExtensible: cells[0].isExtensible.set,
|
|
385
|
-
keys: cells[0].keys.set,
|
|
386
|
-
objectPrototype: cells[0].objectPrototype.set,
|
|
387
|
-
seal: cells[0].seal.set,
|
|
388
|
-
setPrototypeOf: cells[0].setPrototypeOf.set,
|
|
389
|
-
values: cells[0].values.set,
|
|
390
|
-
speciesSymbol: cells[0].speciesSymbol.set,
|
|
391
|
-
toStringTagSymbol: cells[0].toStringTagSymbol.set,
|
|
392
|
-
iteratorSymbol: cells[0].iteratorSymbol.set,
|
|
393
|
-
matchAllSymbol: cells[0].matchAllSymbol.set,
|
|
394
|
-
stringifyJson: cells[0].stringifyJson.set,
|
|
395
|
-
fromEntries: cells[0].fromEntries.set,
|
|
396
|
-
defineProperty: cells[0].defineProperty.set,
|
|
397
|
-
apply: cells[0].apply.set,
|
|
398
|
-
construct: cells[0].construct.set,
|
|
399
|
-
reflectGet: cells[0].reflectGet.set,
|
|
400
|
-
reflectGetOwnPropertyDescriptor: cells[0].reflectGetOwnPropertyDescriptor.set,
|
|
401
|
-
reflectHas: cells[0].reflectHas.set,
|
|
402
|
-
reflectIsExtensible: cells[0].reflectIsExtensible.set,
|
|
403
|
-
ownKeys: cells[0].ownKeys.set,
|
|
404
|
-
reflectPreventExtensions: cells[0].reflectPreventExtensions.set,
|
|
405
|
-
reflectSet: cells[0].reflectSet.set,
|
|
406
|
-
isArray: cells[0].isArray.set,
|
|
407
|
-
arrayPrototype: cells[0].arrayPrototype.set,
|
|
408
|
-
mapPrototype: cells[0].mapPrototype.set,
|
|
409
|
-
proxyRevocable: cells[0].proxyRevocable.set,
|
|
410
|
-
regexpPrototype: cells[0].regexpPrototype.set,
|
|
411
|
-
setPrototype: cells[0].setPrototype.set,
|
|
412
|
-
stringPrototype: cells[0].stringPrototype.set,
|
|
413
|
-
weakmapPrototype: cells[0].weakmapPrototype.set,
|
|
414
|
-
weaksetPrototype: cells[0].weaksetPrototype.set,
|
|
415
|
-
functionPrototype: cells[0].functionPrototype.set,
|
|
416
|
-
promisePrototype: cells[0].promisePrototype.set,
|
|
417
|
-
uncurryThis: cells[0].uncurryThis.set,
|
|
418
|
-
objectHasOwnProperty: cells[0].objectHasOwnProperty.set,
|
|
419
|
-
arrayFilter: cells[0].arrayFilter.set,
|
|
420
|
-
arrayForEach: cells[0].arrayForEach.set,
|
|
421
|
-
arrayIncludes: cells[0].arrayIncludes.set,
|
|
422
|
-
arrayJoin: cells[0].arrayJoin.set,
|
|
423
|
-
arrayMap: cells[0].arrayMap.set,
|
|
424
|
-
arrayPop: cells[0].arrayPop.set,
|
|
425
|
-
arrayPush: cells[0].arrayPush.set,
|
|
426
|
-
arraySlice: cells[0].arraySlice.set,
|
|
427
|
-
arraySome: cells[0].arraySome.set,
|
|
428
|
-
arraySort: cells[0].arraySort.set,
|
|
429
|
-
iterateArray: cells[0].iterateArray.set,
|
|
430
|
-
mapSet: cells[0].mapSet.set,
|
|
431
|
-
mapGet: cells[0].mapGet.set,
|
|
432
|
-
mapHas: cells[0].mapHas.set,
|
|
433
|
-
iterateMap: cells[0].iterateMap.set,
|
|
434
|
-
setAdd: cells[0].setAdd.set,
|
|
435
|
-
setForEach: cells[0].setForEach.set,
|
|
436
|
-
setHas: cells[0].setHas.set,
|
|
437
|
-
iterateSet: cells[0].iterateSet.set,
|
|
438
|
-
regexpTest: cells[0].regexpTest.set,
|
|
439
|
-
regexpExec: cells[0].regexpExec.set,
|
|
440
|
-
matchAllRegExp: cells[0].matchAllRegExp.set,
|
|
441
|
-
stringEndsWith: cells[0].stringEndsWith.set,
|
|
442
|
-
stringIncludes: cells[0].stringIncludes.set,
|
|
443
|
-
stringIndexOf: cells[0].stringIndexOf.set,
|
|
444
|
-
stringMatch: cells[0].stringMatch.set,
|
|
445
|
-
stringReplace: cells[0].stringReplace.set,
|
|
446
|
-
stringSearch: cells[0].stringSearch.set,
|
|
447
|
-
stringSlice: cells[0].stringSlice.set,
|
|
448
|
-
stringSplit: cells[0].stringSplit.set,
|
|
449
|
-
stringStartsWith: cells[0].stringStartsWith.set,
|
|
450
|
-
iterateString: cells[0].iterateString.set,
|
|
451
|
-
weakmapDelete: cells[0].weakmapDelete.set,
|
|
452
|
-
weakmapGet: cells[0].weakmapGet.set,
|
|
453
|
-
weakmapHas: cells[0].weakmapHas.set,
|
|
454
|
-
weakmapSet: cells[0].weakmapSet.set,
|
|
455
|
-
weaksetAdd: cells[0].weaksetAdd.set,
|
|
456
|
-
weaksetGet: cells[0].weaksetGet.set,
|
|
457
|
-
weaksetHas: cells[0].weaksetHas.set,
|
|
458
|
-
functionToString: cells[0].functionToString.set,
|
|
459
|
-
promiseAll: cells[0].promiseAll.set,
|
|
460
|
-
promiseCatch: cells[0].promiseCatch.set,
|
|
461
|
-
promiseThen: cells[0].promiseThen.set,
|
|
462
|
-
getConstructorOf: cells[0].getConstructorOf.set,
|
|
463
|
-
immutableObject: cells[0].immutableObject.set,
|
|
464
|
-
isObject: cells[0].isObject.set,
|
|
465
|
-
isError: cells[0].isError.set,
|
|
466
|
-
FERAL_EVAL: cells[0].FERAL_EVAL.set,
|
|
467
|
-
FERAL_FUNCTION: cells[0].FERAL_FUNCTION.set,
|
|
468
|
-
|
|
469
|
-
},
|
|
470
|
-
});
|
|
471
|
-
functors[1]({
|
|
472
|
-
imports(entries) {
|
|
473
|
-
const map = new Map(entries);
|
|
474
|
-
|
|
475
|
-
},
|
|
476
|
-
liveVar: {
|
|
477
|
-
|
|
478
|
-
},
|
|
479
|
-
onceVar: {
|
|
480
|
-
|
|
481
|
-
},
|
|
482
|
-
});
|
|
483
|
-
functors[2]({
|
|
484
|
-
imports(entries) {
|
|
485
|
-
const map = new Map(entries);
|
|
486
|
-
for (const [name, observers] of map.get("../commons.js")) {
|
|
487
|
-
const cell = cells[0][name];
|
|
488
|
-
if (cell === undefined) {
|
|
489
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
490
|
-
}
|
|
491
|
-
for (const observer of observers) {
|
|
492
|
-
cell.observe(observer);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
},
|
|
497
|
-
liveVar: {
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
onceVar: {
|
|
501
|
-
an: cells[2].an.set,
|
|
502
|
-
bestEffortStringify: cells[2].bestEffortStringify.set,
|
|
503
|
-
enJoin: cells[2].enJoin.set,
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
});
|
|
507
|
-
functors[3]({
|
|
508
|
-
imports(entries) {
|
|
509
|
-
const map = new Map(entries);
|
|
510
|
-
|
|
511
|
-
},
|
|
512
|
-
liveVar: {
|
|
513
|
-
|
|
514
|
-
},
|
|
515
|
-
onceVar: {
|
|
516
|
-
|
|
517
|
-
},
|
|
518
|
-
});
|
|
519
|
-
functors[4]({
|
|
520
|
-
imports(entries) {
|
|
521
|
-
const map = new Map(entries);
|
|
522
|
-
for (const [name, observers] of map.get("../commons.js")) {
|
|
523
|
-
const cell = cells[0][name];
|
|
524
|
-
if (cell === undefined) {
|
|
525
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
526
|
-
}
|
|
527
|
-
for (const observer of observers) {
|
|
528
|
-
cell.observe(observer);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
for (const [name, observers] of map.get("./internal-types.js")) {
|
|
532
|
-
const cell = cells[1][name];
|
|
533
|
-
if (cell === undefined) {
|
|
534
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
535
|
-
}
|
|
536
|
-
for (const observer of observers) {
|
|
537
|
-
cell.observe(observer);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
for (const [name, observers] of map.get("./stringify-utils.js")) {
|
|
541
|
-
const cell = cells[2][name];
|
|
542
|
-
if (cell === undefined) {
|
|
543
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
544
|
-
}
|
|
545
|
-
for (const observer of observers) {
|
|
546
|
-
cell.observe(observer);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
for (const [name, observers] of map.get("./types.js")) {
|
|
550
|
-
const cell = cells[3][name];
|
|
551
|
-
if (cell === undefined) {
|
|
552
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
553
|
-
}
|
|
554
|
-
for (const observer of observers) {
|
|
555
|
-
cell.observe(observer);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
},
|
|
560
|
-
liveVar: {
|
|
561
|
-
|
|
562
|
-
},
|
|
563
|
-
onceVar: {
|
|
564
|
-
unredactedDetails: cells[4].unredactedDetails.set,
|
|
565
|
-
loggedErrorHandler: cells[4].loggedErrorHandler.set,
|
|
566
|
-
makeAssert: cells[4].makeAssert.set,
|
|
567
|
-
assert: cells[4].assert.set,
|
|
568
|
-
|
|
569
|
-
},
|
|
570
|
-
});
|
|
571
|
-
functors[5]({
|
|
572
|
-
imports(entries) {
|
|
573
|
-
const map = new Map(entries);
|
|
574
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
575
|
-
const cell = cells[0][name];
|
|
576
|
-
if (cell === undefined) {
|
|
577
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
578
|
-
}
|
|
579
|
-
for (const observer of observers) {
|
|
580
|
-
cell.observe(observer);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
},
|
|
585
|
-
liveVar: {
|
|
586
|
-
|
|
587
|
-
},
|
|
588
|
-
onceVar: {
|
|
589
|
-
makeEvaluateFactory: cells[5].makeEvaluateFactory.set,
|
|
590
|
-
|
|
591
|
-
},
|
|
592
|
-
});
|
|
593
|
-
functors[6]({
|
|
594
|
-
imports(entries) {
|
|
595
|
-
const map = new Map(entries);
|
|
596
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
597
|
-
const cell = cells[0][name];
|
|
598
|
-
if (cell === undefined) {
|
|
599
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
600
|
-
}
|
|
601
|
-
for (const observer of observers) {
|
|
602
|
-
cell.observe(observer);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
},
|
|
607
|
-
liveVar: {
|
|
608
|
-
|
|
609
|
-
},
|
|
610
|
-
onceVar: {
|
|
611
|
-
isValidIdentifierName: cells[6].isValidIdentifierName.set,
|
|
612
|
-
getScopeConstants: cells[6].getScopeConstants.set,
|
|
613
|
-
|
|
614
|
-
},
|
|
615
|
-
});
|
|
616
|
-
functors[7]({
|
|
617
|
-
imports(entries) {
|
|
618
|
-
const map = new Map(entries);
|
|
619
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
620
|
-
const cell = cells[0][name];
|
|
621
|
-
if (cell === undefined) {
|
|
622
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
623
|
-
}
|
|
624
|
-
for (const observer of observers) {
|
|
625
|
-
cell.observe(observer);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
629
|
-
const cell = cells[4][name];
|
|
630
|
-
if (cell === undefined) {
|
|
631
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
632
|
-
}
|
|
633
|
-
for (const observer of observers) {
|
|
634
|
-
cell.observe(observer);
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
},
|
|
639
|
-
liveVar: {
|
|
640
|
-
|
|
641
|
-
},
|
|
642
|
-
onceVar: {
|
|
643
|
-
createScopeHandler: cells[7].createScopeHandler.set,
|
|
644
|
-
|
|
645
|
-
},
|
|
646
|
-
});
|
|
647
|
-
functors[8]({
|
|
648
|
-
imports(entries) {
|
|
649
|
-
const map = new Map(entries);
|
|
650
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
651
|
-
const cell = cells[0][name];
|
|
652
|
-
if (cell === undefined) {
|
|
653
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
654
|
-
}
|
|
655
|
-
for (const observer of observers) {
|
|
656
|
-
cell.observe(observer);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
},
|
|
661
|
-
liveVar: {
|
|
662
|
-
|
|
663
|
-
},
|
|
664
|
-
onceVar: {
|
|
665
|
-
getSourceURL: cells[8].getSourceURL.set,
|
|
666
|
-
|
|
667
|
-
},
|
|
668
|
-
});
|
|
669
|
-
functors[9]({
|
|
670
|
-
imports(entries) {
|
|
671
|
-
const map = new Map(entries);
|
|
672
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
673
|
-
const cell = cells[0][name];
|
|
674
|
-
if (cell === undefined) {
|
|
675
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
676
|
-
}
|
|
677
|
-
for (const observer of observers) {
|
|
678
|
-
cell.observe(observer);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
for (const [name, observers] of map.get("./get-source-url.js")) {
|
|
682
|
-
const cell = cells[8][name];
|
|
683
|
-
if (cell === undefined) {
|
|
684
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
685
|
-
}
|
|
686
|
-
for (const observer of observers) {
|
|
687
|
-
cell.observe(observer);
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
},
|
|
692
|
-
liveVar: {
|
|
693
|
-
|
|
694
|
-
},
|
|
695
|
-
onceVar: {
|
|
696
|
-
rejectHtmlComments: cells[9].rejectHtmlComments.set,
|
|
697
|
-
evadeHtmlCommentTest: cells[9].evadeHtmlCommentTest.set,
|
|
698
|
-
rejectImportExpressions: cells[9].rejectImportExpressions.set,
|
|
699
|
-
evadeImportExpressionTest: cells[9].evadeImportExpressionTest.set,
|
|
700
|
-
rejectSomeDirectEvalExpressions: cells[9].rejectSomeDirectEvalExpressions.set,
|
|
701
|
-
mandatoryTransforms: cells[9].mandatoryTransforms.set,
|
|
702
|
-
applyTransforms: cells[9].applyTransforms.set,
|
|
703
|
-
|
|
704
|
-
},
|
|
705
|
-
});
|
|
706
|
-
functors[10]({
|
|
707
|
-
imports(entries) {
|
|
708
|
-
const map = new Map(entries);
|
|
709
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
710
|
-
const cell = cells[0][name];
|
|
711
|
-
if (cell === undefined) {
|
|
712
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
713
|
-
}
|
|
714
|
-
for (const observer of observers) {
|
|
715
|
-
cell.observe(observer);
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
719
|
-
const cell = cells[4][name];
|
|
720
|
-
if (cell === undefined) {
|
|
721
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
722
|
-
}
|
|
723
|
-
for (const observer of observers) {
|
|
724
|
-
cell.observe(observer);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
for (const [name, observers] of map.get("./make-evaluate-factory.js")) {
|
|
728
|
-
const cell = cells[5][name];
|
|
729
|
-
if (cell === undefined) {
|
|
730
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
731
|
-
}
|
|
732
|
-
for (const observer of observers) {
|
|
733
|
-
cell.observe(observer);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
for (const [name, observers] of map.get("./scope-constants.js")) {
|
|
737
|
-
const cell = cells[6][name];
|
|
738
|
-
if (cell === undefined) {
|
|
739
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
740
|
-
}
|
|
741
|
-
for (const observer of observers) {
|
|
742
|
-
cell.observe(observer);
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
for (const [name, observers] of map.get("./scope-handler.js")) {
|
|
746
|
-
const cell = cells[7][name];
|
|
747
|
-
if (cell === undefined) {
|
|
748
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
749
|
-
}
|
|
750
|
-
for (const observer of observers) {
|
|
751
|
-
cell.observe(observer);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
for (const [name, observers] of map.get("./transforms.js")) {
|
|
755
|
-
const cell = cells[9][name];
|
|
756
|
-
if (cell === undefined) {
|
|
757
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
758
|
-
}
|
|
759
|
-
for (const observer of observers) {
|
|
760
|
-
cell.observe(observer);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
},
|
|
765
|
-
liveVar: {
|
|
766
|
-
|
|
767
|
-
},
|
|
768
|
-
onceVar: {
|
|
769
|
-
makeSafeEvaluator: cells[10].makeSafeEvaluator.set,
|
|
770
|
-
|
|
771
|
-
},
|
|
772
|
-
});
|
|
773
|
-
functors[11]({
|
|
774
|
-
imports(entries) {
|
|
775
|
-
const map = new Map(entries);
|
|
776
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
777
|
-
const cell = cells[0][name];
|
|
778
|
-
if (cell === undefined) {
|
|
779
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
780
|
-
}
|
|
781
|
-
for (const observer of observers) {
|
|
782
|
-
cell.observe(observer);
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
for (const [name, observers] of map.get("./make-safe-evaluator.js")) {
|
|
786
|
-
const cell = cells[10][name];
|
|
787
|
-
if (cell === undefined) {
|
|
788
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
789
|
-
}
|
|
790
|
-
for (const observer of observers) {
|
|
791
|
-
cell.observe(observer);
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
for (const [name, observers] of map.get("./transforms.js")) {
|
|
795
|
-
const cell = cells[9][name];
|
|
796
|
-
if (cell === undefined) {
|
|
797
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
798
|
-
}
|
|
799
|
-
for (const observer of observers) {
|
|
800
|
-
cell.observe(observer);
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
},
|
|
805
|
-
liveVar: {
|
|
806
|
-
|
|
807
|
-
},
|
|
808
|
-
onceVar: {
|
|
809
|
-
provideCompartmentEvaluator: cells[11].provideCompartmentEvaluator.set,
|
|
810
|
-
compartmentEvaluate: cells[11].compartmentEvaluate.set,
|
|
811
|
-
|
|
812
|
-
},
|
|
813
|
-
});
|
|
814
|
-
functors[12]({
|
|
815
|
-
imports(entries) {
|
|
816
|
-
const map = new Map(entries);
|
|
817
|
-
|
|
818
|
-
},
|
|
819
|
-
liveVar: {
|
|
820
|
-
|
|
821
|
-
},
|
|
822
|
-
onceVar: {
|
|
823
|
-
makeEvalFunction: cells[12].makeEvalFunction.set,
|
|
824
|
-
|
|
825
|
-
},
|
|
826
|
-
});
|
|
827
|
-
functors[13]({
|
|
828
|
-
imports(entries) {
|
|
829
|
-
const map = new Map(entries);
|
|
830
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
831
|
-
const cell = cells[0][name];
|
|
832
|
-
if (cell === undefined) {
|
|
833
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
834
|
-
}
|
|
835
|
-
for (const observer of observers) {
|
|
836
|
-
cell.observe(observer);
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
840
|
-
const cell = cells[4][name];
|
|
841
|
-
if (cell === undefined) {
|
|
842
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
843
|
-
}
|
|
844
|
-
for (const observer of observers) {
|
|
845
|
-
cell.observe(observer);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
},
|
|
850
|
-
liveVar: {
|
|
851
|
-
|
|
852
|
-
},
|
|
853
|
-
onceVar: {
|
|
854
|
-
makeFunctionConstructor: cells[13].makeFunctionConstructor.set,
|
|
855
|
-
|
|
856
|
-
},
|
|
857
|
-
});
|
|
858
|
-
functors[14]({
|
|
859
|
-
imports(entries) {
|
|
860
|
-
const map = new Map(entries);
|
|
861
|
-
|
|
862
|
-
},
|
|
863
|
-
liveVar: {
|
|
864
|
-
|
|
865
|
-
},
|
|
866
|
-
onceVar: {
|
|
867
|
-
constantProperties: cells[14].constantProperties.set,
|
|
868
|
-
universalPropertyNames: cells[14].universalPropertyNames.set,
|
|
869
|
-
initialGlobalPropertyNames: cells[14].initialGlobalPropertyNames.set,
|
|
870
|
-
sharedGlobalPropertyNames: cells[14].sharedGlobalPropertyNames.set,
|
|
871
|
-
uniqueGlobalPropertyNames: cells[14].uniqueGlobalPropertyNames.set,
|
|
872
|
-
NativeErrors: cells[14].NativeErrors.set,
|
|
873
|
-
FunctionInstance: cells[14].FunctionInstance.set,
|
|
874
|
-
isAccessorPermit: cells[14].isAccessorPermit.set,
|
|
875
|
-
whitelist: cells[14].whitelist.set,
|
|
876
|
-
|
|
877
|
-
},
|
|
878
|
-
});
|
|
879
|
-
functors[15]({
|
|
880
|
-
imports(entries) {
|
|
881
|
-
const map = new Map(entries);
|
|
882
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
883
|
-
const cell = cells[0][name];
|
|
884
|
-
if (cell === undefined) {
|
|
885
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
886
|
-
}
|
|
887
|
-
for (const observer of observers) {
|
|
888
|
-
cell.observe(observer);
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
for (const [name, observers] of map.get("./make-eval-function.js")) {
|
|
892
|
-
const cell = cells[12][name];
|
|
893
|
-
if (cell === undefined) {
|
|
894
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
895
|
-
}
|
|
896
|
-
for (const observer of observers) {
|
|
897
|
-
cell.observe(observer);
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
for (const [name, observers] of map.get("./make-function-constructor.js")) {
|
|
901
|
-
const cell = cells[13][name];
|
|
902
|
-
if (cell === undefined) {
|
|
903
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
904
|
-
}
|
|
905
|
-
for (const observer of observers) {
|
|
906
|
-
cell.observe(observer);
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
for (const [name, observers] of map.get("./whitelist.js")) {
|
|
910
|
-
const cell = cells[14][name];
|
|
911
|
-
if (cell === undefined) {
|
|
912
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
913
|
-
}
|
|
914
|
-
for (const observer of observers) {
|
|
915
|
-
cell.observe(observer);
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
},
|
|
920
|
-
liveVar: {
|
|
921
|
-
|
|
922
|
-
},
|
|
923
|
-
onceVar: {
|
|
924
|
-
setGlobalObjectConstantProperties: cells[15].setGlobalObjectConstantProperties.set,
|
|
925
|
-
setGlobalObjectMutableProperties: cells[15].setGlobalObjectMutableProperties.set,
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
});
|
|
929
|
-
functors[16]({
|
|
930
|
-
imports(entries) {
|
|
931
|
-
const map = new Map(entries);
|
|
932
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
933
|
-
const cell = cells[0][name];
|
|
934
|
-
if (cell === undefined) {
|
|
935
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
936
|
-
}
|
|
937
|
-
for (const observer of observers) {
|
|
938
|
-
cell.observe(observer);
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
942
|
-
const cell = cells[4][name];
|
|
943
|
-
if (cell === undefined) {
|
|
944
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
945
|
-
}
|
|
946
|
-
for (const observer of observers) {
|
|
947
|
-
cell.observe(observer);
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
},
|
|
952
|
-
liveVar: {
|
|
953
|
-
|
|
954
|
-
},
|
|
955
|
-
onceVar: {
|
|
956
|
-
makeAlias: cells[16].makeAlias.set,
|
|
957
|
-
load: cells[16].load.set,
|
|
958
|
-
|
|
959
|
-
},
|
|
960
|
-
});
|
|
961
|
-
functors[17]({
|
|
962
|
-
imports(entries) {
|
|
963
|
-
const map = new Map(entries);
|
|
964
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
965
|
-
const cell = cells[0][name];
|
|
966
|
-
if (cell === undefined) {
|
|
967
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
968
|
-
}
|
|
969
|
-
for (const observer of observers) {
|
|
970
|
-
cell.observe(observer);
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
974
|
-
const cell = cells[4][name];
|
|
975
|
-
if (cell === undefined) {
|
|
976
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
977
|
-
}
|
|
978
|
-
for (const observer of observers) {
|
|
979
|
-
cell.observe(observer);
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
for (const [name, observers] of map.get("./module-load.js")) {
|
|
983
|
-
const cell = cells[16][name];
|
|
984
|
-
if (cell === undefined) {
|
|
985
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
986
|
-
}
|
|
987
|
-
for (const observer of observers) {
|
|
988
|
-
cell.observe(observer);
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
},
|
|
993
|
-
liveVar: {
|
|
994
|
-
|
|
995
|
-
},
|
|
996
|
-
onceVar: {
|
|
997
|
-
deferExports: cells[17].deferExports.set,
|
|
998
|
-
getDeferredExports: cells[17].getDeferredExports.set,
|
|
999
|
-
|
|
1000
|
-
},
|
|
1001
|
-
});
|
|
1002
|
-
functors[18]({
|
|
1003
|
-
imports(entries) {
|
|
1004
|
-
const map = new Map(entries);
|
|
1005
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1006
|
-
const cell = cells[0][name];
|
|
1007
|
-
if (cell === undefined) {
|
|
1008
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1009
|
-
}
|
|
1010
|
-
for (const observer of observers) {
|
|
1011
|
-
cell.observe(observer);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
for (const [name, observers] of map.get("./compartment-evaluate.js")) {
|
|
1015
|
-
const cell = cells[11][name];
|
|
1016
|
-
if (cell === undefined) {
|
|
1017
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1018
|
-
}
|
|
1019
|
-
for (const observer of observers) {
|
|
1020
|
-
cell.observe(observer);
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
1024
|
-
const cell = cells[4][name];
|
|
1025
|
-
if (cell === undefined) {
|
|
1026
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1027
|
-
}
|
|
1028
|
-
for (const observer of observers) {
|
|
1029
|
-
cell.observe(observer);
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
for (const [name, observers] of map.get("./module-proxy.js")) {
|
|
1033
|
-
const cell = cells[17][name];
|
|
1034
|
-
if (cell === undefined) {
|
|
1035
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1036
|
-
}
|
|
1037
|
-
for (const observer of observers) {
|
|
1038
|
-
cell.observe(observer);
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
},
|
|
1043
|
-
liveVar: {
|
|
1044
|
-
|
|
1045
|
-
},
|
|
1046
|
-
onceVar: {
|
|
1047
|
-
makeThirdPartyModuleInstance: cells[18].makeThirdPartyModuleInstance.set,
|
|
1048
|
-
makeModuleInstance: cells[18].makeModuleInstance.set,
|
|
1049
|
-
|
|
1050
|
-
},
|
|
1051
|
-
});
|
|
1052
|
-
functors[19]({
|
|
1053
|
-
imports(entries) {
|
|
1054
|
-
const map = new Map(entries);
|
|
1055
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1056
|
-
const cell = cells[0][name];
|
|
1057
|
-
if (cell === undefined) {
|
|
1058
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1059
|
-
}
|
|
1060
|
-
for (const observer of observers) {
|
|
1061
|
-
cell.observe(observer);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
1065
|
-
const cell = cells[4][name];
|
|
1066
|
-
if (cell === undefined) {
|
|
1067
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1068
|
-
}
|
|
1069
|
-
for (const observer of observers) {
|
|
1070
|
-
cell.observe(observer);
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
for (const [name, observers] of map.get("./module-instance.js")) {
|
|
1074
|
-
const cell = cells[18][name];
|
|
1075
|
-
if (cell === undefined) {
|
|
1076
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1077
|
-
}
|
|
1078
|
-
for (const observer of observers) {
|
|
1079
|
-
cell.observe(observer);
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
},
|
|
1084
|
-
liveVar: {
|
|
1085
|
-
|
|
1086
|
-
},
|
|
1087
|
-
onceVar: {
|
|
1088
|
-
link: cells[19].link.set,
|
|
1089
|
-
instantiate: cells[19].instantiate.set,
|
|
1090
|
-
|
|
1091
|
-
},
|
|
1092
|
-
});
|
|
1093
|
-
functors[20]({
|
|
1094
|
-
imports(entries) {
|
|
1095
|
-
const map = new Map(entries);
|
|
1096
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1097
|
-
const cell = cells[0][name];
|
|
1098
|
-
if (cell === undefined) {
|
|
1099
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1100
|
-
}
|
|
1101
|
-
for (const observer of observers) {
|
|
1102
|
-
cell.observe(observer);
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
for (const [name, observers] of map.get("./compartment-evaluate.js")) {
|
|
1106
|
-
const cell = cells[11][name];
|
|
1107
|
-
if (cell === undefined) {
|
|
1108
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1109
|
-
}
|
|
1110
|
-
for (const observer of observers) {
|
|
1111
|
-
cell.observe(observer);
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
1115
|
-
const cell = cells[4][name];
|
|
1116
|
-
if (cell === undefined) {
|
|
1117
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1118
|
-
}
|
|
1119
|
-
for (const observer of observers) {
|
|
1120
|
-
cell.observe(observer);
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
for (const [name, observers] of map.get("./global-object.js")) {
|
|
1124
|
-
const cell = cells[15][name];
|
|
1125
|
-
if (cell === undefined) {
|
|
1126
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1127
|
-
}
|
|
1128
|
-
for (const observer of observers) {
|
|
1129
|
-
cell.observe(observer);
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
for (const [name, observers] of map.get("./make-safe-evaluator.js")) {
|
|
1133
|
-
const cell = cells[10][name];
|
|
1134
|
-
if (cell === undefined) {
|
|
1135
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1136
|
-
}
|
|
1137
|
-
for (const observer of observers) {
|
|
1138
|
-
cell.observe(observer);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
for (const [name, observers] of map.get("./module-link.js")) {
|
|
1142
|
-
const cell = cells[19][name];
|
|
1143
|
-
if (cell === undefined) {
|
|
1144
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1145
|
-
}
|
|
1146
|
-
for (const observer of observers) {
|
|
1147
|
-
cell.observe(observer);
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
for (const [name, observers] of map.get("./module-load.js")) {
|
|
1151
|
-
const cell = cells[16][name];
|
|
1152
|
-
if (cell === undefined) {
|
|
1153
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1154
|
-
}
|
|
1155
|
-
for (const observer of observers) {
|
|
1156
|
-
cell.observe(observer);
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
for (const [name, observers] of map.get("./module-proxy.js")) {
|
|
1160
|
-
const cell = cells[17][name];
|
|
1161
|
-
if (cell === undefined) {
|
|
1162
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1163
|
-
}
|
|
1164
|
-
for (const observer of observers) {
|
|
1165
|
-
cell.observe(observer);
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
for (const [name, observers] of map.get("./scope-constants.js")) {
|
|
1169
|
-
const cell = cells[6][name];
|
|
1170
|
-
if (cell === undefined) {
|
|
1171
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1172
|
-
}
|
|
1173
|
-
for (const observer of observers) {
|
|
1174
|
-
cell.observe(observer);
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
for (const [name, observers] of map.get("./whitelist.js")) {
|
|
1178
|
-
const cell = cells[14][name];
|
|
1179
|
-
if (cell === undefined) {
|
|
1180
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1181
|
-
}
|
|
1182
|
-
for (const observer of observers) {
|
|
1183
|
-
cell.observe(observer);
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
},
|
|
1188
|
-
liveVar: {
|
|
1189
|
-
|
|
1190
|
-
},
|
|
1191
|
-
onceVar: {
|
|
1192
|
-
InertCompartment: cells[20].InertCompartment.set,
|
|
1193
|
-
CompartmentPrototype: cells[20].CompartmentPrototype.set,
|
|
1194
|
-
makeCompartmentConstructor: cells[20].makeCompartmentConstructor.set,
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1197
|
-
});
|
|
1198
|
-
functors[21]({
|
|
1199
|
-
imports(entries) {
|
|
1200
|
-
const map = new Map(entries);
|
|
1201
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1202
|
-
const cell = cells[0][name];
|
|
1203
|
-
if (cell === undefined) {
|
|
1204
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1205
|
-
}
|
|
1206
|
-
for (const observer of observers) {
|
|
1207
|
-
cell.observe(observer);
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
for (const [name, observers] of map.get("./whitelist.js")) {
|
|
1211
|
-
const cell = cells[14][name];
|
|
1212
|
-
if (cell === undefined) {
|
|
1213
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1214
|
-
}
|
|
1215
|
-
for (const observer of observers) {
|
|
1216
|
-
cell.observe(observer);
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
},
|
|
1221
|
-
liveVar: {
|
|
1222
|
-
|
|
1223
|
-
},
|
|
1224
|
-
onceVar: {
|
|
1225
|
-
makeIntrinsicsCollector: cells[21].makeIntrinsicsCollector.set,
|
|
1226
|
-
getGlobalIntrinsics: cells[21].getGlobalIntrinsics.set,
|
|
1227
|
-
|
|
1228
|
-
},
|
|
1229
|
-
});
|
|
1230
|
-
functors[22]({
|
|
1231
|
-
imports(entries) {
|
|
1232
|
-
const map = new Map(entries);
|
|
1233
|
-
|
|
1234
|
-
},
|
|
1235
|
-
liveVar: {
|
|
1236
|
-
|
|
1237
|
-
},
|
|
1238
|
-
onceVar: {
|
|
1239
|
-
minEnablements: cells[22].minEnablements.set,
|
|
1240
|
-
moderateEnablements: cells[22].moderateEnablements.set,
|
|
1241
|
-
severeEnablements: cells[22].severeEnablements.set,
|
|
1242
|
-
|
|
1243
|
-
},
|
|
1244
|
-
});
|
|
1245
|
-
functors[23]({
|
|
1246
|
-
imports(entries) {
|
|
1247
|
-
const map = new Map(entries);
|
|
1248
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1249
|
-
const cell = cells[0][name];
|
|
1250
|
-
if (cell === undefined) {
|
|
1251
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1252
|
-
}
|
|
1253
|
-
for (const observer of observers) {
|
|
1254
|
-
cell.observe(observer);
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
for (const [name, observers] of map.get("./enablements.js")) {
|
|
1258
|
-
const cell = cells[22][name];
|
|
1259
|
-
if (cell === undefined) {
|
|
1260
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1261
|
-
}
|
|
1262
|
-
for (const observer of observers) {
|
|
1263
|
-
cell.observe(observer);
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
},
|
|
1268
|
-
liveVar: {
|
|
1269
|
-
|
|
1270
|
-
},
|
|
1271
|
-
onceVar: {
|
|
1272
|
-
default: cells[23].default.set,
|
|
1273
|
-
|
|
1274
|
-
},
|
|
1275
|
-
});
|
|
1276
|
-
functors[24]({
|
|
1277
|
-
imports(entries) {
|
|
1278
|
-
const map = new Map(entries);
|
|
1279
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1280
|
-
const cell = cells[0][name];
|
|
1281
|
-
if (cell === undefined) {
|
|
1282
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1283
|
-
}
|
|
1284
|
-
for (const observer of observers) {
|
|
1285
|
-
cell.observe(observer);
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
1289
|
-
const cell = cells[4][name];
|
|
1290
|
-
if (cell === undefined) {
|
|
1291
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1292
|
-
}
|
|
1293
|
-
for (const observer of observers) {
|
|
1294
|
-
cell.observe(observer);
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
},
|
|
1299
|
-
liveVar: {
|
|
1300
|
-
|
|
1301
|
-
},
|
|
1302
|
-
onceVar: {
|
|
1303
|
-
makeEnvironmentCaptor: cells[24].makeEnvironmentCaptor.set,
|
|
1304
|
-
|
|
1305
|
-
},
|
|
1306
|
-
});
|
|
1307
|
-
functors[25]({
|
|
1308
|
-
imports(entries) {
|
|
1309
|
-
const map = new Map(entries);
|
|
1310
|
-
for (const [name, observers] of map.get("../commons.js")) {
|
|
1311
|
-
const cell = cells[0][name];
|
|
1312
|
-
if (cell === undefined) {
|
|
1313
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1314
|
-
}
|
|
1315
|
-
for (const observer of observers) {
|
|
1316
|
-
cell.observe(observer);
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
for (const [name, observers] of map.get("./internal-types.js")) {
|
|
1320
|
-
const cell = cells[1][name];
|
|
1321
|
-
if (cell === undefined) {
|
|
1322
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1323
|
-
}
|
|
1324
|
-
for (const observer of observers) {
|
|
1325
|
-
cell.observe(observer);
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
for (const [name, observers] of map.get("./types.js")) {
|
|
1329
|
-
const cell = cells[3][name];
|
|
1330
|
-
if (cell === undefined) {
|
|
1331
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1332
|
-
}
|
|
1333
|
-
for (const observer of observers) {
|
|
1334
|
-
cell.observe(observer);
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
},
|
|
1339
|
-
liveVar: {
|
|
1340
|
-
|
|
1341
|
-
},
|
|
1342
|
-
onceVar: {
|
|
1343
|
-
makeLoggingConsoleKit: cells[25].makeLoggingConsoleKit.set,
|
|
1344
|
-
makeCausalConsole: cells[25].makeCausalConsole.set,
|
|
1345
|
-
filterConsole: cells[25].filterConsole.set,
|
|
1346
|
-
consoleWhitelist: cells[25].consoleWhitelist.set,
|
|
1347
|
-
BASE_CONSOLE_LEVEL: cells[25].BASE_CONSOLE_LEVEL.set,
|
|
1348
|
-
|
|
1349
|
-
},
|
|
1350
|
-
});
|
|
1351
|
-
functors[26]({
|
|
1352
|
-
imports(entries) {
|
|
1353
|
-
const map = new Map(entries);
|
|
1354
|
-
for (const [name, observers] of map.get("../commons.js")) {
|
|
1355
|
-
const cell = cells[0][name];
|
|
1356
|
-
if (cell === undefined) {
|
|
1357
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1358
|
-
}
|
|
1359
|
-
for (const observer of observers) {
|
|
1360
|
-
cell.observe(observer);
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
for (const [name, observers] of map.get("./assert.js")) {
|
|
1364
|
-
const cell = cells[4][name];
|
|
1365
|
-
if (cell === undefined) {
|
|
1366
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1367
|
-
}
|
|
1368
|
-
for (const observer of observers) {
|
|
1369
|
-
cell.observe(observer);
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
for (const [name, observers] of map.get("./console.js")) {
|
|
1373
|
-
const cell = cells[25][name];
|
|
1374
|
-
if (cell === undefined) {
|
|
1375
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1376
|
-
}
|
|
1377
|
-
for (const observer of observers) {
|
|
1378
|
-
cell.observe(observer);
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
for (const [name, observers] of map.get("./internal-types.js")) {
|
|
1382
|
-
const cell = cells[1][name];
|
|
1383
|
-
if (cell === undefined) {
|
|
1384
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1385
|
-
}
|
|
1386
|
-
for (const observer of observers) {
|
|
1387
|
-
cell.observe(observer);
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
for (const [name, observers] of map.get("./types.js")) {
|
|
1391
|
-
const cell = cells[3][name];
|
|
1392
|
-
if (cell === undefined) {
|
|
1393
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1394
|
-
}
|
|
1395
|
-
for (const observer of observers) {
|
|
1396
|
-
cell.observe(observer);
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
},
|
|
1401
|
-
liveVar: {
|
|
1402
|
-
|
|
1403
|
-
},
|
|
1404
|
-
onceVar: {
|
|
1405
|
-
tameConsole: cells[26].tameConsole.set,
|
|
1406
|
-
|
|
1407
|
-
},
|
|
1408
|
-
});
|
|
1409
|
-
functors[27]({
|
|
1410
|
-
imports(entries) {
|
|
1411
|
-
const map = new Map(entries);
|
|
1412
|
-
for (const [name, observers] of map.get("../commons.js")) {
|
|
1413
|
-
const cell = cells[0][name];
|
|
1414
|
-
if (cell === undefined) {
|
|
1415
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1416
|
-
}
|
|
1417
|
-
for (const observer of observers) {
|
|
1418
|
-
cell.observe(observer);
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
},
|
|
1423
|
-
liveVar: {
|
|
1424
|
-
|
|
1425
|
-
},
|
|
1426
|
-
onceVar: {
|
|
1427
|
-
filterFileName: cells[27].filterFileName.set,
|
|
1428
|
-
shortenCallSiteString: cells[27].shortenCallSiteString.set,
|
|
1429
|
-
tameV8ErrorConstructor: cells[27].tameV8ErrorConstructor.set,
|
|
1430
|
-
|
|
1431
|
-
},
|
|
1432
|
-
});
|
|
1433
|
-
functors[28]({
|
|
1434
|
-
imports(entries) {
|
|
1435
|
-
const map = new Map(entries);
|
|
1436
|
-
for (const [name, observers] of map.get("../commons.js")) {
|
|
1437
|
-
const cell = cells[0][name];
|
|
1438
|
-
if (cell === undefined) {
|
|
1439
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1440
|
-
}
|
|
1441
|
-
for (const observer of observers) {
|
|
1442
|
-
cell.observe(observer);
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
for (const [name, observers] of map.get("../whitelist.js")) {
|
|
1446
|
-
const cell = cells[14][name];
|
|
1447
|
-
if (cell === undefined) {
|
|
1448
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1449
|
-
}
|
|
1450
|
-
for (const observer of observers) {
|
|
1451
|
-
cell.observe(observer);
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
for (const [name, observers] of map.get("./tame-v8-error-constructor.js")) {
|
|
1455
|
-
const cell = cells[27][name];
|
|
1456
|
-
if (cell === undefined) {
|
|
1457
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1458
|
-
}
|
|
1459
|
-
for (const observer of observers) {
|
|
1460
|
-
cell.observe(observer);
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
},
|
|
1465
|
-
liveVar: {
|
|
1466
|
-
|
|
1467
|
-
},
|
|
1468
|
-
onceVar: {
|
|
1469
|
-
default: cells[28].default.set,
|
|
1470
|
-
|
|
1471
|
-
},
|
|
1472
|
-
});
|
|
1473
|
-
functors[29]({
|
|
1474
|
-
imports(entries) {
|
|
1475
|
-
const map = new Map(entries);
|
|
1476
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1477
|
-
const cell = cells[0][name];
|
|
1478
|
-
if (cell === undefined) {
|
|
1479
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1480
|
-
}
|
|
1481
|
-
for (const observer of observers) {
|
|
1482
|
-
cell.observe(observer);
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
for (const [name, observers] of map.get("./compartment-shim.js")) {
|
|
1486
|
-
const cell = cells[20][name];
|
|
1487
|
-
if (cell === undefined) {
|
|
1488
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1489
|
-
}
|
|
1490
|
-
for (const observer of observers) {
|
|
1491
|
-
cell.observe(observer);
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
},
|
|
1496
|
-
liveVar: {
|
|
1497
|
-
|
|
1498
|
-
},
|
|
1499
|
-
onceVar: {
|
|
1500
|
-
getAnonymousIntrinsics: cells[29].getAnonymousIntrinsics.set,
|
|
1501
|
-
|
|
1502
|
-
},
|
|
1503
|
-
});
|
|
1504
|
-
functors[30]({
|
|
1505
|
-
imports(entries) {
|
|
1506
|
-
const map = new Map(entries);
|
|
1507
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1508
|
-
const cell = cells[0][name];
|
|
1509
|
-
if (cell === undefined) {
|
|
1510
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1511
|
-
}
|
|
1512
|
-
for (const observer of observers) {
|
|
1513
|
-
cell.observe(observer);
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
},
|
|
1518
|
-
liveVar: {
|
|
1519
|
-
|
|
1520
|
-
},
|
|
1521
|
-
onceVar: {
|
|
1522
|
-
makeHardener: cells[30].makeHardener.set,
|
|
1523
|
-
|
|
1524
|
-
},
|
|
1525
|
-
});
|
|
1526
|
-
functors[31]({
|
|
1527
|
-
imports(entries) {
|
|
1528
|
-
const map = new Map(entries);
|
|
1529
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1530
|
-
const cell = cells[0][name];
|
|
1531
|
-
if (cell === undefined) {
|
|
1532
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1533
|
-
}
|
|
1534
|
-
for (const observer of observers) {
|
|
1535
|
-
cell.observe(observer);
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
},
|
|
1540
|
-
liveVar: {
|
|
1541
|
-
|
|
1542
|
-
},
|
|
1543
|
-
onceVar: {
|
|
1544
|
-
default: cells[31].default.set,
|
|
1545
|
-
|
|
1546
|
-
},
|
|
1547
|
-
});
|
|
1548
|
-
functors[32]({
|
|
1549
|
-
imports(entries) {
|
|
1550
|
-
const map = new Map(entries);
|
|
1551
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1552
|
-
const cell = cells[0][name];
|
|
1553
|
-
if (cell === undefined) {
|
|
1554
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1555
|
-
}
|
|
1556
|
-
for (const observer of observers) {
|
|
1557
|
-
cell.observe(observer);
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
},
|
|
1562
|
-
liveVar: {
|
|
1563
|
-
|
|
1564
|
-
},
|
|
1565
|
-
onceVar: {
|
|
1566
|
-
tameDomains: cells[32].tameDomains.set,
|
|
1567
|
-
|
|
1568
|
-
},
|
|
1569
|
-
});
|
|
1570
|
-
functors[33]({
|
|
1571
|
-
imports(entries) {
|
|
1572
|
-
const map = new Map(entries);
|
|
1573
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1574
|
-
const cell = cells[0][name];
|
|
1575
|
-
if (cell === undefined) {
|
|
1576
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1577
|
-
}
|
|
1578
|
-
for (const observer of observers) {
|
|
1579
|
-
cell.observe(observer);
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
},
|
|
1584
|
-
liveVar: {
|
|
1585
|
-
|
|
1586
|
-
},
|
|
1587
|
-
onceVar: {
|
|
1588
|
-
default: cells[33].default.set,
|
|
1589
|
-
|
|
1590
|
-
},
|
|
1591
|
-
});
|
|
1592
|
-
functors[34]({
|
|
1593
|
-
imports(entries) {
|
|
1594
|
-
const map = new Map(entries);
|
|
1595
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1596
|
-
const cell = cells[0][name];
|
|
1597
|
-
if (cell === undefined) {
|
|
1598
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1599
|
-
}
|
|
1600
|
-
for (const observer of observers) {
|
|
1601
|
-
cell.observe(observer);
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
},
|
|
1606
|
-
liveVar: {
|
|
1607
|
-
|
|
1608
|
-
},
|
|
1609
|
-
onceVar: {
|
|
1610
|
-
tameFunctionToString: cells[34].tameFunctionToString.set,
|
|
1611
|
-
|
|
1612
|
-
},
|
|
1613
|
-
});
|
|
1614
|
-
functors[35]({
|
|
1615
|
-
imports(entries) {
|
|
1616
|
-
const map = new Map(entries);
|
|
1617
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1618
|
-
const cell = cells[0][name];
|
|
1619
|
-
if (cell === undefined) {
|
|
1620
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1621
|
-
}
|
|
1622
|
-
for (const observer of observers) {
|
|
1623
|
-
cell.observe(observer);
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
1627
|
-
const cell = cells[4][name];
|
|
1628
|
-
if (cell === undefined) {
|
|
1629
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1630
|
-
}
|
|
1631
|
-
for (const observer of observers) {
|
|
1632
|
-
cell.observe(observer);
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
},
|
|
1637
|
-
liveVar: {
|
|
1638
|
-
|
|
1639
|
-
},
|
|
1640
|
-
onceVar: {
|
|
1641
|
-
default: cells[35].default.set,
|
|
1642
|
-
|
|
1643
|
-
},
|
|
1644
|
-
});
|
|
1645
|
-
functors[36]({
|
|
1646
|
-
imports(entries) {
|
|
1647
|
-
const map = new Map(entries);
|
|
1648
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1649
|
-
const cell = cells[0][name];
|
|
1650
|
-
if (cell === undefined) {
|
|
1651
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1652
|
-
}
|
|
1653
|
-
for (const observer of observers) {
|
|
1654
|
-
cell.observe(observer);
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
},
|
|
1659
|
-
liveVar: {
|
|
1660
|
-
|
|
1661
|
-
},
|
|
1662
|
-
onceVar: {
|
|
1663
|
-
default: cells[36].default.set,
|
|
1664
|
-
|
|
1665
|
-
},
|
|
1666
|
-
});
|
|
1667
|
-
functors[37]({
|
|
1668
|
-
imports(entries) {
|
|
1669
|
-
const map = new Map(entries);
|
|
1670
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1671
|
-
const cell = cells[0][name];
|
|
1672
|
-
if (cell === undefined) {
|
|
1673
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1674
|
-
}
|
|
1675
|
-
for (const observer of observers) {
|
|
1676
|
-
cell.observe(observer);
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
},
|
|
1681
|
-
liveVar: {
|
|
1682
|
-
|
|
1683
|
-
},
|
|
1684
|
-
onceVar: {
|
|
1685
|
-
default: cells[37].default.set,
|
|
1686
|
-
|
|
1687
|
-
},
|
|
1688
|
-
});
|
|
1689
|
-
functors[38]({
|
|
1690
|
-
imports(entries) {
|
|
1691
|
-
const map = new Map(entries);
|
|
1692
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1693
|
-
const cell = cells[0][name];
|
|
1694
|
-
if (cell === undefined) {
|
|
1695
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1696
|
-
}
|
|
1697
|
-
for (const observer of observers) {
|
|
1698
|
-
cell.observe(observer);
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
for (const [name, observers] of map.get("./whitelist.js")) {
|
|
1702
|
-
const cell = cells[14][name];
|
|
1703
|
-
if (cell === undefined) {
|
|
1704
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1705
|
-
}
|
|
1706
|
-
for (const observer of observers) {
|
|
1707
|
-
cell.observe(observer);
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
},
|
|
1712
|
-
liveVar: {
|
|
1713
|
-
|
|
1714
|
-
},
|
|
1715
|
-
onceVar: {
|
|
1716
|
-
default: cells[38].default.set,
|
|
1717
|
-
|
|
1718
|
-
},
|
|
1719
|
-
});
|
|
1720
|
-
functors[39]({
|
|
1721
|
-
imports(entries) {
|
|
1722
|
-
const map = new Map(entries);
|
|
1723
|
-
for (const [name, observers] of map.get("./commons.js")) {
|
|
1724
|
-
const cell = cells[0][name];
|
|
1725
|
-
if (cell === undefined) {
|
|
1726
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1727
|
-
}
|
|
1728
|
-
for (const observer of observers) {
|
|
1729
|
-
cell.observe(observer);
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
for (const [name, observers] of map.get("./compartment-shim.js")) {
|
|
1733
|
-
const cell = cells[20][name];
|
|
1734
|
-
if (cell === undefined) {
|
|
1735
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1736
|
-
}
|
|
1737
|
-
for (const observer of observers) {
|
|
1738
|
-
cell.observe(observer);
|
|
1739
|
-
}
|
|
1740
|
-
}
|
|
1741
|
-
for (const [name, observers] of map.get("./enable-property-overrides.js")) {
|
|
1742
|
-
const cell = cells[23][name];
|
|
1743
|
-
if (cell === undefined) {
|
|
1744
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1745
|
-
}
|
|
1746
|
-
for (const observer of observers) {
|
|
1747
|
-
cell.observe(observer);
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
for (const [name, observers] of map.get("./environment-options.js")) {
|
|
1751
|
-
const cell = cells[24][name];
|
|
1752
|
-
if (cell === undefined) {
|
|
1753
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1754
|
-
}
|
|
1755
|
-
for (const observer of observers) {
|
|
1756
|
-
cell.observe(observer);
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
for (const [name, observers] of map.get("./error/assert.js")) {
|
|
1760
|
-
const cell = cells[4][name];
|
|
1761
|
-
if (cell === undefined) {
|
|
1762
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1763
|
-
}
|
|
1764
|
-
for (const observer of observers) {
|
|
1765
|
-
cell.observe(observer);
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
for (const [name, observers] of map.get("./error/stringify-utils.js")) {
|
|
1769
|
-
const cell = cells[2][name];
|
|
1770
|
-
if (cell === undefined) {
|
|
1771
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1772
|
-
}
|
|
1773
|
-
for (const observer of observers) {
|
|
1774
|
-
cell.observe(observer);
|
|
1775
|
-
}
|
|
1776
|
-
}
|
|
1777
|
-
for (const [name, observers] of map.get("./error/tame-console.js")) {
|
|
1778
|
-
const cell = cells[26][name];
|
|
1779
|
-
if (cell === undefined) {
|
|
1780
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1781
|
-
}
|
|
1782
|
-
for (const observer of observers) {
|
|
1783
|
-
cell.observe(observer);
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
for (const [name, observers] of map.get("./error/tame-error-constructor.js")) {
|
|
1787
|
-
const cell = cells[28][name];
|
|
1788
|
-
if (cell === undefined) {
|
|
1789
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1790
|
-
}
|
|
1791
|
-
for (const observer of observers) {
|
|
1792
|
-
cell.observe(observer);
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
for (const [name, observers] of map.get("./get-anonymous-intrinsics.js")) {
|
|
1796
|
-
const cell = cells[29][name];
|
|
1797
|
-
if (cell === undefined) {
|
|
1798
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1799
|
-
}
|
|
1800
|
-
for (const observer of observers) {
|
|
1801
|
-
cell.observe(observer);
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
for (const [name, observers] of map.get("./global-object.js")) {
|
|
1805
|
-
const cell = cells[15][name];
|
|
1806
|
-
if (cell === undefined) {
|
|
1807
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1808
|
-
}
|
|
1809
|
-
for (const observer of observers) {
|
|
1810
|
-
cell.observe(observer);
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
for (const [name, observers] of map.get("./intrinsics.js")) {
|
|
1814
|
-
const cell = cells[21][name];
|
|
1815
|
-
if (cell === undefined) {
|
|
1816
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1817
|
-
}
|
|
1818
|
-
for (const observer of observers) {
|
|
1819
|
-
cell.observe(observer);
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
for (const [name, observers] of map.get("./make-hardener.js")) {
|
|
1823
|
-
const cell = cells[30][name];
|
|
1824
|
-
if (cell === undefined) {
|
|
1825
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1826
|
-
}
|
|
1827
|
-
for (const observer of observers) {
|
|
1828
|
-
cell.observe(observer);
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
|
-
for (const [name, observers] of map.get("./make-safe-evaluator.js")) {
|
|
1832
|
-
const cell = cells[10][name];
|
|
1833
|
-
if (cell === undefined) {
|
|
1834
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1835
|
-
}
|
|
1836
|
-
for (const observer of observers) {
|
|
1837
|
-
cell.observe(observer);
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
for (const [name, observers] of map.get("./tame-date-constructor.js")) {
|
|
1841
|
-
const cell = cells[31][name];
|
|
1842
|
-
if (cell === undefined) {
|
|
1843
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1844
|
-
}
|
|
1845
|
-
for (const observer of observers) {
|
|
1846
|
-
cell.observe(observer);
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
for (const [name, observers] of map.get("./tame-domains.js")) {
|
|
1850
|
-
const cell = cells[32][name];
|
|
1851
|
-
if (cell === undefined) {
|
|
1852
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1853
|
-
}
|
|
1854
|
-
for (const observer of observers) {
|
|
1855
|
-
cell.observe(observer);
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
for (const [name, observers] of map.get("./tame-function-constructors.js")) {
|
|
1859
|
-
const cell = cells[33][name];
|
|
1860
|
-
if (cell === undefined) {
|
|
1861
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1862
|
-
}
|
|
1863
|
-
for (const observer of observers) {
|
|
1864
|
-
cell.observe(observer);
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
for (const [name, observers] of map.get("./tame-function-tostring.js")) {
|
|
1868
|
-
const cell = cells[34][name];
|
|
1869
|
-
if (cell === undefined) {
|
|
1870
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1871
|
-
}
|
|
1872
|
-
for (const observer of observers) {
|
|
1873
|
-
cell.observe(observer);
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
for (const [name, observers] of map.get("./tame-locale-methods.js")) {
|
|
1877
|
-
const cell = cells[35][name];
|
|
1878
|
-
if (cell === undefined) {
|
|
1879
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1880
|
-
}
|
|
1881
|
-
for (const observer of observers) {
|
|
1882
|
-
cell.observe(observer);
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
for (const [name, observers] of map.get("./tame-math-object.js")) {
|
|
1886
|
-
const cell = cells[36][name];
|
|
1887
|
-
if (cell === undefined) {
|
|
1888
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1889
|
-
}
|
|
1890
|
-
for (const observer of observers) {
|
|
1891
|
-
cell.observe(observer);
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
for (const [name, observers] of map.get("./tame-regexp-constructor.js")) {
|
|
1895
|
-
const cell = cells[37][name];
|
|
1896
|
-
if (cell === undefined) {
|
|
1897
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1898
|
-
}
|
|
1899
|
-
for (const observer of observers) {
|
|
1900
|
-
cell.observe(observer);
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
for (const [name, observers] of map.get("./whitelist-intrinsics.js")) {
|
|
1904
|
-
const cell = cells[38][name];
|
|
1905
|
-
if (cell === undefined) {
|
|
1906
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1907
|
-
}
|
|
1908
|
-
for (const observer of observers) {
|
|
1909
|
-
cell.observe(observer);
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
for (const [name, observers] of map.get("./whitelist.js")) {
|
|
1913
|
-
const cell = cells[14][name];
|
|
1914
|
-
if (cell === undefined) {
|
|
1915
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1916
|
-
}
|
|
1917
|
-
for (const observer of observers) {
|
|
1918
|
-
cell.observe(observer);
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
},
|
|
1923
|
-
liveVar: {
|
|
1924
|
-
|
|
1925
|
-
},
|
|
1926
|
-
onceVar: {
|
|
1927
|
-
repairIntrinsics: cells[39].repairIntrinsics.set,
|
|
1928
|
-
lockdown: cells[39].lockdown.set,
|
|
1929
|
-
|
|
1930
|
-
},
|
|
1931
|
-
});
|
|
1932
|
-
functors[40]({
|
|
1933
|
-
imports(entries) {
|
|
1934
|
-
const map = new Map(entries);
|
|
1935
|
-
for (const [name, observers] of map.get("./src/commons.js")) {
|
|
1936
|
-
const cell = cells[0][name];
|
|
1937
|
-
if (cell === undefined) {
|
|
1938
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1939
|
-
}
|
|
1940
|
-
for (const observer of observers) {
|
|
1941
|
-
cell.observe(observer);
|
|
1942
|
-
}
|
|
1943
|
-
}
|
|
1944
|
-
for (const [name, observers] of map.get("./src/compartment-shim.js")) {
|
|
1945
|
-
const cell = cells[20][name];
|
|
1946
|
-
if (cell === undefined) {
|
|
1947
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1948
|
-
}
|
|
1949
|
-
for (const observer of observers) {
|
|
1950
|
-
cell.observe(observer);
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
for (const [name, observers] of map.get("./src/error/assert.js")) {
|
|
1954
|
-
const cell = cells[4][name];
|
|
1955
|
-
if (cell === undefined) {
|
|
1956
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1957
|
-
}
|
|
1958
|
-
for (const observer of observers) {
|
|
1959
|
-
cell.observe(observer);
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
for (const [name, observers] of map.get("./src/intrinsics.js")) {
|
|
1963
|
-
const cell = cells[21][name];
|
|
1964
|
-
if (cell === undefined) {
|
|
1965
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1966
|
-
}
|
|
1967
|
-
for (const observer of observers) {
|
|
1968
|
-
cell.observe(observer);
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
for (const [name, observers] of map.get("./src/lockdown-shim.js")) {
|
|
1972
|
-
const cell = cells[39][name];
|
|
1973
|
-
if (cell === undefined) {
|
|
1974
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1975
|
-
}
|
|
1976
|
-
for (const observer of observers) {
|
|
1977
|
-
cell.observe(observer);
|
|
1978
|
-
}
|
|
1979
|
-
}
|
|
1980
|
-
for (const [name, observers] of map.get("./src/tame-function-tostring.js")) {
|
|
1981
|
-
const cell = cells[34][name];
|
|
1982
|
-
if (cell === undefined) {
|
|
1983
|
-
throw new ReferenceError(`Cannot import name ${name}`);
|
|
1984
|
-
}
|
|
1985
|
-
for (const observer of observers) {
|
|
1986
|
-
cell.observe(observer);
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
},
|
|
1991
|
-
liveVar: {
|
|
1992
|
-
|
|
1993
|
-
},
|
|
1994
|
-
onceVar: {
|
|
1995
|
-
|
|
1996
|
-
},
|
|
1997
|
-
});
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
})([
|
|
2001
|
-
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { $h_imports([]); /* global globalThis */
|
|
2
|
+
(() => {
|
|
3
|
+
const functors = [
|
|
4
|
+
// === functors[0] ===
|
|
5
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { $h_imports([]); /* global globalThis */
|
|
2002
6
|
/* eslint-disable no-restricted-globals */
|
|
2003
7
|
|
|
2004
8
|
/**
|
|
@@ -2024,6 +28,7 @@ const {
|
|
|
2024
28
|
JSON,
|
|
2025
29
|
Map,
|
|
2026
30
|
Math,
|
|
31
|
+
Number,
|
|
2027
32
|
Object,
|
|
2028
33
|
Promise,
|
|
2029
34
|
Proxy,
|
|
@@ -2033,7 +38,7 @@ const {
|
|
|
2033
38
|
String,
|
|
2034
39
|
WeakMap,
|
|
2035
40
|
WeakSet } =
|
|
2036
|
-
globalThis;$h_once.Array(Array);$h_once.Date(Date);$h_once.Float32Array(Float32Array);$h_once.JSON(JSON);$h_once.Map(Map);$h_once.Math(Math);$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.WeakMap(WeakMap);$h_once.WeakSet(WeakSet);
|
|
41
|
+
globalThis;$h_once.Array(Array);$h_once.Date(Date);$h_once.Float32Array(Float32Array);$h_once.JSON(JSON);$h_once.Map(Map);$h_once.Math(Math);$h_once.Number(Number);$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.WeakMap(WeakMap);$h_once.WeakSet(WeakSet);
|
|
2037
42
|
|
|
2038
43
|
const {
|
|
2039
44
|
// The feral Error constructor is safe for internal use, but must not be
|
|
@@ -2072,7 +77,7 @@ const {
|
|
|
2072
77
|
matchAll: matchAllSymbol } =
|
|
2073
78
|
Symbol;$h_once.speciesSymbol(speciesSymbol);$h_once.toStringTagSymbol(toStringTagSymbol);$h_once.iteratorSymbol(iteratorSymbol);$h_once.matchAllSymbol(matchAllSymbol);
|
|
2074
79
|
|
|
2075
|
-
const { stringify: stringifyJson } = JSON;
|
|
80
|
+
const { stringify: stringifyJson } = JSON;$h_once.stringifyJson(stringifyJson);
|
|
2076
81
|
|
|
2077
82
|
// At time of this writing, we still support Node 10 which doesn't have
|
|
2078
83
|
// `Object.fromEntries`. If it is absent, this should be an adequate
|
|
@@ -2080,7 +85,7 @@ const { stringify: stringifyJson } = JSON;
|
|
|
2080
85
|
// By the terminology of https://ponyfoo.com/articles/polyfills-or-ponyfills
|
|
2081
86
|
// it is a ponyfill rather than a polyfill or shim because we do not
|
|
2082
87
|
// install it on `Object`.
|
|
2083
|
-
|
|
88
|
+
const objectFromEntries = (entryPairs) => {
|
|
2084
89
|
const result = {};
|
|
2085
90
|
for (const [prop, val] of entryPairs) {
|
|
2086
91
|
result[prop] = val;
|
|
@@ -2088,10 +93,10 @@ $h_once.stringifyJson(stringifyJson);const objectFromEntries = (entryPairs) =
|
|
|
2088
93
|
return result;
|
|
2089
94
|
};
|
|
2090
95
|
|
|
2091
|
-
const fromEntries = Object.fromEntries || objectFromEntries;
|
|
96
|
+
const fromEntries = Object.fromEntries || objectFromEntries;$h_once.fromEntries(fromEntries);
|
|
2092
97
|
|
|
2093
98
|
// Needed only for the Safari bug workaround below
|
|
2094
|
-
|
|
99
|
+
const { defineProperty: originalDefineProperty } = Object;
|
|
2095
100
|
|
|
2096
101
|
const defineProperty = (object, prop, descriptor) => {
|
|
2097
102
|
// We used to do the following, until we had to reopen Safari bug
|
|
@@ -2134,7 +139,7 @@ const { prototype: stringPrototype } = String;$h_once.stringPrototype(stringP
|
|
|
2134
139
|
const { prototype: weakmapPrototype } = WeakMap;$h_once.weakmapPrototype(weakmapPrototype);
|
|
2135
140
|
const { prototype: weaksetPrototype } = WeakSet;$h_once.weaksetPrototype(weaksetPrototype);
|
|
2136
141
|
const { prototype: functionPrototype } = Function;$h_once.functionPrototype(functionPrototype);
|
|
2137
|
-
const { prototype: promisePrototype } = Promise;
|
|
142
|
+
const { prototype: promisePrototype } = Promise;$h_once.promisePrototype(promisePrototype);
|
|
2138
143
|
|
|
2139
144
|
/**
|
|
2140
145
|
* uncurryThis()
|
|
@@ -2150,12 +155,12 @@ const { prototype: promisePrototype } = Promise;
|
|
|
2150
155
|
* http://web.archive.org/web/20160805225710/http://wiki.ecmascript.org/doku.php?id=conventions:safe_meta_programming
|
|
2151
156
|
*
|
|
2152
157
|
* @param {(thisArg: Object, ...args: any[]) => any} fn
|
|
2153
|
-
|
|
158
|
+
*/
|
|
2154
159
|
const uncurryThis = (fn) => (thisArg, ...args) => apply(fn, thisArg, args);$h_once.uncurryThis(uncurryThis);
|
|
2155
160
|
|
|
2156
|
-
const objectHasOwnProperty = uncurryThis(objectPrototype.hasOwnProperty);
|
|
161
|
+
const objectHasOwnProperty = uncurryThis(objectPrototype.hasOwnProperty);$h_once.objectHasOwnProperty(objectHasOwnProperty);
|
|
2157
162
|
//
|
|
2158
|
-
|
|
163
|
+
const arrayFilter = uncurryThis(arrayPrototype.filter);$h_once.arrayFilter(arrayFilter);
|
|
2159
164
|
const arrayForEach = uncurryThis(arrayPrototype.forEach);$h_once.arrayForEach(arrayForEach);
|
|
2160
165
|
const arrayIncludes = uncurryThis(arrayPrototype.includes);$h_once.arrayIncludes(arrayIncludes);
|
|
2161
166
|
const arrayJoin = uncurryThis(arrayPrototype.join);$h_once.arrayJoin(arrayJoin);
|
|
@@ -2165,23 +170,23 @@ const arrayPush = uncurryThis(arrayPrototype.push);$h_once.arrayPush(arrayPus
|
|
|
2165
170
|
const arraySlice = uncurryThis(arrayPrototype.slice);$h_once.arraySlice(arraySlice);
|
|
2166
171
|
const arraySome = uncurryThis(arrayPrototype.some);$h_once.arraySome(arraySome);
|
|
2167
172
|
const arraySort = uncurryThis(arrayPrototype.sort);$h_once.arraySort(arraySort);
|
|
2168
|
-
const iterateArray = uncurryThis(arrayPrototype[iteratorSymbol]);
|
|
173
|
+
const iterateArray = uncurryThis(arrayPrototype[iteratorSymbol]);$h_once.iterateArray(iterateArray);
|
|
2169
174
|
//
|
|
2170
|
-
|
|
175
|
+
const mapSet = uncurryThis(mapPrototype.set);$h_once.mapSet(mapSet);
|
|
2171
176
|
const mapGet = uncurryThis(mapPrototype.get);$h_once.mapGet(mapGet);
|
|
2172
177
|
const mapHas = uncurryThis(mapPrototype.has);$h_once.mapHas(mapHas);
|
|
2173
|
-
const iterateMap = uncurryThis(mapPrototype[iteratorSymbol]);
|
|
178
|
+
const iterateMap = uncurryThis(mapPrototype[iteratorSymbol]);$h_once.iterateMap(iterateMap);
|
|
2174
179
|
//
|
|
2175
|
-
|
|
180
|
+
const setAdd = uncurryThis(setPrototype.add);$h_once.setAdd(setAdd);
|
|
2176
181
|
const setForEach = uncurryThis(setPrototype.forEach);$h_once.setForEach(setForEach);
|
|
2177
182
|
const setHas = uncurryThis(setPrototype.has);$h_once.setHas(setHas);
|
|
2178
|
-
const iterateSet = uncurryThis(setPrototype[iteratorSymbol]);
|
|
183
|
+
const iterateSet = uncurryThis(setPrototype[iteratorSymbol]);$h_once.iterateSet(iterateSet);
|
|
2179
184
|
//
|
|
2180
|
-
|
|
185
|
+
const regexpTest = uncurryThis(regexpPrototype.test);$h_once.regexpTest(regexpTest);
|
|
2181
186
|
const regexpExec = uncurryThis(regexpPrototype.exec);$h_once.regexpExec(regexpExec);
|
|
2182
|
-
const matchAllRegExp = uncurryThis(regexpPrototype[matchAllSymbol]);
|
|
187
|
+
const matchAllRegExp = uncurryThis(regexpPrototype[matchAllSymbol]);$h_once.matchAllRegExp(matchAllRegExp);
|
|
2183
188
|
//
|
|
2184
|
-
|
|
189
|
+
const stringEndsWith = uncurryThis(stringPrototype.endsWith);$h_once.stringEndsWith(stringEndsWith);
|
|
2185
190
|
const stringIncludes = uncurryThis(stringPrototype.includes);$h_once.stringIncludes(stringIncludes);
|
|
2186
191
|
const stringIndexOf = uncurryThis(stringPrototype.indexOf);$h_once.stringIndexOf(stringIndexOf);
|
|
2187
192
|
const stringMatch = uncurryThis(stringPrototype.match);$h_once.stringMatch(stringMatch);
|
|
@@ -2190,38 +195,38 @@ const stringSearch = uncurryThis(stringPrototype.search);$h_once.stringSearch
|
|
|
2190
195
|
const stringSlice = uncurryThis(stringPrototype.slice);$h_once.stringSlice(stringSlice);
|
|
2191
196
|
const stringSplit = uncurryThis(stringPrototype.split);$h_once.stringSplit(stringSplit);
|
|
2192
197
|
const stringStartsWith = uncurryThis(stringPrototype.startsWith);$h_once.stringStartsWith(stringStartsWith);
|
|
2193
|
-
const iterateString = uncurryThis(stringPrototype[iteratorSymbol]);
|
|
198
|
+
const iterateString = uncurryThis(stringPrototype[iteratorSymbol]);$h_once.iterateString(iterateString);
|
|
2194
199
|
//
|
|
2195
|
-
|
|
200
|
+
const weakmapDelete = uncurryThis(weakmapPrototype.delete);$h_once.weakmapDelete(weakmapDelete);
|
|
2196
201
|
const weakmapGet = uncurryThis(weakmapPrototype.get);$h_once.weakmapGet(weakmapGet);
|
|
2197
202
|
const weakmapHas = uncurryThis(weakmapPrototype.has);$h_once.weakmapHas(weakmapHas);
|
|
2198
|
-
const weakmapSet = uncurryThis(weakmapPrototype.set);
|
|
203
|
+
const weakmapSet = uncurryThis(weakmapPrototype.set);$h_once.weakmapSet(weakmapSet);
|
|
2199
204
|
//
|
|
2200
|
-
|
|
205
|
+
const weaksetAdd = uncurryThis(weaksetPrototype.add);$h_once.weaksetAdd(weaksetAdd);
|
|
2201
206
|
const weaksetGet = uncurryThis(weaksetPrototype.get);$h_once.weaksetGet(weaksetGet);
|
|
2202
|
-
const weaksetHas = uncurryThis(weaksetPrototype.has);
|
|
207
|
+
const weaksetHas = uncurryThis(weaksetPrototype.has);$h_once.weaksetHas(weaksetHas);
|
|
2203
208
|
//
|
|
2204
|
-
|
|
209
|
+
const functionToString = uncurryThis(functionPrototype.toString);$h_once.functionToString(functionToString);
|
|
2205
210
|
//
|
|
2206
|
-
|
|
211
|
+
const { all } = Promise;
|
|
2207
212
|
const promiseAll = (promises) => apply(all, Promise, [promises]);$h_once.promiseAll(promiseAll);
|
|
2208
213
|
const promiseCatch = uncurryThis(promisePrototype.catch);$h_once.promiseCatch(promiseCatch);
|
|
2209
|
-
const promiseThen = uncurryThis(promisePrototype.then);
|
|
214
|
+
const promiseThen = uncurryThis(promisePrototype.then);$h_once.promiseThen(promiseThen);
|
|
2210
215
|
|
|
2211
216
|
/**
|
|
2212
217
|
* getConstructorOf()
|
|
2213
218
|
* Return the constructor from an instance.
|
|
2214
219
|
*
|
|
2215
220
|
* @param {Function} fn
|
|
2216
|
-
|
|
221
|
+
*/
|
|
2217
222
|
const getConstructorOf = (fn) =>
|
|
2218
|
-
reflectGet(getPrototypeOf(fn), 'constructor');
|
|
223
|
+
reflectGet(getPrototypeOf(fn), 'constructor');$h_once.getConstructorOf(getConstructorOf);
|
|
2219
224
|
|
|
2220
225
|
/**
|
|
2221
226
|
* immutableObject
|
|
2222
227
|
* An immutable (frozen) empty object that is safe to share.
|
|
2223
|
-
|
|
2224
|
-
const immutableObject = freeze(create(null));
|
|
228
|
+
*/
|
|
229
|
+
const immutableObject = freeze(create(null));$h_once.immutableObject(immutableObject);
|
|
2225
230
|
|
|
2226
231
|
/**
|
|
2227
232
|
* isObject tests whether a value is an object.
|
|
@@ -2239,8 +244,8 @@ const immutableObject = freeze(create(null));
|
|
|
2239
244
|
* attempting to box a primitive.
|
|
2240
245
|
*
|
|
2241
246
|
* @param {any} value
|
|
2242
|
-
|
|
2243
|
-
const isObject = (value) => Object(value) === value;
|
|
247
|
+
*/
|
|
248
|
+
const isObject = (value) => Object(value) === value;$h_once.isObject(isObject);
|
|
2244
249
|
|
|
2245
250
|
/**
|
|
2246
251
|
* isError tests whether an object inherits from the intrinsic
|
|
@@ -2252,22 +257,22 @@ const isObject = (value) => Object(value) === value;
|
|
|
2252
257
|
* for such a trivial case outside commons.js, we provide a utility function.
|
|
2253
258
|
*
|
|
2254
259
|
* @param {any} value
|
|
2255
|
-
|
|
2256
|
-
const isError = (value) => value instanceof FERAL_ERROR;
|
|
260
|
+
*/
|
|
261
|
+
const isError = (value) => value instanceof FERAL_ERROR;$h_once.isError(isError);
|
|
2257
262
|
|
|
2258
263
|
// The original unsafe untamed eval function, which must not escape.
|
|
2259
264
|
// Sample at module initialization time, which is before lockdown can
|
|
2260
265
|
// repair it. Use it only to build powerless abstractions.
|
|
2261
266
|
// eslint-disable-next-line no-eval
|
|
2262
|
-
|
|
267
|
+
const FERAL_EVAL = eval;$h_once.FERAL_EVAL(FERAL_EVAL);
|
|
2263
268
|
|
|
2264
269
|
// The original unsafe untamed Function constructor, which must not escape.
|
|
2265
270
|
// Sample at module initialization time, which is before lockdown can
|
|
2266
271
|
// repair it. Use it only to build powerless abstractions.
|
|
2267
|
-
|
|
272
|
+
const FERAL_FUNCTION = Function;$h_once.FERAL_FUNCTION(FERAL_FUNCTION);
|
|
2268
273
|
})
|
|
2269
|
-
|
|
2270
274
|
,
|
|
275
|
+
// === functors[1] ===
|
|
2271
276
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { $h_imports([]); // @ts-check
|
|
2272
277
|
|
|
2273
278
|
/**
|
|
@@ -2358,8 +363,8 @@ $h_once.FERAL_EVAL(FERAL_EVAL);const FERAL_FUNCTION = Function;$h_once.FER
|
|
|
2358
363
|
* @returns {VirtualConsole}
|
|
2359
364
|
*/
|
|
2360
365
|
})
|
|
2361
|
-
|
|
2362
366
|
,
|
|
367
|
+
// === functors[2] ===
|
|
2363
368
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let Set,String,arrayJoin,arraySlice,freeze,is,isError,setAdd,setHas,stringIncludes,stringStartsWith,stringifyJson,toStringTagSymbol;$h_imports([["../commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arraySlice", [$h_a => (arraySlice = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["is", [$h_a => (is = $h_a)]],["isError", [$h_a => (isError = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["setHas", [$h_a => (setHas = $h_a)]],["stringIncludes", [$h_a => (stringIncludes = $h_a)]],["stringStartsWith", [$h_a => (stringStartsWith = $h_a)]],["stringifyJson", [$h_a => (stringifyJson = $h_a)]],["toStringTagSymbol", [$h_a => (toStringTagSymbol = $h_a)]]]]]);
|
|
2364
369
|
|
|
2365
370
|
|
|
@@ -2397,7 +402,7 @@ const enJoin = (terms, conjunction) => {
|
|
|
2397
402
|
terms[terms.length - 1]
|
|
2398
403
|
}`;
|
|
2399
404
|
}
|
|
2400
|
-
};
|
|
405
|
+
};$h_once.enJoin(enJoin);
|
|
2401
406
|
|
|
2402
407
|
/**
|
|
2403
408
|
* Prepend the correct indefinite article onto a noun, typically a typeof
|
|
@@ -2405,7 +410,7 @@ const enJoin = (terms, conjunction) => {
|
|
|
2405
410
|
*
|
|
2406
411
|
* @param {string} str The noun to prepend
|
|
2407
412
|
* @returns {string} The noun prepended with a/an
|
|
2408
|
-
|
|
413
|
+
*/
|
|
2409
414
|
const an = (str) => {
|
|
2410
415
|
str = `${str}`;
|
|
2411
416
|
if (str.length >= 1 && stringIncludes('aeiouAEIOU', str[0])) {
|
|
@@ -2529,8 +534,8 @@ const bestEffortStringify = (payload, spaces = undefined) => {
|
|
|
2529
534
|
};$h_once.bestEffortStringify(bestEffortStringify);
|
|
2530
535
|
freeze(bestEffortStringify);
|
|
2531
536
|
})
|
|
2532
|
-
|
|
2533
537
|
,
|
|
538
|
+
// === functors[3] ===
|
|
2534
539
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { $h_imports([]); // @ts-check
|
|
2535
540
|
|
|
2536
541
|
/**
|
|
@@ -2882,8 +887,8 @@ freeze(bestEffortStringify);
|
|
|
2882
887
|
* @returns {VirtualConsole}
|
|
2883
888
|
*/
|
|
2884
889
|
})
|
|
2885
|
-
|
|
2886
890
|
,
|
|
891
|
+
// === functors[4] ===
|
|
2887
892
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,globalThis,is,isError,stringIndexOf,stringReplace,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,an,bestEffortStringify;$h_imports([["../commons.js", [["RangeError", [$h_a => (RangeError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPop", [$h_a => (arrayPop = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["assign", [$h_a => (assign = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["is", [$h_a => (is = $h_a)]],["isError", [$h_a => (isError = $h_a)]],["stringIndexOf", [$h_a => (stringIndexOf = $h_a)]],["stringReplace", [$h_a => (stringReplace = $h_a)]],["stringSlice", [$h_a => (stringSlice = $h_a)]],["stringStartsWith", [$h_a => (stringStartsWith = $h_a)]],["weakmapDelete", [$h_a => (weakmapDelete = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapHas", [$h_a => (weakmapHas = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]]]],["./stringify-utils.js", [["an", [$h_a => (an = $h_a)]],["bestEffortStringify", [$h_a => (bestEffortStringify = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
2888
893
|
|
|
2889
894
|
|
|
@@ -3330,8 +1335,8 @@ freeze(makeAssert);
|
|
|
3330
1335
|
/** @type {Assert} */
|
|
3331
1336
|
const assert = makeAssert();$h_once.assert(assert);
|
|
3332
1337
|
})
|
|
3333
|
-
|
|
3334
1338
|
,
|
|
1339
|
+
// === functors[5] ===
|
|
3335
1340
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let FERAL_FUNCTION,arrayJoin;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]]]]]);
|
|
3336
1341
|
|
|
3337
1342
|
/**
|
|
@@ -3404,8 +1409,8 @@ const makeEvaluateFactory = (constants = []) => {
|
|
|
3404
1409
|
`);
|
|
3405
1410
|
};$h_once.makeEvaluateFactory(makeEvaluateFactory);
|
|
3406
1411
|
})
|
|
3407
|
-
|
|
3408
1412
|
,
|
|
1413
|
+
// === functors[6] ===
|
|
3409
1414
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let arrayFilter,arrayIncludes,getOwnPropertyDescriptor,getOwnPropertyNames,objectHasOwnProperty,regexpTest;$h_imports([["./commons.js", [["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayIncludes", [$h_a => (arrayIncludes = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["regexpTest", [$h_a => (regexpTest = $h_a)]]]]]);
|
|
3410
1415
|
|
|
3411
1416
|
|
|
@@ -3514,11 +1519,11 @@ const isValidIdentifierName = (name) => {
|
|
|
3514
1519
|
!arrayIncludes(keywords, name) &&
|
|
3515
1520
|
regexpTest(identifierPattern, name));
|
|
3516
1521
|
|
|
3517
|
-
};
|
|
1522
|
+
};$h_once.isValidIdentifierName(isValidIdentifierName);
|
|
3518
1523
|
|
|
3519
1524
|
/*
|
|
3520
1525
|
* isImmutableDataProperty
|
|
3521
|
-
|
|
1526
|
+
*/
|
|
3522
1527
|
|
|
3523
1528
|
function isImmutableDataProperty(obj, name) {
|
|
3524
1529
|
const desc = getOwnPropertyDescriptor(obj, name);
|
|
@@ -3582,8 +1587,8 @@ const getScopeConstants = (globalObject, localObject = {}) => {
|
|
|
3582
1587
|
return [...globalConstants, ...localConstants];
|
|
3583
1588
|
};$h_once.getScopeConstants(getScopeConstants);
|
|
3584
1589
|
})
|
|
3585
|
-
|
|
3586
1590
|
,
|
|
1591
|
+
// === functors[7] ===
|
|
3587
1592
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let FERAL_EVAL,Proxy,String,TypeError,create,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,immutableObject,objectHasOwnProperty,reflectGet,reflectSet,assert;$h_imports([["./commons.js", [["FERAL_EVAL", [$h_a => (FERAL_EVAL = $h_a)]],["Proxy", [$h_a => (Proxy = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["immutableObject", [$h_a => (immutableObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["reflectGet", [$h_a => (reflectGet = $h_a)]],["reflectSet", [$h_a => (reflectSet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
3588
1593
|
|
|
3589
1594
|
|
|
@@ -3798,8 +1803,8 @@ localObject = {},
|
|
|
3798
1803
|
|
|
3799
1804
|
};$h_once.createScopeHandler(createScopeHandler);
|
|
3800
1805
|
})
|
|
3801
|
-
|
|
3802
1806
|
,
|
|
1807
|
+
// === functors[8] ===
|
|
3803
1808
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { 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)]]]]]);
|
|
3804
1809
|
|
|
3805
1810
|
// Captures a key and value of the form #key=value or @key=value
|
|
@@ -3848,8 +1853,8 @@ const getSourceURL = (src) => {
|
|
|
3848
1853
|
return sourceURL;
|
|
3849
1854
|
};$h_once.getSourceURL(getSourceURL);
|
|
3850
1855
|
})
|
|
3851
|
-
|
|
3852
1856
|
,
|
|
1857
|
+
// === functors[9] ===
|
|
3853
1858
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let FERAL_REG_EXP,SyntaxError,stringReplace,stringSearch,stringSlice,stringSplit,getSourceURL;$h_imports([["./commons.js", [["FERAL_REG_EXP", [$h_a => (FERAL_REG_EXP = $h_a)]],["SyntaxError", [$h_a => (SyntaxError = $h_a)]],["stringReplace", [$h_a => (stringReplace = $h_a)]],["stringSearch", [$h_a => (stringSearch = $h_a)]],["stringSlice", [$h_a => (stringSlice = $h_a)]],["stringSplit", [$h_a => (stringSplit = $h_a)]]]],["./get-source-url.js", [["getSourceURL", [$h_a => (getSourceURL = $h_a)]]]]]);
|
|
3854
1859
|
|
|
3855
1860
|
|
|
@@ -3924,7 +1929,7 @@ const rejectHtmlComments = (src) => {
|
|
|
3924
1929
|
throw new SyntaxError(
|
|
3925
1930
|
`Possible HTML comment rejected at ${name}:${lineNumber}. (SES_HTML_COMMENT_REJECTED)`);
|
|
3926
1931
|
|
|
3927
|
-
};
|
|
1932
|
+
};$h_once.rejectHtmlComments(rejectHtmlComments);
|
|
3928
1933
|
|
|
3929
1934
|
/**
|
|
3930
1935
|
* An optional transform to place ahead of `rejectHtmlComments` to evade *that*
|
|
@@ -3947,14 +1952,14 @@ const rejectHtmlComments = (src) => {
|
|
|
3947
1952
|
*
|
|
3948
1953
|
* @param { string } src
|
|
3949
1954
|
* @returns { string }
|
|
3950
|
-
|
|
1955
|
+
*/
|
|
3951
1956
|
const evadeHtmlCommentTest = (src) => {
|
|
3952
1957
|
const replaceFn = (match) => match[0] === '<' ? '< ! --' : '-- >';
|
|
3953
1958
|
return stringReplace(src, htmlCommentPattern, replaceFn);
|
|
3954
|
-
};
|
|
1959
|
+
};$h_once.evadeHtmlCommentTest(evadeHtmlCommentTest);
|
|
3955
1960
|
|
|
3956
1961
|
// /////////////////////////////////////////////////////////////////////////////
|
|
3957
|
-
|
|
1962
|
+
|
|
3958
1963
|
const importPattern = new FERAL_REG_EXP(
|
|
3959
1964
|
'(^|[^.])\\bimport(\\s*(?:\\(|/[/*]))',
|
|
3960
1965
|
'g');
|
|
@@ -3999,7 +2004,7 @@ const rejectImportExpressions = (src) => {
|
|
|
3999
2004
|
throw new SyntaxError(
|
|
4000
2005
|
`Possible import expression rejected at ${name}:${lineNumber}. (SES_IMPORT_REJECTED)`);
|
|
4001
2006
|
|
|
4002
|
-
};
|
|
2007
|
+
};$h_once.rejectImportExpressions(rejectImportExpressions);
|
|
4003
2008
|
|
|
4004
2009
|
/**
|
|
4005
2010
|
* An optional transform to place ahead of `rejectImportExpressions` to evade
|
|
@@ -4016,14 +2021,14 @@ const rejectImportExpressions = (src) => {
|
|
|
4016
2021
|
*
|
|
4017
2022
|
* @param { string } src
|
|
4018
2023
|
* @returns { string }
|
|
4019
|
-
|
|
2024
|
+
*/
|
|
4020
2025
|
const evadeImportExpressionTest = (src) => {
|
|
4021
2026
|
const replaceFn = (_, p1, p2) => `${p1}__import__${p2}`;
|
|
4022
2027
|
return stringReplace(src, importPattern, replaceFn);
|
|
4023
|
-
};
|
|
2028
|
+
};$h_once.evadeImportExpressionTest(evadeImportExpressionTest);
|
|
4024
2029
|
|
|
4025
2030
|
// /////////////////////////////////////////////////////////////////////////////
|
|
4026
|
-
|
|
2031
|
+
|
|
4027
2032
|
const someDirectEvalPattern = new FERAL_REG_EXP(
|
|
4028
2033
|
'(^|[^.])\\beval(\\s*\\()',
|
|
4029
2034
|
'g');
|
|
@@ -4070,7 +2075,7 @@ const rejectSomeDirectEvalExpressions = (src) => {
|
|
|
4070
2075
|
throw new SyntaxError(
|
|
4071
2076
|
`Possible direct eval expression rejected at ${name}:${lineNumber}. (SES_EVAL_REJECTED)`);
|
|
4072
2077
|
|
|
4073
|
-
};
|
|
2078
|
+
};$h_once.rejectSomeDirectEvalExpressions(rejectSomeDirectEvalExpressions);
|
|
4074
2079
|
|
|
4075
2080
|
// /////////////////////////////////////////////////////////////////////////////
|
|
4076
2081
|
|
|
@@ -4080,12 +2085,12 @@ const rejectSomeDirectEvalExpressions = (src) => {
|
|
|
4080
2085
|
*
|
|
4081
2086
|
* @param {string} source
|
|
4082
2087
|
* @returns {string}
|
|
4083
|
-
|
|
2088
|
+
*/
|
|
4084
2089
|
const mandatoryTransforms = (source) => {
|
|
4085
2090
|
source = rejectHtmlComments(source);
|
|
4086
2091
|
source = rejectImportExpressions(source);
|
|
4087
2092
|
return source;
|
|
4088
|
-
};
|
|
2093
|
+
};$h_once.mandatoryTransforms(mandatoryTransforms);
|
|
4089
2094
|
|
|
4090
2095
|
/**
|
|
4091
2096
|
* Starting with `source`, apply each transform to the result of the
|
|
@@ -4094,7 +2099,7 @@ const mandatoryTransforms = (source) => {
|
|
|
4094
2099
|
* @param {string} source
|
|
4095
2100
|
* @param {((str: string) => string)[]} transforms
|
|
4096
2101
|
* @returns {string}
|
|
4097
|
-
|
|
2102
|
+
*/
|
|
4098
2103
|
const applyTransforms = (source, transforms) => {
|
|
4099
2104
|
for (const transform of transforms) {
|
|
4100
2105
|
source = transform(source);
|
|
@@ -4102,8 +2107,8 @@ const applyTransforms = (source, transforms) => {
|
|
|
4102
2107
|
return source;
|
|
4103
2108
|
};$h_once.applyTransforms(applyTransforms);
|
|
4104
2109
|
})
|
|
4105
|
-
|
|
4106
2110
|
,
|
|
2111
|
+
// === functors[10] ===
|
|
4107
2112
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let WeakSet,apply,immutableObject,proxyRevocable,weaksetAdd,getScopeConstants,createScopeHandler,applyTransforms,mandatoryTransforms,makeEvaluateFactory,assert;$h_imports([["./commons.js", [["WeakSet", [$h_a => (WeakSet = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["immutableObject", [$h_a => (immutableObject = $h_a)]],["proxyRevocable", [$h_a => (proxyRevocable = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]]]],["./scope-constants.js", [["getScopeConstants", [$h_a => (getScopeConstants = $h_a)]]]],["./scope-handler.js", [["createScopeHandler", [$h_a => (createScopeHandler = $h_a)]]]],["./transforms.js", [["applyTransforms", [$h_a => (applyTransforms = $h_a)]],["mandatoryTransforms", [$h_a => (mandatoryTransforms = $h_a)]]]],["./make-evaluate-factory.js", [["makeEvaluateFactory", [$h_a => (makeEvaluateFactory = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
4108
2113
|
|
|
4109
2114
|
|
|
@@ -4222,8 +2227,8 @@ const makeSafeEvaluator = ({
|
|
|
4222
2227
|
return { safeEvaluate };
|
|
4223
2228
|
};$h_once.makeSafeEvaluator(makeSafeEvaluator);
|
|
4224
2229
|
})
|
|
4225
|
-
|
|
4226
2230
|
,
|
|
2231
|
+
// === functors[11] ===
|
|
4227
2232
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let TypeError,arrayPush,create,defineProperties,getOwnPropertyDescriptors,evadeHtmlCommentTest,evadeImportExpressionTest,rejectSomeDirectEvalExpressions,makeSafeEvaluator;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]]]],["./transforms.js", [["evadeHtmlCommentTest", [$h_a => (evadeHtmlCommentTest = $h_a)]],["evadeImportExpressionTest", [$h_a => (evadeImportExpressionTest = $h_a)]],["rejectSomeDirectEvalExpressions", [$h_a => (rejectSomeDirectEvalExpressions = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]]]);
|
|
4228
2233
|
|
|
4229
2234
|
|
|
@@ -4327,8 +2332,8 @@ const compartmentEvaluate = (compartmentFields, source, options) => {
|
|
|
4327
2332
|
|
|
4328
2333
|
};$h_once.compartmentEvaluate(compartmentEvaluate);
|
|
4329
2334
|
})
|
|
4330
|
-
|
|
4331
2335
|
,
|
|
2336
|
+
// === functors[12] ===
|
|
4332
2337
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { $h_imports([]); /*
|
|
4333
2338
|
* makeEvalFunction()
|
|
4334
2339
|
* A safe version of the native eval function which relies on
|
|
@@ -4355,8 +2360,8 @@ const makeEvalFunction = (safeEvaluate) => {
|
|
|
4355
2360
|
return newEval;
|
|
4356
2361
|
};$h_once.makeEvalFunction(makeEvalFunction);
|
|
4357
2362
|
})
|
|
4358
|
-
|
|
4359
2363
|
,
|
|
2364
|
+
// === functors[13] ===
|
|
4360
2365
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { 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)]]]]]);
|
|
4361
2366
|
|
|
4362
2367
|
|
|
@@ -4438,8 +2443,8 @@ const makeFunctionConstructor = (safeEvaluate) => {
|
|
|
4438
2443
|
return newFunction;
|
|
4439
2444
|
};$h_once.makeFunctionConstructor(makeFunctionConstructor);
|
|
4440
2445
|
})
|
|
4441
|
-
|
|
4442
2446
|
,
|
|
2447
|
+
// === functors[14] ===
|
|
4443
2448
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { $h_imports([]); /* eslint-disable no-restricted-globals */
|
|
4444
2449
|
/**
|
|
4445
2450
|
* @file Exports {@code whitelist}, a recursively defined
|
|
@@ -4463,7 +2468,7 @@ const constantProperties = {
|
|
|
4463
2468
|
|
|
4464
2469
|
Infinity,
|
|
4465
2470
|
NaN,
|
|
4466
|
-
undefined };
|
|
2471
|
+
undefined };$h_once.constantProperties(constantProperties);
|
|
4467
2472
|
|
|
4468
2473
|
|
|
4469
2474
|
/**
|
|
@@ -4471,7 +2476,7 @@ const constantProperties = {
|
|
|
4471
2476
|
* Properties of all global objects.
|
|
4472
2477
|
* Must be powerless.
|
|
4473
2478
|
* Maps from property name to the intrinsic name in the whitelist.
|
|
4474
|
-
|
|
2479
|
+
*/
|
|
4475
2480
|
const universalPropertyNames = {
|
|
4476
2481
|
// *** Function Properties of the Global Object
|
|
4477
2482
|
|
|
@@ -4535,7 +2540,7 @@ const universalPropertyNames = {
|
|
|
4535
2540
|
lockdown: 'lockdown',
|
|
4536
2541
|
harden: 'harden',
|
|
4537
2542
|
HandledPromise: 'HandledPromise' // TODO: Until Promise.delegate (see below).
|
|
4538
|
-
};
|
|
2543
|
+
};$h_once.universalPropertyNames(universalPropertyNames);
|
|
4539
2544
|
|
|
4540
2545
|
/**
|
|
4541
2546
|
* initialGlobalPropertyNames
|
|
@@ -4543,7 +2548,7 @@ const universalPropertyNames = {
|
|
|
4543
2548
|
* start compartment, as well as any compartments created before lockdown.
|
|
4544
2549
|
* These may provide much of the power provided by the original.
|
|
4545
2550
|
* Maps from property name to the intrinsic name in the whitelist.
|
|
4546
|
-
|
|
2551
|
+
*/
|
|
4547
2552
|
const initialGlobalPropertyNames = {
|
|
4548
2553
|
// *** Constructor Properties of the Global Object
|
|
4549
2554
|
|
|
@@ -4565,14 +2570,14 @@ const initialGlobalPropertyNames = {
|
|
|
4565
2570
|
// TODO https://github.com/Agoric/SES-shim/issues/551
|
|
4566
2571
|
// Need initial WeakRef and FinalizationGroup in
|
|
4567
2572
|
// start compartment only.
|
|
4568
|
-
};
|
|
2573
|
+
};$h_once.initialGlobalPropertyNames(initialGlobalPropertyNames);
|
|
4569
2574
|
|
|
4570
2575
|
/**
|
|
4571
2576
|
* sharedGlobalPropertyNames
|
|
4572
2577
|
* Those found only on the globals of new compartments created after lockdown,
|
|
4573
2578
|
* which must therefore be powerless.
|
|
4574
2579
|
* Maps from property name to the intrinsic name in the whitelist.
|
|
4575
|
-
|
|
2580
|
+
*/
|
|
4576
2581
|
const sharedGlobalPropertyNames = {
|
|
4577
2582
|
// *** Constructor Properties of the Global Object
|
|
4578
2583
|
|
|
@@ -4582,7 +2587,7 @@ const sharedGlobalPropertyNames = {
|
|
|
4582
2587
|
|
|
4583
2588
|
// *** Other Properties of the Global Object
|
|
4584
2589
|
|
|
4585
|
-
Math: '%SharedMath%' };
|
|
2590
|
+
Math: '%SharedMath%' };$h_once.sharedGlobalPropertyNames(sharedGlobalPropertyNames);
|
|
4586
2591
|
|
|
4587
2592
|
|
|
4588
2593
|
/**
|
|
@@ -4591,7 +2596,7 @@ const sharedGlobalPropertyNames = {
|
|
|
4591
2596
|
* of the start compartment.
|
|
4592
2597
|
* Maps from property name to the intrinsic name in the whitelist
|
|
4593
2598
|
* (which is currently always the same).
|
|
4594
|
-
|
|
2599
|
+
*/
|
|
4595
2600
|
const uniqueGlobalPropertyNames = {
|
|
4596
2601
|
// *** Value Properties of the Global Object
|
|
4597
2602
|
|
|
@@ -4612,18 +2617,18 @@ const uniqueGlobalPropertyNames = {
|
|
|
4612
2617
|
Compartment: '%UniqueCompartment%'
|
|
4613
2618
|
// According to current agreements, eventually the Realm constructor too.
|
|
4614
2619
|
// 'Realm',
|
|
4615
|
-
};
|
|
2620
|
+
};$h_once.uniqueGlobalPropertyNames(uniqueGlobalPropertyNames);
|
|
4616
2621
|
|
|
4617
2622
|
// All the "subclasses" of Error. These are collectively represented in the
|
|
4618
2623
|
// ECMAScript spec by the meta variable NativeError.
|
|
4619
2624
|
// TODO Add AggregateError https://github.com/Agoric/SES-shim/issues/550
|
|
4620
|
-
|
|
2625
|
+
const NativeErrors = [
|
|
4621
2626
|
EvalError,
|
|
4622
2627
|
RangeError,
|
|
4623
2628
|
ReferenceError,
|
|
4624
2629
|
SyntaxError,
|
|
4625
2630
|
TypeError,
|
|
4626
|
-
URIError];
|
|
2631
|
+
URIError];$h_once.NativeErrors(NativeErrors);
|
|
4627
2632
|
|
|
4628
2633
|
|
|
4629
2634
|
/**
|
|
@@ -4670,17 +2675,17 @@ URIError];
|
|
|
4670
2675
|
*/
|
|
4671
2676
|
|
|
4672
2677
|
// Function Instances
|
|
4673
|
-
|
|
2678
|
+
const FunctionInstance = {
|
|
4674
2679
|
'[[Proto]]': '%FunctionPrototype%',
|
|
4675
2680
|
length: 'number',
|
|
4676
2681
|
name: 'string'
|
|
4677
2682
|
// Do not specify "prototype" here, since only Function instances that can
|
|
4678
2683
|
// be used as a constructor have a prototype property. For constructors,
|
|
4679
2684
|
// since prototype properties are instance-specific, we define it there.
|
|
4680
|
-
};
|
|
2685
|
+
};$h_once.FunctionInstance(FunctionInstance);
|
|
4681
2686
|
|
|
4682
2687
|
// AsyncFunction Instances
|
|
4683
|
-
|
|
2688
|
+
const AsyncFunctionInstance = {
|
|
4684
2689
|
// This property is not mentioned in ECMA 262, but is present in V8 and
|
|
4685
2690
|
// necessary for lockdown to succeed.
|
|
4686
2691
|
'[[Proto]]': '%AsyncFunctionPrototype%' };
|
|
@@ -4708,10 +2713,10 @@ const accessor = {
|
|
|
4708
2713
|
|
|
4709
2714
|
const isAccessorPermit = (permit) => {
|
|
4710
2715
|
return permit === getter || permit === accessor;
|
|
4711
|
-
};
|
|
2716
|
+
};$h_once.isAccessorPermit(isAccessorPermit);
|
|
4712
2717
|
|
|
4713
2718
|
// NativeError Object Structure
|
|
4714
|
-
|
|
2719
|
+
function NativeError(prototype) {
|
|
4715
2720
|
return {
|
|
4716
2721
|
// Properties of the NativeError Constructors
|
|
4717
2722
|
'[[Proto]]': '%SharedError%',
|
|
@@ -4729,7 +2734,10 @@ function NativeErrorPrototype(constructor) {
|
|
|
4729
2734
|
message: 'string',
|
|
4730
2735
|
name: 'string',
|
|
4731
2736
|
// Redundantly present only on v8. Safe to remove.
|
|
4732
|
-
toString: false
|
|
2737
|
+
toString: false,
|
|
2738
|
+
// Superfluously present in some versions of V8.
|
|
2739
|
+
// https://github.com/tc39/notes/blob/master/meetings/2021-10/oct-26.md#:~:text=However%2C%20Chrome%2093,and%20node%2016.11.
|
|
2740
|
+
cause: false };
|
|
4733
2741
|
|
|
4734
2742
|
}
|
|
4735
2743
|
|
|
@@ -4866,7 +2874,9 @@ const whitelist = {
|
|
|
4866
2874
|
prototype: '%ObjectPrototype%',
|
|
4867
2875
|
seal: fn,
|
|
4868
2876
|
setPrototypeOf: fn,
|
|
4869
|
-
values: fn
|
|
2877
|
+
values: fn,
|
|
2878
|
+
// See https://github.com/tc39/proposal-accessible-object-hasownproperty
|
|
2879
|
+
hasOwn: fn },
|
|
4870
2880
|
|
|
4871
2881
|
|
|
4872
2882
|
'%ObjectPrototype%': {
|
|
@@ -4991,7 +3001,10 @@ const whitelist = {
|
|
|
4991
3001
|
// Seen on FF Nightly 88.0a1
|
|
4992
3002
|
at: false,
|
|
4993
3003
|
// Seen on FF and XS
|
|
4994
|
-
stack: false
|
|
3004
|
+
stack: false,
|
|
3005
|
+
// Superfluously present in some versions of V8.
|
|
3006
|
+
// https://github.com/tc39/notes/blob/master/meetings/2021-10/oct-26.md#:~:text=However%2C%20Chrome%2093,and%20node%2016.11.
|
|
3007
|
+
cause: false },
|
|
4995
3008
|
|
|
4996
3009
|
|
|
4997
3010
|
// NativeError
|
|
@@ -5363,7 +3376,10 @@ const whitelist = {
|
|
|
5363
3376
|
|
|
5364
3377
|
// Failed tc39 proposal
|
|
5365
3378
|
// Seen on FF Nightly 88.0a1
|
|
5366
|
-
at: false
|
|
3379
|
+
at: false,
|
|
3380
|
+
// See https://github.com/tc39/proposal-array-find-from-last
|
|
3381
|
+
findLast: fn,
|
|
3382
|
+
findLastIndex: fn },
|
|
5367
3383
|
|
|
5368
3384
|
|
|
5369
3385
|
'%ArrayIteratorPrototype%': {
|
|
@@ -5419,7 +3435,10 @@ const whitelist = {
|
|
|
5419
3435
|
'@@toStringTag': getter,
|
|
5420
3436
|
// Failed tc39 proposal
|
|
5421
3437
|
// Seen on FF Nightly 88.0a1
|
|
5422
|
-
at: false
|
|
3438
|
+
at: false,
|
|
3439
|
+
// See https://github.com/tc39/proposal-array-find-from-last
|
|
3440
|
+
findLast: fn,
|
|
3441
|
+
findLastIndex: fn },
|
|
5423
3442
|
|
|
5424
3443
|
|
|
5425
3444
|
// The TypedArray Constructors
|
|
@@ -5558,7 +3577,12 @@ const whitelist = {
|
|
|
5558
3577
|
slice: fn,
|
|
5559
3578
|
'@@toStringTag': 'string',
|
|
5560
3579
|
// See https://github.com/Moddable-OpenSource/moddable/issues/523
|
|
5561
|
-
concat: false
|
|
3580
|
+
concat: false,
|
|
3581
|
+
// See https://github.com/tc39/proposal-resizablearraybuffer
|
|
3582
|
+
transfer: fn,
|
|
3583
|
+
resize: fn,
|
|
3584
|
+
resizable: getter,
|
|
3585
|
+
maxByteLength: getter },
|
|
5562
3586
|
|
|
5563
3587
|
|
|
5564
3588
|
// SharedArrayBuffer Objects
|
|
@@ -5794,8 +3818,8 @@ const whitelist = {
|
|
|
5794
3818
|
|
|
5795
3819
|
'%InitialGetStackString%': fn };$h_once.whitelist(whitelist);
|
|
5796
3820
|
})
|
|
5797
|
-
|
|
5798
3821
|
,
|
|
3822
|
+
// === functors[15] ===
|
|
5799
3823
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let defineProperty,objectHasOwnProperty,entries,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h_imports([["./commons.js", [["defineProperty", [$h_a => (defineProperty = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["entries", [$h_a => (entries = $h_a)]]]],["./make-eval-function.js", [["makeEvalFunction", [$h_a => (makeEvalFunction = $h_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor", [$h_a => (makeFunctionConstructor = $h_a)]]]],["./whitelist.js", [["constantProperties", [$h_a => (constantProperties = $h_a)]],["universalPropertyNames", [$h_a => (universalPropertyNames = $h_a)]]]]]);
|
|
5800
3824
|
|
|
5801
3825
|
|
|
@@ -5818,7 +3842,7 @@ const setGlobalObjectConstantProperties = (globalObject) => {
|
|
|
5818
3842
|
configurable: false });
|
|
5819
3843
|
|
|
5820
3844
|
}
|
|
5821
|
-
};
|
|
3845
|
+
};$h_once.setGlobalObjectConstantProperties(setGlobalObjectConstantProperties);
|
|
5822
3846
|
|
|
5823
3847
|
/**
|
|
5824
3848
|
* setGlobalObjectMutableProperties()
|
|
@@ -5834,7 +3858,7 @@ const setGlobalObjectConstantProperties = (globalObject) => {
|
|
|
5834
3858
|
* @param {Function} param1.makeCompartmentConstructor
|
|
5835
3859
|
* @param {(string, Object?) => any} param1.safeEvaluate
|
|
5836
3860
|
* @param {(Object) => void} param1.markVirtualizedNativeFunction
|
|
5837
|
-
|
|
3861
|
+
*/
|
|
5838
3862
|
const setGlobalObjectMutableProperties = (
|
|
5839
3863
|
globalObject,
|
|
5840
3864
|
{
|
|
@@ -5894,8 +3918,8 @@ globalObject,
|
|
|
5894
3918
|
}
|
|
5895
3919
|
};$h_once.setGlobalObjectMutableProperties(setGlobalObjectMutableProperties);
|
|
5896
3920
|
})
|
|
5897
|
-
|
|
5898
3921
|
,
|
|
3922
|
+
// === functors[16] ===
|
|
5899
3923
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let ReferenceError,TypeError,Map,Set,arrayJoin,arrayMap,arrayPush,create,freeze,mapGet,mapHas,mapSet,setAdd,promiseCatch,promiseThen,values,weakmapGet,assert;$h_imports([["./commons.js", [["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["Set", [$h_a => (Set = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["promiseCatch", [$h_a => (promiseCatch = $h_a)]],["promiseThen", [$h_a => (promiseThen = $h_a)]],["values", [$h_a => (values = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
5900
3924
|
|
|
5901
3925
|
|
|
@@ -5938,12 +3962,12 @@ const noop = () => {};
|
|
|
5938
3962
|
const makeAlias = (compartment, specifier) =>
|
|
5939
3963
|
freeze({
|
|
5940
3964
|
compartment,
|
|
5941
|
-
specifier });
|
|
3965
|
+
specifier });$h_once.makeAlias(makeAlias);
|
|
5942
3966
|
|
|
5943
3967
|
|
|
5944
3968
|
// `resolveAll` pre-computes resolutions of all imports within the compartment
|
|
5945
3969
|
// in which a module was loaded.
|
|
5946
|
-
|
|
3970
|
+
const resolveAll = (imports, resolveHook, fullReferrerSpecifier) => {
|
|
5947
3971
|
const resolvedImports = create(null);
|
|
5948
3972
|
for (const importSpecifier of imports) {
|
|
5949
3973
|
const fullSpecifier = resolveHook(importSpecifier, fullReferrerSpecifier);
|
|
@@ -6222,8 +4246,8 @@ moduleSpecifier) =>
|
|
|
6222
4246
|
}
|
|
6223
4247
|
};$h_once.load(load);
|
|
6224
4248
|
})
|
|
6225
|
-
|
|
6226
4249
|
,
|
|
4250
|
+
// === functors[17] ===
|
|
6227
4251
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,weakmapSet,assert;$h_imports([["./module-load.js", [["makeAlias", [$h_a => (makeAlias = $h_a)]]]],["./commons.js", [["Proxy", [$h_a => (Proxy = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["create", [$h_a => (create = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["reflectGet", [$h_a => (reflectGet = $h_a)]],["reflectGetOwnPropertyDescriptor", [$h_a => (reflectGetOwnPropertyDescriptor = $h_a)]],["reflectHas", [$h_a => (reflectHas = $h_a)]],["reflectIsExtensible", [$h_a => (reflectIsExtensible = $h_a)]],["reflectPreventExtensions", [$h_a => (reflectPreventExtensions = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
6228
4252
|
|
|
6229
4253
|
|
|
@@ -6371,14 +4395,14 @@ const deferExports = () => {
|
|
|
6371
4395
|
} }) });
|
|
6372
4396
|
|
|
6373
4397
|
|
|
6374
|
-
};
|
|
4398
|
+
};$h_once.deferExports(deferExports);
|
|
6375
4399
|
|
|
6376
4400
|
// `getDeferredExports` memoizes the creation of a deferred module exports
|
|
6377
4401
|
// namespace proxy for any abritrary full specifier in a compartment.
|
|
6378
4402
|
// It also records the compartment and specifier affiliated with that module
|
|
6379
4403
|
// exports namespace proxy so it can be used as an alias into another
|
|
6380
4404
|
// compartment when threaded through a compartment's `moduleMap` argument.
|
|
6381
|
-
|
|
4405
|
+
const getDeferredExports = (
|
|
6382
4406
|
compartment,
|
|
6383
4407
|
compartmentPrivateFields,
|
|
6384
4408
|
moduleAliases,
|
|
@@ -6397,8 +4421,8 @@ specifier) =>
|
|
|
6397
4421
|
return mapGet(deferredExports, specifier);
|
|
6398
4422
|
};$h_once.getDeferredExports(getDeferredExports);
|
|
6399
4423
|
})
|
|
6400
|
-
|
|
6401
4424
|
,
|
|
4425
|
+
// === functors[18] ===
|
|
6402
4426
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,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)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h_a => (compartmentEvaluate = $h_a)]]]]]);
|
|
6403
4427
|
|
|
6404
4428
|
|
|
@@ -6493,7 +4517,7 @@ resolvedImports) =>
|
|
|
6493
4517
|
}
|
|
6494
4518
|
} });
|
|
6495
4519
|
|
|
6496
|
-
};
|
|
4520
|
+
};$h_once.makeThirdPartyModuleInstance(makeThirdPartyModuleInstance);
|
|
6497
4521
|
|
|
6498
4522
|
// `makeModuleInstance` takes a module's compartment record, the live import
|
|
6499
4523
|
// namespace, and a global object; and produces a module instance.
|
|
@@ -6502,7 +4526,7 @@ resolvedImports) =>
|
|
|
6502
4526
|
// an idempotent execute function.
|
|
6503
4527
|
// The module exports namespace is a proxy to the proxied exports namespace
|
|
6504
4528
|
// that the execution of the module instance populates.
|
|
6505
|
-
|
|
4529
|
+
const makeModuleInstance = (
|
|
6506
4530
|
privateFields,
|
|
6507
4531
|
moduleAliases,
|
|
6508
4532
|
moduleRecord,
|
|
@@ -6844,8 +4868,8 @@ importedInstances) =>
|
|
|
6844
4868
|
|
|
6845
4869
|
};$h_once.makeModuleInstance(makeModuleInstance);
|
|
6846
4870
|
})
|
|
6847
|
-
|
|
6848
4871
|
,
|
|
4872
|
+
// === functors[19] ===
|
|
6849
4873
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let assert,makeModuleInstance,makeThirdPartyModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isObject,mapGet,mapHas,mapSet,weakmapGet;$h_imports([["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./module-instance.js", [["makeModuleInstance", [$h_a => (makeModuleInstance = $h_a)]],["makeThirdPartyModuleInstance", [$h_a => (makeThirdPartyModuleInstance = $h_a)]]]],["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["isArray", [$h_a => (isArray = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["mapGet", [$h_a => (mapGet = $h_a)]],["mapHas", [$h_a => (mapHas = $h_a)]],["mapSet", [$h_a => (mapSet = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]]]]]);
|
|
6850
4874
|
|
|
6851
4875
|
|
|
@@ -7042,8 +5066,8 @@ moduleRecord) =>
|
|
|
7042
5066
|
return moduleInstance;
|
|
7043
5067
|
};$h_once.instantiate(instantiate);
|
|
7044
5068
|
})
|
|
7045
|
-
|
|
7046
5069
|
,
|
|
5070
|
+
// === functors[20] ===
|
|
7047
5071
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let Map,ReferenceError,TypeError,WeakMap,WeakSet,arrayFilter,arrayJoin,assign,defineProperties,entries,freeze,getOwnPropertyNames,promiseThen,weakmapGet,weakmapSet,weaksetHas,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,isValidIdentifierName,sharedGlobalPropertyNames,load,link,getDeferredExports,assert,compartmentEvaluate,makeSafeEvaluator;$h_imports([["./commons.js", [["Map", [$h_a => (Map = $h_a)]],["ReferenceError", [$h_a => (ReferenceError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["assign", [$h_a => (assign = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["promiseThen", [$h_a => (promiseThen = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties", [$h_a => (setGlobalObjectConstantProperties = $h_a)]],["setGlobalObjectMutableProperties", [$h_a => (setGlobalObjectMutableProperties = $h_a)]]]],["./scope-constants.js", [["isValidIdentifierName", [$h_a => (isValidIdentifierName = $h_a)]]]],["./whitelist.js", [["sharedGlobalPropertyNames", [$h_a => (sharedGlobalPropertyNames = $h_a)]]]],["./module-load.js", [["load", [$h_a => (load = $h_a)]]]],["./module-link.js", [["link", [$h_a => (link = $h_a)]]]],["./module-proxy.js", [["getDeferredExports", [$h_a => (getDeferredExports = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate", [$h_a => (compartmentEvaluate = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]]]);
|
|
7048
5072
|
|
|
7049
5073
|
|
|
@@ -7117,12 +5141,12 @@ _options = {})
|
|
|
7117
5141
|
throw new TypeError(
|
|
7118
5142
|
'Compartment.prototype.constructor is not a valid constructor.');
|
|
7119
5143
|
|
|
7120
|
-
};
|
|
5144
|
+
};$h_once.InertCompartment(InertCompartment);
|
|
7121
5145
|
|
|
7122
5146
|
/**
|
|
7123
5147
|
* @param {Compartment} compartment
|
|
7124
5148
|
* @param {string} specifier
|
|
7125
|
-
|
|
5149
|
+
*/
|
|
7126
5150
|
const compartmentImportNow = (compartment, specifier) => {
|
|
7127
5151
|
const { execute, exportsProxy } = link(
|
|
7128
5152
|
privateFields,
|
|
@@ -7367,8 +5391,8 @@ markVirtualizedNativeFunction) =>
|
|
|
7367
5391
|
return Compartment;
|
|
7368
5392
|
};$h_once.makeCompartmentConstructor(makeCompartmentConstructor);
|
|
7369
5393
|
})
|
|
7370
|
-
|
|
7371
5394
|
,
|
|
5395
|
+
// === functors[21] ===
|
|
7372
5396
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let TypeError,WeakSet,arrayFilter,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isObject,objectHasOwnProperty,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,whitelist;$h_imports([["./commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["entries", [$h_a => (entries = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["is", [$h_a => (is = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["values", [$h_a => (values = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./whitelist.js", [["constantProperties", [$h_a => (constantProperties = $h_a)]],["sharedGlobalPropertyNames", [$h_a => (sharedGlobalPropertyNames = $h_a)]],["universalPropertyNames", [$h_a => (universalPropertyNames = $h_a)]],["whitelist", [$h_a => (whitelist = $h_a)]]]]]);
|
|
7373
5397
|
|
|
7374
5398
|
|
|
@@ -7518,7 +5542,7 @@ const makeIntrinsicsCollector = () => {
|
|
|
7518
5542
|
addIntrinsics(sampleGlobals(globalThis, universalPropertyNames));
|
|
7519
5543
|
|
|
7520
5544
|
return intrinsicsCollector;
|
|
7521
|
-
};
|
|
5545
|
+
};$h_once.makeIntrinsicsCollector(makeIntrinsicsCollector);
|
|
7522
5546
|
|
|
7523
5547
|
/**
|
|
7524
5548
|
* getGlobalIntrinsics()
|
|
@@ -7532,7 +5556,7 @@ const makeIntrinsicsCollector = () => {
|
|
|
7532
5556
|
* *original* unsafe (feral, untamed) bindings of these global variables.
|
|
7533
5557
|
*
|
|
7534
5558
|
* @param {Object} globalObject
|
|
7535
|
-
|
|
5559
|
+
*/
|
|
7536
5560
|
const getGlobalIntrinsics = (globalObject) => {
|
|
7537
5561
|
const { addIntrinsics, finalIntrinsics } = makeIntrinsicsCollector();
|
|
7538
5562
|
|
|
@@ -7541,8 +5565,8 @@ const getGlobalIntrinsics = (globalObject) => {
|
|
|
7541
5565
|
return finalIntrinsics();
|
|
7542
5566
|
};$h_once.getGlobalIntrinsics(getGlobalIntrinsics);
|
|
7543
5567
|
})
|
|
7544
|
-
|
|
7545
5568
|
,
|
|
5569
|
+
// === functors[22] ===
|
|
7546
5570
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { $h_imports([]); /**
|
|
7547
5571
|
* @file Exports {@code enablements}, a recursively defined
|
|
7548
5572
|
* JSON record defining the optimum set of intrinsics properties
|
|
@@ -7618,12 +5642,12 @@ const minEnablements = {
|
|
|
7618
5642
|
|
|
7619
5643
|
'%ErrorPrototype%': {
|
|
7620
5644
|
name: true // set by "precond", "ava", "node-fetch"
|
|
7621
|
-
} };
|
|
5645
|
+
} };$h_once.minEnablements(minEnablements);
|
|
7622
5646
|
|
|
7623
5647
|
|
|
7624
5648
|
/**
|
|
7625
5649
|
* Moderate enablements are usually good enough for legacy compat.
|
|
7626
|
-
|
|
5650
|
+
*/
|
|
7627
5651
|
const moderateEnablements = {
|
|
7628
5652
|
'%ObjectPrototype%': {
|
|
7629
5653
|
toString: true,
|
|
@@ -7696,7 +5720,7 @@ const moderateEnablements = {
|
|
|
7696
5720
|
|
|
7697
5721
|
|
|
7698
5722
|
'%IteratorPrototype%': {
|
|
7699
|
-
toString: true } };
|
|
5723
|
+
toString: true } };$h_once.moderateEnablements(moderateEnablements);
|
|
7700
5724
|
|
|
7701
5725
|
|
|
7702
5726
|
|
|
@@ -7705,7 +5729,7 @@ const moderateEnablements = {
|
|
|
7705
5729
|
* https://github.com/endojs/endo/issues/576
|
|
7706
5730
|
*
|
|
7707
5731
|
* They are like the `moderate` enablements except for the entries below.
|
|
7708
|
-
|
|
5732
|
+
*/
|
|
7709
5733
|
const severeEnablements = {
|
|
7710
5734
|
...moderateEnablements,
|
|
7711
5735
|
|
|
@@ -7747,8 +5771,8 @@ const severeEnablements = {
|
|
|
7747
5771
|
*/
|
|
7748
5772
|
'%TypedArrayPrototype%': '*' };$h_once.severeEnablements(severeEnablements);
|
|
7749
5773
|
})
|
|
7750
|
-
|
|
7751
5774
|
,
|
|
5775
|
+
// === functors[23] ===
|
|
7752
5776
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getOwnPropertyNames,isObject,objectHasOwnProperty,ownKeys,setHas,minEnablements,moderateEnablements,severeEnablements;$h_imports([["./commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayForEach", [$h_a => (arrayForEach = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["setHas", [$h_a => (setHas = $h_a)]]]],["./enablements.js", [["minEnablements", [$h_a => (minEnablements = $h_a)]],["moderateEnablements", [$h_a => (moderateEnablements = $h_a)]],["severeEnablements", [$h_a => (severeEnablements = $h_a)]]]]]);
|
|
7753
5777
|
|
|
7754
5778
|
|
|
@@ -7954,8 +5978,8 @@ overrideDebug = [])
|
|
|
7954
5978
|
enableProperties('root', intrinsics, plan);
|
|
7955
5979
|
}$h_once.default(enablePropertyOverrides);
|
|
7956
5980
|
})
|
|
7957
|
-
|
|
7958
5981
|
,
|
|
5982
|
+
// === functors[24] ===
|
|
7959
5983
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let arrayPush,arraySlice,freeze,assert;$h_imports([["./commons.js", [["arrayPush", [$h_a => (arrayPush = $h_a)]],["arraySlice", [$h_a => (arraySlice = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
7960
5984
|
|
|
7961
5985
|
|
|
@@ -8082,8 +6106,8 @@ const makeEnvironmentCaptor = (aGlobal) => {
|
|
|
8082
6106
|
};$h_once.makeEnvironmentCaptor(makeEnvironmentCaptor);
|
|
8083
6107
|
freeze(makeEnvironmentCaptor);
|
|
8084
6108
|
})
|
|
8085
|
-
|
|
8086
6109
|
,
|
|
6110
|
+
// === functors[25] ===
|
|
8087
6111
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let WeakSet,arrayFilter,arrayMap,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arrayPush", [$h_a => (arrayPush = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["isError", [$h_a => (isError = $h_a)]],["stringEndsWith", [$h_a => (stringEndsWith = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
8088
6112
|
|
|
8089
6113
|
|
|
@@ -8173,7 +6197,7 @@ const consoleOtherMethods = freeze([
|
|
|
8173
6197
|
/** @type {readonly [ConsoleProps, LogSeverity | undefined][]} */
|
|
8174
6198
|
const consoleWhitelist = freeze([
|
|
8175
6199
|
...consoleLevelMethods,
|
|
8176
|
-
...consoleOtherMethods]);
|
|
6200
|
+
...consoleOtherMethods]);$h_once.consoleWhitelist(consoleWhitelist);
|
|
8177
6201
|
|
|
8178
6202
|
|
|
8179
6203
|
/**
|
|
@@ -8205,7 +6229,7 @@ const consoleWhitelist = freeze([
|
|
|
8205
6229
|
|
|
8206
6230
|
// /////////////////////////////////////////////////////////////////////////////
|
|
8207
6231
|
|
|
8208
|
-
/** @type {MakeLoggingConsoleKit}
|
|
6232
|
+
/** @type {MakeLoggingConsoleKit} */
|
|
8209
6233
|
const makeLoggingConsoleKit = (
|
|
8210
6234
|
loggedErrorHandler,
|
|
8211
6235
|
{ shouldResetForDebugging = false } = {}) =>
|
|
@@ -8265,9 +6289,9 @@ freeze(ErrorInfo);
|
|
|
8265
6289
|
* so we can change our mind. (On Node, `debug`, `log`, and `info` are aliases
|
|
8266
6290
|
* for the same function and so will behave the same there.)
|
|
8267
6291
|
*/
|
|
8268
|
-
const BASE_CONSOLE_LEVEL = 'debug';
|
|
6292
|
+
const BASE_CONSOLE_LEVEL = 'debug';$h_once.BASE_CONSOLE_LEVEL(BASE_CONSOLE_LEVEL);
|
|
8269
6293
|
|
|
8270
|
-
/** @type {MakeCausalConsole}
|
|
6294
|
+
/** @type {MakeCausalConsole} */
|
|
8271
6295
|
const makeCausalConsole = (baseConsole, loggedErrorHandler) => {
|
|
8272
6296
|
const {
|
|
8273
6297
|
getStackString,
|
|
@@ -8465,8 +6489,8 @@ const filterConsole = (baseConsole, filter, _topic = undefined) => {
|
|
|
8465
6489
|
};$h_once.filterConsole(filterConsole);
|
|
8466
6490
|
freeze(filterConsole);
|
|
8467
6491
|
})
|
|
8468
|
-
|
|
8469
6492
|
,
|
|
6493
|
+
// === functors[26] ===
|
|
8470
6494
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let TypeError,globalThis,defaultHandler,makeCausalConsole;$h_imports([["../commons.js", [["TypeError", [$h_a => (TypeError = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]]]],["./assert.js", [["loggedErrorHandler", [$h_a => (defaultHandler = $h_a)]]]],["./console.js", [["makeCausalConsole", [$h_a => (makeCausalConsole = $h_a)]]]],["./types.js", []],["./internal-types.js", []]]);
|
|
8471
6495
|
|
|
8472
6496
|
|
|
@@ -8546,9 +6570,7 @@ optGetStackString = undefined) =>
|
|
|
8546
6570
|
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
8547
6571
|
event.preventDefault();
|
|
8548
6572
|
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
8549
|
-
|
|
8550
|
-
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
8551
|
-
causalConsole.error(stackString);
|
|
6573
|
+
causalConsole.error(event.error);
|
|
8552
6574
|
if (errorTrapping === 'exit' || errorTrapping === 'abort') {
|
|
8553
6575
|
globalThis.window.location.href = `about:blank`;
|
|
8554
6576
|
}
|
|
@@ -8558,8 +6580,8 @@ optGetStackString = undefined) =>
|
|
|
8558
6580
|
return { console: causalConsole };
|
|
8559
6581
|
};$h_once.tameConsole(tameConsole);
|
|
8560
6582
|
})
|
|
8561
|
-
|
|
8562
6583
|
,
|
|
6584
|
+
// === functors[27] ===
|
|
8563
6585
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,regexpTest,weakmapGet,weakmapHas,weakmapSet,weaksetAdd,weaksetHas;$h_imports([["../commons.js", [["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayJoin", [$h_a => (arrayJoin = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["arraySlice", [$h_a => (arraySlice = $h_a)]],["create", [$h_a => (create = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["fromEntries", [$h_a => (fromEntries = $h_a)]],["reflectSet", [$h_a => (reflectSet = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]],["regexpTest", [$h_a => (regexpTest = $h_a)]],["weakmapGet", [$h_a => (weakmapGet = $h_a)]],["weakmapHas", [$h_a => (weakmapHas = $h_a)]],["weakmapSet", [$h_a => (weakmapSet = $h_a)]],["weaksetAdd", [$h_a => (weaksetAdd = $h_a)]],["weaksetHas", [$h_a => (weaksetHas = $h_a)]]]]]);
|
|
8564
6586
|
|
|
8565
6587
|
|
|
@@ -8670,7 +6692,7 @@ const filterFileName = (fileName) => {
|
|
|
8670
6692
|
}
|
|
8671
6693
|
}
|
|
8672
6694
|
return true;
|
|
8673
|
-
};
|
|
6695
|
+
};$h_once.filterFileName(filterFileName);
|
|
8674
6696
|
|
|
8675
6697
|
// The ad-hoc rule of the current pattern is that any likely-file-path or
|
|
8676
6698
|
// likely url-path prefix, ending in a `/.../` should get dropped.
|
|
@@ -8682,7 +6704,7 @@ const filterFileName = (fileName) => {
|
|
|
8682
6704
|
//
|
|
8683
6705
|
// See thread starting at
|
|
8684
6706
|
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
|
|
8685
|
-
|
|
6707
|
+
const CALLSITE_ELLIPSES_PATTERN = /^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/;
|
|
8686
6708
|
|
|
8687
6709
|
// The ad-hoc rule of the current pattern is that any likely-file-path or
|
|
8688
6710
|
// likely url-path prefix, ending in a `/` and prior to `package/` should get
|
|
@@ -8864,8 +6886,8 @@ stackFiltering) =>
|
|
|
8864
6886
|
return tamedMethods.getStackString;
|
|
8865
6887
|
};$h_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
|
|
8866
6888
|
})
|
|
8867
|
-
|
|
8868
6889
|
,
|
|
6890
|
+
// === functors[28] ===
|
|
8869
6891
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let FERAL_ERROR,TypeError,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,NativeErrors,tameV8ErrorConstructor;$h_imports([["../commons.js", [["FERAL_ERROR", [$h_a => (FERAL_ERROR = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["setPrototypeOf", [$h_a => (setPrototypeOf = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]]]],["../whitelist.js", [["NativeErrors", [$h_a => (NativeErrors = $h_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor", [$h_a => (tameV8ErrorConstructor = $h_a)]]]]]);
|
|
8870
6892
|
|
|
8871
6893
|
|
|
@@ -9030,8 +7052,8 @@ stackFiltering = 'concise')
|
|
|
9030
7052
|
|
|
9031
7053
|
}$h_once.default(tameErrorConstructor);
|
|
9032
7054
|
})
|
|
9033
|
-
|
|
9034
7055
|
,
|
|
7056
|
+
// === functors[29] ===
|
|
9035
7057
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,InertCompartment;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["Float32Array", [$h_a => (Float32Array = $h_a)]],["Map", [$h_a => (Map = $h_a)]],["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["iterateArray", [$h_a => (iterateArray = $h_a)]],["iterateMap", [$h_a => (iterateMap = $h_a)]],["iterateSet", [$h_a => (iterateSet = $h_a)]],["iterateString", [$h_a => (iterateString = $h_a)]],["matchAllRegExp", [$h_a => (matchAllRegExp = $h_a)]],["matchAllSymbol", [$h_a => (matchAllSymbol = $h_a)]],["regexpPrototype", [$h_a => (regexpPrototype = $h_a)]]]],["./compartment-shim.js", [["InertCompartment", [$h_a => (InertCompartment = $h_a)]]]]]);
|
|
9036
7058
|
|
|
9037
7059
|
|
|
@@ -9171,8 +7193,8 @@ const getAnonymousIntrinsics = () => {
|
|
|
9171
7193
|
return intrinsics;
|
|
9172
7194
|
};$h_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
|
|
9173
7195
|
})
|
|
9174
|
-
|
|
9175
7196
|
,
|
|
7197
|
+
// === functors[30] ===
|
|
9176
7198
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let Set,String,TypeError,WeakMap,WeakSet,arrayForEach,freeze,getOwnPropertyDescriptors,getPrototypeOf,isObject,objectHasOwnProperty,ownKeys,setAdd,setForEach,setHas,weakmapGet,weakmapSet,weaksetAdd,weaksetHas;$h_imports([["./commons.js", [["Set", [$h_a => (Set = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["WeakMap", [$h_a => (WeakMap = $h_a)]],["WeakSet", [$h_a => (WeakSet = $h_a)]],["arrayForEach", [$h_a => (arrayForEach = $h_a)]],["freeze", [$h_a => (freeze = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["setAdd", [$h_a => (setAdd = $h_a)]],["setForEach", [$h_a => (setForEach = $h_a)]],["setHas", [$h_a => (setHas = $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)]]]]]);
|
|
9177
7199
|
|
|
9178
7200
|
|
|
@@ -9260,7 +7282,7 @@ const makeHardener = () => {
|
|
|
9260
7282
|
// Ignore if this is an exit, or we've already visited it
|
|
9261
7283
|
return;
|
|
9262
7284
|
}
|
|
9263
|
-
// console.
|
|
7285
|
+
// console.warn(`adding ${val} to toFreeze`, val);
|
|
9264
7286
|
setAdd(toFreeze, val);
|
|
9265
7287
|
weakmapSet(paths, val, path);
|
|
9266
7288
|
}
|
|
@@ -9325,7 +7347,7 @@ const makeHardener = () => {
|
|
|
9325
7347
|
|
|
9326
7348
|
enqueue(root);
|
|
9327
7349
|
dequeue();
|
|
9328
|
-
// console.
|
|
7350
|
+
// console.warn("toFreeze set:", toFreeze);
|
|
9329
7351
|
commit();
|
|
9330
7352
|
|
|
9331
7353
|
return root;
|
|
@@ -9335,8 +7357,8 @@ const makeHardener = () => {
|
|
|
9335
7357
|
return harden;
|
|
9336
7358
|
};$h_once.makeHardener(makeHardener);
|
|
9337
7359
|
})
|
|
9338
|
-
|
|
9339
7360
|
,
|
|
7361
|
+
// === functors[31] ===
|
|
9340
7362
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let Date,TypeError,apply,construct,defineProperties;$h_imports([["./commons.js", [["Date", [$h_a => (Date = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["apply", [$h_a => (apply = $h_a)]],["construct", [$h_a => (construct = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]]]]]);
|
|
9341
7363
|
|
|
9342
7364
|
|
|
@@ -9452,8 +7474,8 @@ function tameDateConstructor(dateTaming = 'safe') {
|
|
|
9452
7474
|
|
|
9453
7475
|
}$h_once.default(tameDateConstructor);
|
|
9454
7476
|
})
|
|
9455
|
-
|
|
9456
7477
|
,
|
|
7478
|
+
// === functors[32] ===
|
|
9457
7479
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { 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);
|
|
9458
7480
|
|
|
9459
7481
|
|
|
@@ -9501,8 +7523,8 @@ function tameDomains(domainTaming = 'safe') {
|
|
|
9501
7523
|
}
|
|
9502
7524
|
}
|
|
9503
7525
|
})
|
|
9504
|
-
|
|
9505
7526
|
,
|
|
7527
|
+
// === functors[33] ===
|
|
9506
7528
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let FERAL_FUNCTION,SyntaxError,TypeError,defineProperties,getPrototypeOf,setPrototypeOf;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["SyntaxError", [$h_a => (SyntaxError = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["defineProperties", [$h_a => (defineProperties = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["setPrototypeOf", [$h_a => (setPrototypeOf = $h_a)]]]]]);
|
|
9507
7529
|
|
|
9508
7530
|
|
|
@@ -9639,8 +7661,8 @@ function tameFunctionConstructors() {
|
|
|
9639
7661
|
return newIntrinsics;
|
|
9640
7662
|
}$h_once.default(tameFunctionConstructors);
|
|
9641
7663
|
})
|
|
9642
|
-
|
|
9643
7664
|
,
|
|
7665
|
+
// === functors[34] ===
|
|
9644
7666
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { 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)]]]]]);
|
|
9645
7667
|
|
|
9646
7668
|
|
|
@@ -9692,9 +7714,10 @@ const tameFunctionToString = () => {
|
|
|
9692
7714
|
return markVirtualizedNativeFunction;
|
|
9693
7715
|
};$h_once.tameFunctionToString(tameFunctionToString);
|
|
9694
7716
|
})
|
|
9695
|
-
|
|
9696
7717
|
,
|
|
9697
|
-
|
|
7718
|
+
// === functors[35] ===
|
|
7719
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let Number,String,TypeError,defineProperty,getOwnPropertyNames,isObject,regexpExec,assert;$h_imports([["./commons.js", [["Number", [$h_a => (Number = $h_a)]],["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["defineProperty", [$h_a => (defineProperty = $h_a)]],["getOwnPropertyNames", [$h_a => (getOwnPropertyNames = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["regexpExec", [$h_a => (regexpExec = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
7720
|
+
|
|
9698
7721
|
|
|
9699
7722
|
|
|
9700
7723
|
|
|
@@ -9728,10 +7751,15 @@ const tamedMethods = {
|
|
|
9728
7751
|
}
|
|
9729
7752
|
assert(s === that, d`expected ${q(s)} and ${q(that)} to compare`);
|
|
9730
7753
|
return 0;
|
|
7754
|
+
},
|
|
7755
|
+
|
|
7756
|
+
toString() {
|
|
7757
|
+
return `${this}`;
|
|
9731
7758
|
} };
|
|
9732
7759
|
|
|
9733
7760
|
|
|
9734
7761
|
const nonLocaleCompare = tamedMethods.localeCompare;
|
|
7762
|
+
const numberToString = tamedMethods.toString;
|
|
9735
7763
|
|
|
9736
7764
|
function tameLocaleMethods(intrinsics, localeTaming = 'safe') {
|
|
9737
7765
|
if (localeTaming !== 'safe' && localeTaming !== 'unsafe') {
|
|
@@ -9766,10 +7794,16 @@ function tameLocaleMethods(intrinsics, localeTaming = 'safe') {
|
|
|
9766
7794
|
}
|
|
9767
7795
|
}
|
|
9768
7796
|
}
|
|
7797
|
+
|
|
7798
|
+
// Numbers are special because toString accepts a radix instead of ignoring
|
|
7799
|
+
// all of the arguments that we would otherwise forward.
|
|
7800
|
+
defineProperty(Number.prototype, 'toLocaleString', {
|
|
7801
|
+
value: numberToString });
|
|
7802
|
+
|
|
9769
7803
|
}$h_once.default(tameLocaleMethods);
|
|
9770
7804
|
})
|
|
9771
|
-
|
|
9772
7805
|
,
|
|
7806
|
+
// === functors[36] ===
|
|
9773
7807
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let Math,TypeError,create,getOwnPropertyDescriptors,objectPrototype;$h_imports([["./commons.js", [["Math", [$h_a => (Math = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["create", [$h_a => (create = $h_a)]],["getOwnPropertyDescriptors", [$h_a => (getOwnPropertyDescriptors = $h_a)]],["objectPrototype", [$h_a => (objectPrototype = $h_a)]]]]]);
|
|
9774
7808
|
|
|
9775
7809
|
|
|
@@ -9797,8 +7831,8 @@ function tameMathObject(mathTaming = 'safe') {
|
|
|
9797
7831
|
|
|
9798
7832
|
}$h_once.default(tameMathObject);
|
|
9799
7833
|
})
|
|
9800
|
-
|
|
9801
7834
|
,
|
|
7835
|
+
// === functors[37] ===
|
|
9802
7836
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { 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)]]]]]);
|
|
9803
7837
|
|
|
9804
7838
|
|
|
@@ -9852,8 +7886,8 @@ function tameRegExpConstructor(regExpTaming = 'safe') {
|
|
|
9852
7886
|
|
|
9853
7887
|
}$h_once.default(tameRegExpConstructor);
|
|
9854
7888
|
})
|
|
9855
|
-
|
|
9856
7889
|
,
|
|
7890
|
+
// === functors[38] ===
|
|
9857
7891
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let whitelist,FunctionInstance,isAccessorPermit,String,TypeError,arrayIncludes,getOwnPropertyDescriptor,getPrototypeOf,isObject,objectHasOwnProperty,ownKeys,stringSlice;$h_imports([["./whitelist.js", [["whitelist", [$h_a => (whitelist = $h_a)]],["FunctionInstance", [$h_a => (FunctionInstance = $h_a)]],["isAccessorPermit", [$h_a => (isAccessorPermit = $h_a)]]]],["./commons.js", [["String", [$h_a => (String = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayIncludes", [$h_a => (arrayIncludes = $h_a)]],["getOwnPropertyDescriptor", [$h_a => (getOwnPropertyDescriptor = $h_a)]],["getPrototypeOf", [$h_a => (getPrototypeOf = $h_a)]],["isObject", [$h_a => (isObject = $h_a)]],["objectHasOwnProperty", [$h_a => (objectHasOwnProperty = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["stringSlice", [$h_a => (stringSlice = $h_a)]]]]]);
|
|
9858
7892
|
|
|
9859
7893
|
|
|
@@ -10100,11 +8134,11 @@ markVirtualizedNativeFunction)
|
|
|
10100
8134
|
// that we are removing it so we know to look into it, as happens when
|
|
10101
8135
|
// the language evolves new features to existing intrinsics.
|
|
10102
8136
|
if (subPermit !== false) {
|
|
10103
|
-
// This call to `console.
|
|
10104
|
-
//
|
|
8137
|
+
// This call to `console.warn` is intentional. It is not a vestige of
|
|
8138
|
+
// a debugging attempt. See the comment at top of file for an
|
|
10105
8139
|
// explanation.
|
|
10106
8140
|
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
10107
|
-
console.
|
|
8141
|
+
console.warn(`Removing ${subPath}`);
|
|
10108
8142
|
}
|
|
10109
8143
|
try {
|
|
10110
8144
|
delete obj[prop];
|
|
@@ -10127,9 +8161,11 @@ markVirtualizedNativeFunction)
|
|
|
10127
8161
|
visitProperties('intrinsics', intrinsics, whitelist);
|
|
10128
8162
|
}$h_once.default(whitelistIntrinsics);
|
|
10129
8163
|
})
|
|
10130
|
-
|
|
10131
8164
|
,
|
|
10132
|
-
|
|
8165
|
+
// === functors[39] ===
|
|
8166
|
+
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,arrayMap,globalThis,is,ownKeys,stringSplit,enJoin,makeHardener,makeIntrinsicsCollector,whitelistIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameConsole,tameErrorConstructor,assert,makeAssert,makeEnvironmentCaptor,getAnonymousIntrinsics,makeCompartmentConstructor;$h_imports([["./commons.js", [["FERAL_FUNCTION", [$h_a => (FERAL_FUNCTION = $h_a)]],["FERAL_EVAL", [$h_a => (FERAL_EVAL = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["arrayFilter", [$h_a => (arrayFilter = $h_a)]],["arrayMap", [$h_a => (arrayMap = $h_a)]],["globalThis", [$h_a => (globalThis = $h_a)]],["is", [$h_a => (is = $h_a)]],["ownKeys", [$h_a => (ownKeys = $h_a)]],["stringSplit", [$h_a => (stringSplit = $h_a)]]]],["./error/stringify-utils.js", [["enJoin", [$h_a => (enJoin = $h_a)]]]],["./make-hardener.js", [["makeHardener", [$h_a => (makeHardener = $h_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector", [$h_a => (makeIntrinsicsCollector = $h_a)]]]],["./whitelist-intrinsics.js", [["default", [$h_a => (whitelistIntrinsics = $h_a)]]]],["./tame-function-constructors.js", [["default", [$h_a => (tameFunctionConstructors = $h_a)]]]],["./tame-date-constructor.js", [["default", [$h_a => (tameDateConstructor = $h_a)]]]],["./tame-math-object.js", [["default", [$h_a => (tameMathObject = $h_a)]]]],["./tame-regexp-constructor.js", [["default", [$h_a => (tameRegExpConstructor = $h_a)]]]],["./enable-property-overrides.js", [["default", [$h_a => (enablePropertyOverrides = $h_a)]]]],["./tame-locale-methods.js", [["default", [$h_a => (tameLocaleMethods = $h_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties", [$h_a => (setGlobalObjectConstantProperties = $h_a)]],["setGlobalObjectMutableProperties", [$h_a => (setGlobalObjectMutableProperties = $h_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator", [$h_a => (makeSafeEvaluator = $h_a)]]]],["./whitelist.js", [["initialGlobalPropertyNames", [$h_a => (initialGlobalPropertyNames = $h_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString", [$h_a => (tameFunctionToString = $h_a)]]]],["./tame-domains.js", [["tameDomains", [$h_a => (tameDomains = $h_a)]]]],["./error/tame-console.js", [["tameConsole", [$h_a => (tameConsole = $h_a)]]]],["./error/tame-error-constructor.js", [["default", [$h_a => (tameErrorConstructor = $h_a)]]]],["./error/assert.js", [["assert", [$h_a => (assert = $h_a)]],["makeAssert", [$h_a => (makeAssert = $h_a)]]]],["./environment-options.js", [["makeEnvironmentCaptor", [$h_a => (makeEnvironmentCaptor = $h_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics", [$h_a => (getAnonymousIntrinsics = $h_a)]]]],["./compartment-shim.js", [["makeCompartmentConstructor", [$h_a => (makeCompartmentConstructor = $h_a)]]]]]);
|
|
8167
|
+
|
|
8168
|
+
|
|
10133
8169
|
|
|
10134
8170
|
|
|
10135
8171
|
|
|
@@ -10218,6 +8254,37 @@ const harden = makeHardener();
|
|
|
10218
8254
|
// only ever need to be called once and that simplifying lockdown will improve
|
|
10219
8255
|
// the quality of audits.
|
|
10220
8256
|
|
|
8257
|
+
const assertDirectEvalAvailable = () => {
|
|
8258
|
+
let allowed = false;
|
|
8259
|
+
try {
|
|
8260
|
+
allowed = FERAL_FUNCTION(
|
|
8261
|
+
'eval',
|
|
8262
|
+
'SES_changed',
|
|
8263
|
+
`\
|
|
8264
|
+
eval("SES_changed = true");
|
|
8265
|
+
return SES_changed;
|
|
8266
|
+
`)(
|
|
8267
|
+
FERAL_EVAL, false);
|
|
8268
|
+
// If we get here and SES_changed stayed false, that means the eval was sloppy
|
|
8269
|
+
// and indirect, which generally creates a new global.
|
|
8270
|
+
// We are going to throw an exception for failing to initialize SES, but
|
|
8271
|
+
// good neighbors clean up.
|
|
8272
|
+
if (!allowed) {
|
|
8273
|
+
delete globalThis.SES_changed;
|
|
8274
|
+
}
|
|
8275
|
+
} catch (_error) {
|
|
8276
|
+
// We reach here if eval is outright forbidden by a Content Security Policy.
|
|
8277
|
+
// We allow this for SES usage that delegates the responsibility to isolate
|
|
8278
|
+
// guest code to production code generation.
|
|
8279
|
+
allowed = true;
|
|
8280
|
+
}
|
|
8281
|
+
if (!allowed) {
|
|
8282
|
+
throw new TypeError(
|
|
8283
|
+
`SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct-eval (dynamically scoped eval) (SES_DIRECT_EVAL)`);
|
|
8284
|
+
|
|
8285
|
+
}
|
|
8286
|
+
};
|
|
8287
|
+
|
|
10221
8288
|
/**
|
|
10222
8289
|
* @param {LockdownOptions} [options]
|
|
10223
8290
|
* @returns {() => void} repairIntrinsics
|
|
@@ -10305,6 +8372,8 @@ const repairIntrinsics = (options = {}) => {
|
|
|
10305
8372
|
// trace retained:
|
|
10306
8373
|
priorLockdown.stack;
|
|
10307
8374
|
|
|
8375
|
+
assertDirectEvalAvailable();
|
|
8376
|
+
|
|
10308
8377
|
/**
|
|
10309
8378
|
* Because of packagers and bundlers, etc, multiple invocations of lockdown
|
|
10310
8379
|
* might happen in separate instantiations of the source of this module.
|
|
@@ -10462,18 +8531,18 @@ const repairIntrinsics = (options = {}) => {
|
|
|
10462
8531
|
}
|
|
10463
8532
|
|
|
10464
8533
|
return hardenIntrinsics;
|
|
10465
|
-
};
|
|
8534
|
+
};$h_once.repairIntrinsics(repairIntrinsics);
|
|
10466
8535
|
|
|
10467
8536
|
/**
|
|
10468
8537
|
* @param {LockdownOptions} [options]
|
|
10469
|
-
|
|
8538
|
+
*/
|
|
10470
8539
|
const lockdown = (options = {}) => {
|
|
10471
8540
|
const hardenIntrinsics = repairIntrinsics(options);
|
|
10472
8541
|
hardenIntrinsics();
|
|
10473
8542
|
};$h_once.lockdown(lockdown);
|
|
10474
8543
|
})
|
|
10475
|
-
|
|
10476
8544
|
,
|
|
8545
|
+
// === functors[40] ===
|
|
10477
8546
|
(({ imports: $h_imports, liveVar: $h_live, onceVar: $h_once, }) => { let globalThis,TypeError,assign,tameFunctionToString,getGlobalIntrinsics,lockdown,makeCompartmentConstructor,assert;$h_imports([["./src/commons.js", [["globalThis", [$h_a => (globalThis = $h_a)]],["TypeError", [$h_a => (TypeError = $h_a)]],["assign", [$h_a => (assign = $h_a)]]]],["./src/tame-function-tostring.js", [["tameFunctionToString", [$h_a => (tameFunctionToString = $h_a)]]]],["./src/intrinsics.js", [["getGlobalIntrinsics", [$h_a => (getGlobalIntrinsics = $h_a)]]]],["./src/lockdown-shim.js", [["lockdown", [$h_a => (lockdown = $h_a)]]]],["./src/compartment-shim.js", [["makeCompartmentConstructor", [$h_a => (makeCompartmentConstructor = $h_a)]]]],["./src/error/assert.js", [["assert", [$h_a => (assert = $h_a)]]]]]);
|
|
10478
8547
|
|
|
10479
8548
|
|
|
@@ -10518,7 +8587,988 @@ assign(globalThis, {
|
|
|
10518
8587
|
Compartment,
|
|
10519
8588
|
assert });
|
|
10520
8589
|
})
|
|
10521
|
-
|
|
10522
8590
|
,
|
|
8591
|
+
]; // functors end
|
|
10523
8592
|
|
|
10524
|
-
|
|
8593
|
+
function cell(name, value = undefined) {
|
|
8594
|
+
const observers = [];
|
|
8595
|
+
function set(newValue) {
|
|
8596
|
+
value = newValue;
|
|
8597
|
+
for (const observe of observers) {
|
|
8598
|
+
observe(value);
|
|
8599
|
+
}
|
|
8600
|
+
}
|
|
8601
|
+
function get() {
|
|
8602
|
+
return value;
|
|
8603
|
+
}
|
|
8604
|
+
function observe(observe) {
|
|
8605
|
+
observers.push(observe);
|
|
8606
|
+
observe(value);
|
|
8607
|
+
}
|
|
8608
|
+
return { get, set, observe, enumerable: true };
|
|
8609
|
+
}
|
|
8610
|
+
|
|
8611
|
+
const cells = [
|
|
8612
|
+
{
|
|
8613
|
+
globalThis: cell("globalThis"),
|
|
8614
|
+
Array: cell("Array"),
|
|
8615
|
+
Date: cell("Date"),
|
|
8616
|
+
Float32Array: cell("Float32Array"),
|
|
8617
|
+
JSON: cell("JSON"),
|
|
8618
|
+
Map: cell("Map"),
|
|
8619
|
+
Math: cell("Math"),
|
|
8620
|
+
Number: cell("Number"),
|
|
8621
|
+
Object: cell("Object"),
|
|
8622
|
+
Promise: cell("Promise"),
|
|
8623
|
+
Proxy: cell("Proxy"),
|
|
8624
|
+
Reflect: cell("Reflect"),
|
|
8625
|
+
FERAL_REG_EXP: cell("FERAL_REG_EXP"),
|
|
8626
|
+
Set: cell("Set"),
|
|
8627
|
+
String: cell("String"),
|
|
8628
|
+
WeakMap: cell("WeakMap"),
|
|
8629
|
+
WeakSet: cell("WeakSet"),
|
|
8630
|
+
FERAL_ERROR: cell("FERAL_ERROR"),
|
|
8631
|
+
RangeError: cell("RangeError"),
|
|
8632
|
+
ReferenceError: cell("ReferenceError"),
|
|
8633
|
+
SyntaxError: cell("SyntaxError"),
|
|
8634
|
+
TypeError: cell("TypeError"),
|
|
8635
|
+
assign: cell("assign"),
|
|
8636
|
+
create: cell("create"),
|
|
8637
|
+
defineProperties: cell("defineProperties"),
|
|
8638
|
+
entries: cell("entries"),
|
|
8639
|
+
freeze: cell("freeze"),
|
|
8640
|
+
getOwnPropertyDescriptor: cell("getOwnPropertyDescriptor"),
|
|
8641
|
+
getOwnPropertyDescriptors: cell("getOwnPropertyDescriptors"),
|
|
8642
|
+
getOwnPropertyNames: cell("getOwnPropertyNames"),
|
|
8643
|
+
getPrototypeOf: cell("getPrototypeOf"),
|
|
8644
|
+
is: cell("is"),
|
|
8645
|
+
isExtensible: cell("isExtensible"),
|
|
8646
|
+
keys: cell("keys"),
|
|
8647
|
+
objectPrototype: cell("objectPrototype"),
|
|
8648
|
+
seal: cell("seal"),
|
|
8649
|
+
setPrototypeOf: cell("setPrototypeOf"),
|
|
8650
|
+
values: cell("values"),
|
|
8651
|
+
speciesSymbol: cell("speciesSymbol"),
|
|
8652
|
+
toStringTagSymbol: cell("toStringTagSymbol"),
|
|
8653
|
+
iteratorSymbol: cell("iteratorSymbol"),
|
|
8654
|
+
matchAllSymbol: cell("matchAllSymbol"),
|
|
8655
|
+
stringifyJson: cell("stringifyJson"),
|
|
8656
|
+
fromEntries: cell("fromEntries"),
|
|
8657
|
+
defineProperty: cell("defineProperty"),
|
|
8658
|
+
apply: cell("apply"),
|
|
8659
|
+
construct: cell("construct"),
|
|
8660
|
+
reflectGet: cell("reflectGet"),
|
|
8661
|
+
reflectGetOwnPropertyDescriptor: cell("reflectGetOwnPropertyDescriptor"),
|
|
8662
|
+
reflectHas: cell("reflectHas"),
|
|
8663
|
+
reflectIsExtensible: cell("reflectIsExtensible"),
|
|
8664
|
+
ownKeys: cell("ownKeys"),
|
|
8665
|
+
reflectPreventExtensions: cell("reflectPreventExtensions"),
|
|
8666
|
+
reflectSet: cell("reflectSet"),
|
|
8667
|
+
isArray: cell("isArray"),
|
|
8668
|
+
arrayPrototype: cell("arrayPrototype"),
|
|
8669
|
+
mapPrototype: cell("mapPrototype"),
|
|
8670
|
+
proxyRevocable: cell("proxyRevocable"),
|
|
8671
|
+
regexpPrototype: cell("regexpPrototype"),
|
|
8672
|
+
setPrototype: cell("setPrototype"),
|
|
8673
|
+
stringPrototype: cell("stringPrototype"),
|
|
8674
|
+
weakmapPrototype: cell("weakmapPrototype"),
|
|
8675
|
+
weaksetPrototype: cell("weaksetPrototype"),
|
|
8676
|
+
functionPrototype: cell("functionPrototype"),
|
|
8677
|
+
promisePrototype: cell("promisePrototype"),
|
|
8678
|
+
uncurryThis: cell("uncurryThis"),
|
|
8679
|
+
objectHasOwnProperty: cell("objectHasOwnProperty"),
|
|
8680
|
+
arrayFilter: cell("arrayFilter"),
|
|
8681
|
+
arrayForEach: cell("arrayForEach"),
|
|
8682
|
+
arrayIncludes: cell("arrayIncludes"),
|
|
8683
|
+
arrayJoin: cell("arrayJoin"),
|
|
8684
|
+
arrayMap: cell("arrayMap"),
|
|
8685
|
+
arrayPop: cell("arrayPop"),
|
|
8686
|
+
arrayPush: cell("arrayPush"),
|
|
8687
|
+
arraySlice: cell("arraySlice"),
|
|
8688
|
+
arraySome: cell("arraySome"),
|
|
8689
|
+
arraySort: cell("arraySort"),
|
|
8690
|
+
iterateArray: cell("iterateArray"),
|
|
8691
|
+
mapSet: cell("mapSet"),
|
|
8692
|
+
mapGet: cell("mapGet"),
|
|
8693
|
+
mapHas: cell("mapHas"),
|
|
8694
|
+
iterateMap: cell("iterateMap"),
|
|
8695
|
+
setAdd: cell("setAdd"),
|
|
8696
|
+
setForEach: cell("setForEach"),
|
|
8697
|
+
setHas: cell("setHas"),
|
|
8698
|
+
iterateSet: cell("iterateSet"),
|
|
8699
|
+
regexpTest: cell("regexpTest"),
|
|
8700
|
+
regexpExec: cell("regexpExec"),
|
|
8701
|
+
matchAllRegExp: cell("matchAllRegExp"),
|
|
8702
|
+
stringEndsWith: cell("stringEndsWith"),
|
|
8703
|
+
stringIncludes: cell("stringIncludes"),
|
|
8704
|
+
stringIndexOf: cell("stringIndexOf"),
|
|
8705
|
+
stringMatch: cell("stringMatch"),
|
|
8706
|
+
stringReplace: cell("stringReplace"),
|
|
8707
|
+
stringSearch: cell("stringSearch"),
|
|
8708
|
+
stringSlice: cell("stringSlice"),
|
|
8709
|
+
stringSplit: cell("stringSplit"),
|
|
8710
|
+
stringStartsWith: cell("stringStartsWith"),
|
|
8711
|
+
iterateString: cell("iterateString"),
|
|
8712
|
+
weakmapDelete: cell("weakmapDelete"),
|
|
8713
|
+
weakmapGet: cell("weakmapGet"),
|
|
8714
|
+
weakmapHas: cell("weakmapHas"),
|
|
8715
|
+
weakmapSet: cell("weakmapSet"),
|
|
8716
|
+
weaksetAdd: cell("weaksetAdd"),
|
|
8717
|
+
weaksetGet: cell("weaksetGet"),
|
|
8718
|
+
weaksetHas: cell("weaksetHas"),
|
|
8719
|
+
functionToString: cell("functionToString"),
|
|
8720
|
+
promiseAll: cell("promiseAll"),
|
|
8721
|
+
promiseCatch: cell("promiseCatch"),
|
|
8722
|
+
promiseThen: cell("promiseThen"),
|
|
8723
|
+
getConstructorOf: cell("getConstructorOf"),
|
|
8724
|
+
immutableObject: cell("immutableObject"),
|
|
8725
|
+
isObject: cell("isObject"),
|
|
8726
|
+
isError: cell("isError"),
|
|
8727
|
+
FERAL_EVAL: cell("FERAL_EVAL"),
|
|
8728
|
+
FERAL_FUNCTION: cell("FERAL_FUNCTION"),
|
|
8729
|
+
},
|
|
8730
|
+
{
|
|
8731
|
+
},
|
|
8732
|
+
{
|
|
8733
|
+
an: cell("an"),
|
|
8734
|
+
bestEffortStringify: cell("bestEffortStringify"),
|
|
8735
|
+
enJoin: cell("enJoin"),
|
|
8736
|
+
},
|
|
8737
|
+
{
|
|
8738
|
+
},
|
|
8739
|
+
{
|
|
8740
|
+
unredactedDetails: cell("unredactedDetails"),
|
|
8741
|
+
loggedErrorHandler: cell("loggedErrorHandler"),
|
|
8742
|
+
makeAssert: cell("makeAssert"),
|
|
8743
|
+
assert: cell("assert"),
|
|
8744
|
+
},
|
|
8745
|
+
{
|
|
8746
|
+
makeEvaluateFactory: cell("makeEvaluateFactory"),
|
|
8747
|
+
},
|
|
8748
|
+
{
|
|
8749
|
+
isValidIdentifierName: cell("isValidIdentifierName"),
|
|
8750
|
+
getScopeConstants: cell("getScopeConstants"),
|
|
8751
|
+
},
|
|
8752
|
+
{
|
|
8753
|
+
createScopeHandler: cell("createScopeHandler"),
|
|
8754
|
+
},
|
|
8755
|
+
{
|
|
8756
|
+
getSourceURL: cell("getSourceURL"),
|
|
8757
|
+
},
|
|
8758
|
+
{
|
|
8759
|
+
rejectHtmlComments: cell("rejectHtmlComments"),
|
|
8760
|
+
evadeHtmlCommentTest: cell("evadeHtmlCommentTest"),
|
|
8761
|
+
rejectImportExpressions: cell("rejectImportExpressions"),
|
|
8762
|
+
evadeImportExpressionTest: cell("evadeImportExpressionTest"),
|
|
8763
|
+
rejectSomeDirectEvalExpressions: cell("rejectSomeDirectEvalExpressions"),
|
|
8764
|
+
mandatoryTransforms: cell("mandatoryTransforms"),
|
|
8765
|
+
applyTransforms: cell("applyTransforms"),
|
|
8766
|
+
},
|
|
8767
|
+
{
|
|
8768
|
+
makeSafeEvaluator: cell("makeSafeEvaluator"),
|
|
8769
|
+
},
|
|
8770
|
+
{
|
|
8771
|
+
provideCompartmentEvaluator: cell("provideCompartmentEvaluator"),
|
|
8772
|
+
compartmentEvaluate: cell("compartmentEvaluate"),
|
|
8773
|
+
},
|
|
8774
|
+
{
|
|
8775
|
+
makeEvalFunction: cell("makeEvalFunction"),
|
|
8776
|
+
},
|
|
8777
|
+
{
|
|
8778
|
+
makeFunctionConstructor: cell("makeFunctionConstructor"),
|
|
8779
|
+
},
|
|
8780
|
+
{
|
|
8781
|
+
constantProperties: cell("constantProperties"),
|
|
8782
|
+
universalPropertyNames: cell("universalPropertyNames"),
|
|
8783
|
+
initialGlobalPropertyNames: cell("initialGlobalPropertyNames"),
|
|
8784
|
+
sharedGlobalPropertyNames: cell("sharedGlobalPropertyNames"),
|
|
8785
|
+
uniqueGlobalPropertyNames: cell("uniqueGlobalPropertyNames"),
|
|
8786
|
+
NativeErrors: cell("NativeErrors"),
|
|
8787
|
+
FunctionInstance: cell("FunctionInstance"),
|
|
8788
|
+
isAccessorPermit: cell("isAccessorPermit"),
|
|
8789
|
+
whitelist: cell("whitelist"),
|
|
8790
|
+
},
|
|
8791
|
+
{
|
|
8792
|
+
setGlobalObjectConstantProperties: cell("setGlobalObjectConstantProperties"),
|
|
8793
|
+
setGlobalObjectMutableProperties: cell("setGlobalObjectMutableProperties"),
|
|
8794
|
+
},
|
|
8795
|
+
{
|
|
8796
|
+
makeAlias: cell("makeAlias"),
|
|
8797
|
+
load: cell("load"),
|
|
8798
|
+
},
|
|
8799
|
+
{
|
|
8800
|
+
deferExports: cell("deferExports"),
|
|
8801
|
+
getDeferredExports: cell("getDeferredExports"),
|
|
8802
|
+
},
|
|
8803
|
+
{
|
|
8804
|
+
makeThirdPartyModuleInstance: cell("makeThirdPartyModuleInstance"),
|
|
8805
|
+
makeModuleInstance: cell("makeModuleInstance"),
|
|
8806
|
+
},
|
|
8807
|
+
{
|
|
8808
|
+
link: cell("link"),
|
|
8809
|
+
instantiate: cell("instantiate"),
|
|
8810
|
+
},
|
|
8811
|
+
{
|
|
8812
|
+
InertCompartment: cell("InertCompartment"),
|
|
8813
|
+
CompartmentPrototype: cell("CompartmentPrototype"),
|
|
8814
|
+
makeCompartmentConstructor: cell("makeCompartmentConstructor"),
|
|
8815
|
+
},
|
|
8816
|
+
{
|
|
8817
|
+
makeIntrinsicsCollector: cell("makeIntrinsicsCollector"),
|
|
8818
|
+
getGlobalIntrinsics: cell("getGlobalIntrinsics"),
|
|
8819
|
+
},
|
|
8820
|
+
{
|
|
8821
|
+
minEnablements: cell("minEnablements"),
|
|
8822
|
+
moderateEnablements: cell("moderateEnablements"),
|
|
8823
|
+
severeEnablements: cell("severeEnablements"),
|
|
8824
|
+
},
|
|
8825
|
+
{
|
|
8826
|
+
default: cell("default"),
|
|
8827
|
+
},
|
|
8828
|
+
{
|
|
8829
|
+
makeEnvironmentCaptor: cell("makeEnvironmentCaptor"),
|
|
8830
|
+
},
|
|
8831
|
+
{
|
|
8832
|
+
makeLoggingConsoleKit: cell("makeLoggingConsoleKit"),
|
|
8833
|
+
makeCausalConsole: cell("makeCausalConsole"),
|
|
8834
|
+
filterConsole: cell("filterConsole"),
|
|
8835
|
+
consoleWhitelist: cell("consoleWhitelist"),
|
|
8836
|
+
BASE_CONSOLE_LEVEL: cell("BASE_CONSOLE_LEVEL"),
|
|
8837
|
+
},
|
|
8838
|
+
{
|
|
8839
|
+
tameConsole: cell("tameConsole"),
|
|
8840
|
+
},
|
|
8841
|
+
{
|
|
8842
|
+
filterFileName: cell("filterFileName"),
|
|
8843
|
+
shortenCallSiteString: cell("shortenCallSiteString"),
|
|
8844
|
+
tameV8ErrorConstructor: cell("tameV8ErrorConstructor"),
|
|
8845
|
+
},
|
|
8846
|
+
{
|
|
8847
|
+
default: cell("default"),
|
|
8848
|
+
},
|
|
8849
|
+
{
|
|
8850
|
+
getAnonymousIntrinsics: cell("getAnonymousIntrinsics"),
|
|
8851
|
+
},
|
|
8852
|
+
{
|
|
8853
|
+
makeHardener: cell("makeHardener"),
|
|
8854
|
+
},
|
|
8855
|
+
{
|
|
8856
|
+
default: cell("default"),
|
|
8857
|
+
},
|
|
8858
|
+
{
|
|
8859
|
+
tameDomains: cell("tameDomains"),
|
|
8860
|
+
},
|
|
8861
|
+
{
|
|
8862
|
+
default: cell("default"),
|
|
8863
|
+
},
|
|
8864
|
+
{
|
|
8865
|
+
tameFunctionToString: cell("tameFunctionToString"),
|
|
8866
|
+
},
|
|
8867
|
+
{
|
|
8868
|
+
default: cell("default"),
|
|
8869
|
+
},
|
|
8870
|
+
{
|
|
8871
|
+
default: cell("default"),
|
|
8872
|
+
},
|
|
8873
|
+
{
|
|
8874
|
+
default: cell("default"),
|
|
8875
|
+
},
|
|
8876
|
+
{
|
|
8877
|
+
default: cell("default"),
|
|
8878
|
+
},
|
|
8879
|
+
{
|
|
8880
|
+
repairIntrinsics: cell("repairIntrinsics"),
|
|
8881
|
+
lockdown: cell("lockdown"),
|
|
8882
|
+
},
|
|
8883
|
+
{
|
|
8884
|
+
},
|
|
8885
|
+
];
|
|
8886
|
+
|
|
8887
|
+
|
|
8888
|
+
const namespaces = cells.map(cells => Object.create(null, cells));
|
|
8889
|
+
|
|
8890
|
+
for (let index = 0; index < namespaces.length; index += 1) {
|
|
8891
|
+
cells[index]['*'] = cell('*', namespaces[index]);
|
|
8892
|
+
}
|
|
8893
|
+
|
|
8894
|
+
function observeImports(map, importName, importIndex) {
|
|
8895
|
+
for (const [name, observers] of map.get(importName)) {
|
|
8896
|
+
const cell = cells[importIndex][name];
|
|
8897
|
+
if (cell === undefined) {
|
|
8898
|
+
throw new ReferenceError(`Cannot import name ${name}`);
|
|
8899
|
+
}
|
|
8900
|
+
for (const observer of observers) {
|
|
8901
|
+
cell.observe(observer);
|
|
8902
|
+
}
|
|
8903
|
+
}
|
|
8904
|
+
}
|
|
8905
|
+
|
|
8906
|
+
functors[0]({
|
|
8907
|
+
imports(entries) {
|
|
8908
|
+
const map = new Map(entries);
|
|
8909
|
+
},
|
|
8910
|
+
liveVar: {
|
|
8911
|
+
},
|
|
8912
|
+
onceVar: {
|
|
8913
|
+
universalThis: cells[0].globalThis.set,
|
|
8914
|
+
Array: cells[0].Array.set,
|
|
8915
|
+
Date: cells[0].Date.set,
|
|
8916
|
+
Float32Array: cells[0].Float32Array.set,
|
|
8917
|
+
JSON: cells[0].JSON.set,
|
|
8918
|
+
Map: cells[0].Map.set,
|
|
8919
|
+
Math: cells[0].Math.set,
|
|
8920
|
+
Number: cells[0].Number.set,
|
|
8921
|
+
Object: cells[0].Object.set,
|
|
8922
|
+
Promise: cells[0].Promise.set,
|
|
8923
|
+
Proxy: cells[0].Proxy.set,
|
|
8924
|
+
Reflect: cells[0].Reflect.set,
|
|
8925
|
+
FERAL_REG_EXP: cells[0].FERAL_REG_EXP.set,
|
|
8926
|
+
Set: cells[0].Set.set,
|
|
8927
|
+
String: cells[0].String.set,
|
|
8928
|
+
WeakMap: cells[0].WeakMap.set,
|
|
8929
|
+
WeakSet: cells[0].WeakSet.set,
|
|
8930
|
+
FERAL_ERROR: cells[0].FERAL_ERROR.set,
|
|
8931
|
+
RangeError: cells[0].RangeError.set,
|
|
8932
|
+
ReferenceError: cells[0].ReferenceError.set,
|
|
8933
|
+
SyntaxError: cells[0].SyntaxError.set,
|
|
8934
|
+
TypeError: cells[0].TypeError.set,
|
|
8935
|
+
assign: cells[0].assign.set,
|
|
8936
|
+
create: cells[0].create.set,
|
|
8937
|
+
defineProperties: cells[0].defineProperties.set,
|
|
8938
|
+
entries: cells[0].entries.set,
|
|
8939
|
+
freeze: cells[0].freeze.set,
|
|
8940
|
+
getOwnPropertyDescriptor: cells[0].getOwnPropertyDescriptor.set,
|
|
8941
|
+
getOwnPropertyDescriptors: cells[0].getOwnPropertyDescriptors.set,
|
|
8942
|
+
getOwnPropertyNames: cells[0].getOwnPropertyNames.set,
|
|
8943
|
+
getPrototypeOf: cells[0].getPrototypeOf.set,
|
|
8944
|
+
is: cells[0].is.set,
|
|
8945
|
+
isExtensible: cells[0].isExtensible.set,
|
|
8946
|
+
keys: cells[0].keys.set,
|
|
8947
|
+
objectPrototype: cells[0].objectPrototype.set,
|
|
8948
|
+
seal: cells[0].seal.set,
|
|
8949
|
+
setPrototypeOf: cells[0].setPrototypeOf.set,
|
|
8950
|
+
values: cells[0].values.set,
|
|
8951
|
+
speciesSymbol: cells[0].speciesSymbol.set,
|
|
8952
|
+
toStringTagSymbol: cells[0].toStringTagSymbol.set,
|
|
8953
|
+
iteratorSymbol: cells[0].iteratorSymbol.set,
|
|
8954
|
+
matchAllSymbol: cells[0].matchAllSymbol.set,
|
|
8955
|
+
stringifyJson: cells[0].stringifyJson.set,
|
|
8956
|
+
fromEntries: cells[0].fromEntries.set,
|
|
8957
|
+
defineProperty: cells[0].defineProperty.set,
|
|
8958
|
+
apply: cells[0].apply.set,
|
|
8959
|
+
construct: cells[0].construct.set,
|
|
8960
|
+
reflectGet: cells[0].reflectGet.set,
|
|
8961
|
+
reflectGetOwnPropertyDescriptor: cells[0].reflectGetOwnPropertyDescriptor.set,
|
|
8962
|
+
reflectHas: cells[0].reflectHas.set,
|
|
8963
|
+
reflectIsExtensible: cells[0].reflectIsExtensible.set,
|
|
8964
|
+
ownKeys: cells[0].ownKeys.set,
|
|
8965
|
+
reflectPreventExtensions: cells[0].reflectPreventExtensions.set,
|
|
8966
|
+
reflectSet: cells[0].reflectSet.set,
|
|
8967
|
+
isArray: cells[0].isArray.set,
|
|
8968
|
+
arrayPrototype: cells[0].arrayPrototype.set,
|
|
8969
|
+
mapPrototype: cells[0].mapPrototype.set,
|
|
8970
|
+
proxyRevocable: cells[0].proxyRevocable.set,
|
|
8971
|
+
regexpPrototype: cells[0].regexpPrototype.set,
|
|
8972
|
+
setPrototype: cells[0].setPrototype.set,
|
|
8973
|
+
stringPrototype: cells[0].stringPrototype.set,
|
|
8974
|
+
weakmapPrototype: cells[0].weakmapPrototype.set,
|
|
8975
|
+
weaksetPrototype: cells[0].weaksetPrototype.set,
|
|
8976
|
+
functionPrototype: cells[0].functionPrototype.set,
|
|
8977
|
+
promisePrototype: cells[0].promisePrototype.set,
|
|
8978
|
+
uncurryThis: cells[0].uncurryThis.set,
|
|
8979
|
+
objectHasOwnProperty: cells[0].objectHasOwnProperty.set,
|
|
8980
|
+
arrayFilter: cells[0].arrayFilter.set,
|
|
8981
|
+
arrayForEach: cells[0].arrayForEach.set,
|
|
8982
|
+
arrayIncludes: cells[0].arrayIncludes.set,
|
|
8983
|
+
arrayJoin: cells[0].arrayJoin.set,
|
|
8984
|
+
arrayMap: cells[0].arrayMap.set,
|
|
8985
|
+
arrayPop: cells[0].arrayPop.set,
|
|
8986
|
+
arrayPush: cells[0].arrayPush.set,
|
|
8987
|
+
arraySlice: cells[0].arraySlice.set,
|
|
8988
|
+
arraySome: cells[0].arraySome.set,
|
|
8989
|
+
arraySort: cells[0].arraySort.set,
|
|
8990
|
+
iterateArray: cells[0].iterateArray.set,
|
|
8991
|
+
mapSet: cells[0].mapSet.set,
|
|
8992
|
+
mapGet: cells[0].mapGet.set,
|
|
8993
|
+
mapHas: cells[0].mapHas.set,
|
|
8994
|
+
iterateMap: cells[0].iterateMap.set,
|
|
8995
|
+
setAdd: cells[0].setAdd.set,
|
|
8996
|
+
setForEach: cells[0].setForEach.set,
|
|
8997
|
+
setHas: cells[0].setHas.set,
|
|
8998
|
+
iterateSet: cells[0].iterateSet.set,
|
|
8999
|
+
regexpTest: cells[0].regexpTest.set,
|
|
9000
|
+
regexpExec: cells[0].regexpExec.set,
|
|
9001
|
+
matchAllRegExp: cells[0].matchAllRegExp.set,
|
|
9002
|
+
stringEndsWith: cells[0].stringEndsWith.set,
|
|
9003
|
+
stringIncludes: cells[0].stringIncludes.set,
|
|
9004
|
+
stringIndexOf: cells[0].stringIndexOf.set,
|
|
9005
|
+
stringMatch: cells[0].stringMatch.set,
|
|
9006
|
+
stringReplace: cells[0].stringReplace.set,
|
|
9007
|
+
stringSearch: cells[0].stringSearch.set,
|
|
9008
|
+
stringSlice: cells[0].stringSlice.set,
|
|
9009
|
+
stringSplit: cells[0].stringSplit.set,
|
|
9010
|
+
stringStartsWith: cells[0].stringStartsWith.set,
|
|
9011
|
+
iterateString: cells[0].iterateString.set,
|
|
9012
|
+
weakmapDelete: cells[0].weakmapDelete.set,
|
|
9013
|
+
weakmapGet: cells[0].weakmapGet.set,
|
|
9014
|
+
weakmapHas: cells[0].weakmapHas.set,
|
|
9015
|
+
weakmapSet: cells[0].weakmapSet.set,
|
|
9016
|
+
weaksetAdd: cells[0].weaksetAdd.set,
|
|
9017
|
+
weaksetGet: cells[0].weaksetGet.set,
|
|
9018
|
+
weaksetHas: cells[0].weaksetHas.set,
|
|
9019
|
+
functionToString: cells[0].functionToString.set,
|
|
9020
|
+
promiseAll: cells[0].promiseAll.set,
|
|
9021
|
+
promiseCatch: cells[0].promiseCatch.set,
|
|
9022
|
+
promiseThen: cells[0].promiseThen.set,
|
|
9023
|
+
getConstructorOf: cells[0].getConstructorOf.set,
|
|
9024
|
+
immutableObject: cells[0].immutableObject.set,
|
|
9025
|
+
isObject: cells[0].isObject.set,
|
|
9026
|
+
isError: cells[0].isError.set,
|
|
9027
|
+
FERAL_EVAL: cells[0].FERAL_EVAL.set,
|
|
9028
|
+
FERAL_FUNCTION: cells[0].FERAL_FUNCTION.set,
|
|
9029
|
+
},
|
|
9030
|
+
});
|
|
9031
|
+
functors[1]({
|
|
9032
|
+
imports(entries) {
|
|
9033
|
+
const map = new Map(entries);
|
|
9034
|
+
},
|
|
9035
|
+
liveVar: {
|
|
9036
|
+
},
|
|
9037
|
+
onceVar: {
|
|
9038
|
+
},
|
|
9039
|
+
});
|
|
9040
|
+
functors[2]({
|
|
9041
|
+
imports(entries) {
|
|
9042
|
+
const map = new Map(entries);
|
|
9043
|
+
observeImports(map, "../commons.js", 0);
|
|
9044
|
+
},
|
|
9045
|
+
liveVar: {
|
|
9046
|
+
},
|
|
9047
|
+
onceVar: {
|
|
9048
|
+
an: cells[2].an.set,
|
|
9049
|
+
bestEffortStringify: cells[2].bestEffortStringify.set,
|
|
9050
|
+
enJoin: cells[2].enJoin.set,
|
|
9051
|
+
},
|
|
9052
|
+
});
|
|
9053
|
+
functors[3]({
|
|
9054
|
+
imports(entries) {
|
|
9055
|
+
const map = new Map(entries);
|
|
9056
|
+
},
|
|
9057
|
+
liveVar: {
|
|
9058
|
+
},
|
|
9059
|
+
onceVar: {
|
|
9060
|
+
},
|
|
9061
|
+
});
|
|
9062
|
+
functors[4]({
|
|
9063
|
+
imports(entries) {
|
|
9064
|
+
const map = new Map(entries);
|
|
9065
|
+
observeImports(map, "../commons.js", 0);
|
|
9066
|
+
observeImports(map, "./internal-types.js", 1);
|
|
9067
|
+
observeImports(map, "./stringify-utils.js", 2);
|
|
9068
|
+
observeImports(map, "./types.js", 3);
|
|
9069
|
+
},
|
|
9070
|
+
liveVar: {
|
|
9071
|
+
},
|
|
9072
|
+
onceVar: {
|
|
9073
|
+
unredactedDetails: cells[4].unredactedDetails.set,
|
|
9074
|
+
loggedErrorHandler: cells[4].loggedErrorHandler.set,
|
|
9075
|
+
makeAssert: cells[4].makeAssert.set,
|
|
9076
|
+
assert: cells[4].assert.set,
|
|
9077
|
+
},
|
|
9078
|
+
});
|
|
9079
|
+
functors[5]({
|
|
9080
|
+
imports(entries) {
|
|
9081
|
+
const map = new Map(entries);
|
|
9082
|
+
observeImports(map, "./commons.js", 0);
|
|
9083
|
+
},
|
|
9084
|
+
liveVar: {
|
|
9085
|
+
},
|
|
9086
|
+
onceVar: {
|
|
9087
|
+
makeEvaluateFactory: cells[5].makeEvaluateFactory.set,
|
|
9088
|
+
},
|
|
9089
|
+
});
|
|
9090
|
+
functors[6]({
|
|
9091
|
+
imports(entries) {
|
|
9092
|
+
const map = new Map(entries);
|
|
9093
|
+
observeImports(map, "./commons.js", 0);
|
|
9094
|
+
},
|
|
9095
|
+
liveVar: {
|
|
9096
|
+
},
|
|
9097
|
+
onceVar: {
|
|
9098
|
+
isValidIdentifierName: cells[6].isValidIdentifierName.set,
|
|
9099
|
+
getScopeConstants: cells[6].getScopeConstants.set,
|
|
9100
|
+
},
|
|
9101
|
+
});
|
|
9102
|
+
functors[7]({
|
|
9103
|
+
imports(entries) {
|
|
9104
|
+
const map = new Map(entries);
|
|
9105
|
+
observeImports(map, "./commons.js", 0);
|
|
9106
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9107
|
+
},
|
|
9108
|
+
liveVar: {
|
|
9109
|
+
},
|
|
9110
|
+
onceVar: {
|
|
9111
|
+
createScopeHandler: cells[7].createScopeHandler.set,
|
|
9112
|
+
},
|
|
9113
|
+
});
|
|
9114
|
+
functors[8]({
|
|
9115
|
+
imports(entries) {
|
|
9116
|
+
const map = new Map(entries);
|
|
9117
|
+
observeImports(map, "./commons.js", 0);
|
|
9118
|
+
},
|
|
9119
|
+
liveVar: {
|
|
9120
|
+
},
|
|
9121
|
+
onceVar: {
|
|
9122
|
+
getSourceURL: cells[8].getSourceURL.set,
|
|
9123
|
+
},
|
|
9124
|
+
});
|
|
9125
|
+
functors[9]({
|
|
9126
|
+
imports(entries) {
|
|
9127
|
+
const map = new Map(entries);
|
|
9128
|
+
observeImports(map, "./commons.js", 0);
|
|
9129
|
+
observeImports(map, "./get-source-url.js", 8);
|
|
9130
|
+
},
|
|
9131
|
+
liveVar: {
|
|
9132
|
+
},
|
|
9133
|
+
onceVar: {
|
|
9134
|
+
rejectHtmlComments: cells[9].rejectHtmlComments.set,
|
|
9135
|
+
evadeHtmlCommentTest: cells[9].evadeHtmlCommentTest.set,
|
|
9136
|
+
rejectImportExpressions: cells[9].rejectImportExpressions.set,
|
|
9137
|
+
evadeImportExpressionTest: cells[9].evadeImportExpressionTest.set,
|
|
9138
|
+
rejectSomeDirectEvalExpressions: cells[9].rejectSomeDirectEvalExpressions.set,
|
|
9139
|
+
mandatoryTransforms: cells[9].mandatoryTransforms.set,
|
|
9140
|
+
applyTransforms: cells[9].applyTransforms.set,
|
|
9141
|
+
},
|
|
9142
|
+
});
|
|
9143
|
+
functors[10]({
|
|
9144
|
+
imports(entries) {
|
|
9145
|
+
const map = new Map(entries);
|
|
9146
|
+
observeImports(map, "./commons.js", 0);
|
|
9147
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9148
|
+
observeImports(map, "./make-evaluate-factory.js", 5);
|
|
9149
|
+
observeImports(map, "./scope-constants.js", 6);
|
|
9150
|
+
observeImports(map, "./scope-handler.js", 7);
|
|
9151
|
+
observeImports(map, "./transforms.js", 9);
|
|
9152
|
+
},
|
|
9153
|
+
liveVar: {
|
|
9154
|
+
},
|
|
9155
|
+
onceVar: {
|
|
9156
|
+
makeSafeEvaluator: cells[10].makeSafeEvaluator.set,
|
|
9157
|
+
},
|
|
9158
|
+
});
|
|
9159
|
+
functors[11]({
|
|
9160
|
+
imports(entries) {
|
|
9161
|
+
const map = new Map(entries);
|
|
9162
|
+
observeImports(map, "./commons.js", 0);
|
|
9163
|
+
observeImports(map, "./make-safe-evaluator.js", 10);
|
|
9164
|
+
observeImports(map, "./transforms.js", 9);
|
|
9165
|
+
},
|
|
9166
|
+
liveVar: {
|
|
9167
|
+
},
|
|
9168
|
+
onceVar: {
|
|
9169
|
+
provideCompartmentEvaluator: cells[11].provideCompartmentEvaluator.set,
|
|
9170
|
+
compartmentEvaluate: cells[11].compartmentEvaluate.set,
|
|
9171
|
+
},
|
|
9172
|
+
});
|
|
9173
|
+
functors[12]({
|
|
9174
|
+
imports(entries) {
|
|
9175
|
+
const map = new Map(entries);
|
|
9176
|
+
},
|
|
9177
|
+
liveVar: {
|
|
9178
|
+
},
|
|
9179
|
+
onceVar: {
|
|
9180
|
+
makeEvalFunction: cells[12].makeEvalFunction.set,
|
|
9181
|
+
},
|
|
9182
|
+
});
|
|
9183
|
+
functors[13]({
|
|
9184
|
+
imports(entries) {
|
|
9185
|
+
const map = new Map(entries);
|
|
9186
|
+
observeImports(map, "./commons.js", 0);
|
|
9187
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9188
|
+
},
|
|
9189
|
+
liveVar: {
|
|
9190
|
+
},
|
|
9191
|
+
onceVar: {
|
|
9192
|
+
makeFunctionConstructor: cells[13].makeFunctionConstructor.set,
|
|
9193
|
+
},
|
|
9194
|
+
});
|
|
9195
|
+
functors[14]({
|
|
9196
|
+
imports(entries) {
|
|
9197
|
+
const map = new Map(entries);
|
|
9198
|
+
},
|
|
9199
|
+
liveVar: {
|
|
9200
|
+
},
|
|
9201
|
+
onceVar: {
|
|
9202
|
+
constantProperties: cells[14].constantProperties.set,
|
|
9203
|
+
universalPropertyNames: cells[14].universalPropertyNames.set,
|
|
9204
|
+
initialGlobalPropertyNames: cells[14].initialGlobalPropertyNames.set,
|
|
9205
|
+
sharedGlobalPropertyNames: cells[14].sharedGlobalPropertyNames.set,
|
|
9206
|
+
uniqueGlobalPropertyNames: cells[14].uniqueGlobalPropertyNames.set,
|
|
9207
|
+
NativeErrors: cells[14].NativeErrors.set,
|
|
9208
|
+
FunctionInstance: cells[14].FunctionInstance.set,
|
|
9209
|
+
isAccessorPermit: cells[14].isAccessorPermit.set,
|
|
9210
|
+
whitelist: cells[14].whitelist.set,
|
|
9211
|
+
},
|
|
9212
|
+
});
|
|
9213
|
+
functors[15]({
|
|
9214
|
+
imports(entries) {
|
|
9215
|
+
const map = new Map(entries);
|
|
9216
|
+
observeImports(map, "./commons.js", 0);
|
|
9217
|
+
observeImports(map, "./make-eval-function.js", 12);
|
|
9218
|
+
observeImports(map, "./make-function-constructor.js", 13);
|
|
9219
|
+
observeImports(map, "./whitelist.js", 14);
|
|
9220
|
+
},
|
|
9221
|
+
liveVar: {
|
|
9222
|
+
},
|
|
9223
|
+
onceVar: {
|
|
9224
|
+
setGlobalObjectConstantProperties: cells[15].setGlobalObjectConstantProperties.set,
|
|
9225
|
+
setGlobalObjectMutableProperties: cells[15].setGlobalObjectMutableProperties.set,
|
|
9226
|
+
},
|
|
9227
|
+
});
|
|
9228
|
+
functors[16]({
|
|
9229
|
+
imports(entries) {
|
|
9230
|
+
const map = new Map(entries);
|
|
9231
|
+
observeImports(map, "./commons.js", 0);
|
|
9232
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9233
|
+
},
|
|
9234
|
+
liveVar: {
|
|
9235
|
+
},
|
|
9236
|
+
onceVar: {
|
|
9237
|
+
makeAlias: cells[16].makeAlias.set,
|
|
9238
|
+
load: cells[16].load.set,
|
|
9239
|
+
},
|
|
9240
|
+
});
|
|
9241
|
+
functors[17]({
|
|
9242
|
+
imports(entries) {
|
|
9243
|
+
const map = new Map(entries);
|
|
9244
|
+
observeImports(map, "./commons.js", 0);
|
|
9245
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9246
|
+
observeImports(map, "./module-load.js", 16);
|
|
9247
|
+
},
|
|
9248
|
+
liveVar: {
|
|
9249
|
+
},
|
|
9250
|
+
onceVar: {
|
|
9251
|
+
deferExports: cells[17].deferExports.set,
|
|
9252
|
+
getDeferredExports: cells[17].getDeferredExports.set,
|
|
9253
|
+
},
|
|
9254
|
+
});
|
|
9255
|
+
functors[18]({
|
|
9256
|
+
imports(entries) {
|
|
9257
|
+
const map = new Map(entries);
|
|
9258
|
+
observeImports(map, "./commons.js", 0);
|
|
9259
|
+
observeImports(map, "./compartment-evaluate.js", 11);
|
|
9260
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9261
|
+
observeImports(map, "./module-proxy.js", 17);
|
|
9262
|
+
},
|
|
9263
|
+
liveVar: {
|
|
9264
|
+
},
|
|
9265
|
+
onceVar: {
|
|
9266
|
+
makeThirdPartyModuleInstance: cells[18].makeThirdPartyModuleInstance.set,
|
|
9267
|
+
makeModuleInstance: cells[18].makeModuleInstance.set,
|
|
9268
|
+
},
|
|
9269
|
+
});
|
|
9270
|
+
functors[19]({
|
|
9271
|
+
imports(entries) {
|
|
9272
|
+
const map = new Map(entries);
|
|
9273
|
+
observeImports(map, "./commons.js", 0);
|
|
9274
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9275
|
+
observeImports(map, "./module-instance.js", 18);
|
|
9276
|
+
},
|
|
9277
|
+
liveVar: {
|
|
9278
|
+
},
|
|
9279
|
+
onceVar: {
|
|
9280
|
+
link: cells[19].link.set,
|
|
9281
|
+
instantiate: cells[19].instantiate.set,
|
|
9282
|
+
},
|
|
9283
|
+
});
|
|
9284
|
+
functors[20]({
|
|
9285
|
+
imports(entries) {
|
|
9286
|
+
const map = new Map(entries);
|
|
9287
|
+
observeImports(map, "./commons.js", 0);
|
|
9288
|
+
observeImports(map, "./compartment-evaluate.js", 11);
|
|
9289
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9290
|
+
observeImports(map, "./global-object.js", 15);
|
|
9291
|
+
observeImports(map, "./make-safe-evaluator.js", 10);
|
|
9292
|
+
observeImports(map, "./module-link.js", 19);
|
|
9293
|
+
observeImports(map, "./module-load.js", 16);
|
|
9294
|
+
observeImports(map, "./module-proxy.js", 17);
|
|
9295
|
+
observeImports(map, "./scope-constants.js", 6);
|
|
9296
|
+
observeImports(map, "./whitelist.js", 14);
|
|
9297
|
+
},
|
|
9298
|
+
liveVar: {
|
|
9299
|
+
},
|
|
9300
|
+
onceVar: {
|
|
9301
|
+
InertCompartment: cells[20].InertCompartment.set,
|
|
9302
|
+
CompartmentPrototype: cells[20].CompartmentPrototype.set,
|
|
9303
|
+
makeCompartmentConstructor: cells[20].makeCompartmentConstructor.set,
|
|
9304
|
+
},
|
|
9305
|
+
});
|
|
9306
|
+
functors[21]({
|
|
9307
|
+
imports(entries) {
|
|
9308
|
+
const map = new Map(entries);
|
|
9309
|
+
observeImports(map, "./commons.js", 0);
|
|
9310
|
+
observeImports(map, "./whitelist.js", 14);
|
|
9311
|
+
},
|
|
9312
|
+
liveVar: {
|
|
9313
|
+
},
|
|
9314
|
+
onceVar: {
|
|
9315
|
+
makeIntrinsicsCollector: cells[21].makeIntrinsicsCollector.set,
|
|
9316
|
+
getGlobalIntrinsics: cells[21].getGlobalIntrinsics.set,
|
|
9317
|
+
},
|
|
9318
|
+
});
|
|
9319
|
+
functors[22]({
|
|
9320
|
+
imports(entries) {
|
|
9321
|
+
const map = new Map(entries);
|
|
9322
|
+
},
|
|
9323
|
+
liveVar: {
|
|
9324
|
+
},
|
|
9325
|
+
onceVar: {
|
|
9326
|
+
minEnablements: cells[22].minEnablements.set,
|
|
9327
|
+
moderateEnablements: cells[22].moderateEnablements.set,
|
|
9328
|
+
severeEnablements: cells[22].severeEnablements.set,
|
|
9329
|
+
},
|
|
9330
|
+
});
|
|
9331
|
+
functors[23]({
|
|
9332
|
+
imports(entries) {
|
|
9333
|
+
const map = new Map(entries);
|
|
9334
|
+
observeImports(map, "./commons.js", 0);
|
|
9335
|
+
observeImports(map, "./enablements.js", 22);
|
|
9336
|
+
},
|
|
9337
|
+
liveVar: {
|
|
9338
|
+
},
|
|
9339
|
+
onceVar: {
|
|
9340
|
+
default: cells[23].default.set,
|
|
9341
|
+
},
|
|
9342
|
+
});
|
|
9343
|
+
functors[24]({
|
|
9344
|
+
imports(entries) {
|
|
9345
|
+
const map = new Map(entries);
|
|
9346
|
+
observeImports(map, "./commons.js", 0);
|
|
9347
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9348
|
+
},
|
|
9349
|
+
liveVar: {
|
|
9350
|
+
},
|
|
9351
|
+
onceVar: {
|
|
9352
|
+
makeEnvironmentCaptor: cells[24].makeEnvironmentCaptor.set,
|
|
9353
|
+
},
|
|
9354
|
+
});
|
|
9355
|
+
functors[25]({
|
|
9356
|
+
imports(entries) {
|
|
9357
|
+
const map = new Map(entries);
|
|
9358
|
+
observeImports(map, "../commons.js", 0);
|
|
9359
|
+
observeImports(map, "./internal-types.js", 1);
|
|
9360
|
+
observeImports(map, "./types.js", 3);
|
|
9361
|
+
},
|
|
9362
|
+
liveVar: {
|
|
9363
|
+
},
|
|
9364
|
+
onceVar: {
|
|
9365
|
+
makeLoggingConsoleKit: cells[25].makeLoggingConsoleKit.set,
|
|
9366
|
+
makeCausalConsole: cells[25].makeCausalConsole.set,
|
|
9367
|
+
filterConsole: cells[25].filterConsole.set,
|
|
9368
|
+
consoleWhitelist: cells[25].consoleWhitelist.set,
|
|
9369
|
+
BASE_CONSOLE_LEVEL: cells[25].BASE_CONSOLE_LEVEL.set,
|
|
9370
|
+
},
|
|
9371
|
+
});
|
|
9372
|
+
functors[26]({
|
|
9373
|
+
imports(entries) {
|
|
9374
|
+
const map = new Map(entries);
|
|
9375
|
+
observeImports(map, "../commons.js", 0);
|
|
9376
|
+
observeImports(map, "./assert.js", 4);
|
|
9377
|
+
observeImports(map, "./console.js", 25);
|
|
9378
|
+
observeImports(map, "./internal-types.js", 1);
|
|
9379
|
+
observeImports(map, "./types.js", 3);
|
|
9380
|
+
},
|
|
9381
|
+
liveVar: {
|
|
9382
|
+
},
|
|
9383
|
+
onceVar: {
|
|
9384
|
+
tameConsole: cells[26].tameConsole.set,
|
|
9385
|
+
},
|
|
9386
|
+
});
|
|
9387
|
+
functors[27]({
|
|
9388
|
+
imports(entries) {
|
|
9389
|
+
const map = new Map(entries);
|
|
9390
|
+
observeImports(map, "../commons.js", 0);
|
|
9391
|
+
},
|
|
9392
|
+
liveVar: {
|
|
9393
|
+
},
|
|
9394
|
+
onceVar: {
|
|
9395
|
+
filterFileName: cells[27].filterFileName.set,
|
|
9396
|
+
shortenCallSiteString: cells[27].shortenCallSiteString.set,
|
|
9397
|
+
tameV8ErrorConstructor: cells[27].tameV8ErrorConstructor.set,
|
|
9398
|
+
},
|
|
9399
|
+
});
|
|
9400
|
+
functors[28]({
|
|
9401
|
+
imports(entries) {
|
|
9402
|
+
const map = new Map(entries);
|
|
9403
|
+
observeImports(map, "../commons.js", 0);
|
|
9404
|
+
observeImports(map, "../whitelist.js", 14);
|
|
9405
|
+
observeImports(map, "./tame-v8-error-constructor.js", 27);
|
|
9406
|
+
},
|
|
9407
|
+
liveVar: {
|
|
9408
|
+
},
|
|
9409
|
+
onceVar: {
|
|
9410
|
+
default: cells[28].default.set,
|
|
9411
|
+
},
|
|
9412
|
+
});
|
|
9413
|
+
functors[29]({
|
|
9414
|
+
imports(entries) {
|
|
9415
|
+
const map = new Map(entries);
|
|
9416
|
+
observeImports(map, "./commons.js", 0);
|
|
9417
|
+
observeImports(map, "./compartment-shim.js", 20);
|
|
9418
|
+
},
|
|
9419
|
+
liveVar: {
|
|
9420
|
+
},
|
|
9421
|
+
onceVar: {
|
|
9422
|
+
getAnonymousIntrinsics: cells[29].getAnonymousIntrinsics.set,
|
|
9423
|
+
},
|
|
9424
|
+
});
|
|
9425
|
+
functors[30]({
|
|
9426
|
+
imports(entries) {
|
|
9427
|
+
const map = new Map(entries);
|
|
9428
|
+
observeImports(map, "./commons.js", 0);
|
|
9429
|
+
},
|
|
9430
|
+
liveVar: {
|
|
9431
|
+
},
|
|
9432
|
+
onceVar: {
|
|
9433
|
+
makeHardener: cells[30].makeHardener.set,
|
|
9434
|
+
},
|
|
9435
|
+
});
|
|
9436
|
+
functors[31]({
|
|
9437
|
+
imports(entries) {
|
|
9438
|
+
const map = new Map(entries);
|
|
9439
|
+
observeImports(map, "./commons.js", 0);
|
|
9440
|
+
},
|
|
9441
|
+
liveVar: {
|
|
9442
|
+
},
|
|
9443
|
+
onceVar: {
|
|
9444
|
+
default: cells[31].default.set,
|
|
9445
|
+
},
|
|
9446
|
+
});
|
|
9447
|
+
functors[32]({
|
|
9448
|
+
imports(entries) {
|
|
9449
|
+
const map = new Map(entries);
|
|
9450
|
+
observeImports(map, "./commons.js", 0);
|
|
9451
|
+
},
|
|
9452
|
+
liveVar: {
|
|
9453
|
+
},
|
|
9454
|
+
onceVar: {
|
|
9455
|
+
tameDomains: cells[32].tameDomains.set,
|
|
9456
|
+
},
|
|
9457
|
+
});
|
|
9458
|
+
functors[33]({
|
|
9459
|
+
imports(entries) {
|
|
9460
|
+
const map = new Map(entries);
|
|
9461
|
+
observeImports(map, "./commons.js", 0);
|
|
9462
|
+
},
|
|
9463
|
+
liveVar: {
|
|
9464
|
+
},
|
|
9465
|
+
onceVar: {
|
|
9466
|
+
default: cells[33].default.set,
|
|
9467
|
+
},
|
|
9468
|
+
});
|
|
9469
|
+
functors[34]({
|
|
9470
|
+
imports(entries) {
|
|
9471
|
+
const map = new Map(entries);
|
|
9472
|
+
observeImports(map, "./commons.js", 0);
|
|
9473
|
+
},
|
|
9474
|
+
liveVar: {
|
|
9475
|
+
},
|
|
9476
|
+
onceVar: {
|
|
9477
|
+
tameFunctionToString: cells[34].tameFunctionToString.set,
|
|
9478
|
+
},
|
|
9479
|
+
});
|
|
9480
|
+
functors[35]({
|
|
9481
|
+
imports(entries) {
|
|
9482
|
+
const map = new Map(entries);
|
|
9483
|
+
observeImports(map, "./commons.js", 0);
|
|
9484
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9485
|
+
},
|
|
9486
|
+
liveVar: {
|
|
9487
|
+
},
|
|
9488
|
+
onceVar: {
|
|
9489
|
+
default: cells[35].default.set,
|
|
9490
|
+
},
|
|
9491
|
+
});
|
|
9492
|
+
functors[36]({
|
|
9493
|
+
imports(entries) {
|
|
9494
|
+
const map = new Map(entries);
|
|
9495
|
+
observeImports(map, "./commons.js", 0);
|
|
9496
|
+
},
|
|
9497
|
+
liveVar: {
|
|
9498
|
+
},
|
|
9499
|
+
onceVar: {
|
|
9500
|
+
default: cells[36].default.set,
|
|
9501
|
+
},
|
|
9502
|
+
});
|
|
9503
|
+
functors[37]({
|
|
9504
|
+
imports(entries) {
|
|
9505
|
+
const map = new Map(entries);
|
|
9506
|
+
observeImports(map, "./commons.js", 0);
|
|
9507
|
+
},
|
|
9508
|
+
liveVar: {
|
|
9509
|
+
},
|
|
9510
|
+
onceVar: {
|
|
9511
|
+
default: cells[37].default.set,
|
|
9512
|
+
},
|
|
9513
|
+
});
|
|
9514
|
+
functors[38]({
|
|
9515
|
+
imports(entries) {
|
|
9516
|
+
const map = new Map(entries);
|
|
9517
|
+
observeImports(map, "./commons.js", 0);
|
|
9518
|
+
observeImports(map, "./whitelist.js", 14);
|
|
9519
|
+
},
|
|
9520
|
+
liveVar: {
|
|
9521
|
+
},
|
|
9522
|
+
onceVar: {
|
|
9523
|
+
default: cells[38].default.set,
|
|
9524
|
+
},
|
|
9525
|
+
});
|
|
9526
|
+
functors[39]({
|
|
9527
|
+
imports(entries) {
|
|
9528
|
+
const map = new Map(entries);
|
|
9529
|
+
observeImports(map, "./commons.js", 0);
|
|
9530
|
+
observeImports(map, "./compartment-shim.js", 20);
|
|
9531
|
+
observeImports(map, "./enable-property-overrides.js", 23);
|
|
9532
|
+
observeImports(map, "./environment-options.js", 24);
|
|
9533
|
+
observeImports(map, "./error/assert.js", 4);
|
|
9534
|
+
observeImports(map, "./error/stringify-utils.js", 2);
|
|
9535
|
+
observeImports(map, "./error/tame-console.js", 26);
|
|
9536
|
+
observeImports(map, "./error/tame-error-constructor.js", 28);
|
|
9537
|
+
observeImports(map, "./get-anonymous-intrinsics.js", 29);
|
|
9538
|
+
observeImports(map, "./global-object.js", 15);
|
|
9539
|
+
observeImports(map, "./intrinsics.js", 21);
|
|
9540
|
+
observeImports(map, "./make-hardener.js", 30);
|
|
9541
|
+
observeImports(map, "./make-safe-evaluator.js", 10);
|
|
9542
|
+
observeImports(map, "./tame-date-constructor.js", 31);
|
|
9543
|
+
observeImports(map, "./tame-domains.js", 32);
|
|
9544
|
+
observeImports(map, "./tame-function-constructors.js", 33);
|
|
9545
|
+
observeImports(map, "./tame-function-tostring.js", 34);
|
|
9546
|
+
observeImports(map, "./tame-locale-methods.js", 35);
|
|
9547
|
+
observeImports(map, "./tame-math-object.js", 36);
|
|
9548
|
+
observeImports(map, "./tame-regexp-constructor.js", 37);
|
|
9549
|
+
observeImports(map, "./whitelist-intrinsics.js", 38);
|
|
9550
|
+
observeImports(map, "./whitelist.js", 14);
|
|
9551
|
+
},
|
|
9552
|
+
liveVar: {
|
|
9553
|
+
},
|
|
9554
|
+
onceVar: {
|
|
9555
|
+
repairIntrinsics: cells[39].repairIntrinsics.set,
|
|
9556
|
+
lockdown: cells[39].lockdown.set,
|
|
9557
|
+
},
|
|
9558
|
+
});
|
|
9559
|
+
functors[40]({
|
|
9560
|
+
imports(entries) {
|
|
9561
|
+
const map = new Map(entries);
|
|
9562
|
+
observeImports(map, "./src/commons.js", 0);
|
|
9563
|
+
observeImports(map, "./src/compartment-shim.js", 20);
|
|
9564
|
+
observeImports(map, "./src/error/assert.js", 4);
|
|
9565
|
+
observeImports(map, "./src/intrinsics.js", 21);
|
|
9566
|
+
observeImports(map, "./src/lockdown-shim.js", 39);
|
|
9567
|
+
observeImports(map, "./src/tame-function-tostring.js", 34);
|
|
9568
|
+
},
|
|
9569
|
+
liveVar: {
|
|
9570
|
+
},
|
|
9571
|
+
onceVar: {
|
|
9572
|
+
},
|
|
9573
|
+
});
|
|
9574
|
+
})();
|