ses 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ses.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- // ses@2.0.0
1
+ // ses@2.2.0
2
2
  (functors => options => {
3
3
  'use strict';
4
4
 
@@ -71,6 +71,7 @@
71
71
  Uint8Array: cell("Uint8Array"),
72
72
  WeakMap: cell("WeakMap"),
73
73
  WeakSet: cell("WeakSet"),
74
+ Temporal: cell("Temporal"),
74
75
  FERAL_ERROR: cell("FERAL_ERROR"),
75
76
  RangeError: cell("RangeError"),
76
77
  ReferenceError: cell("ReferenceError"),
@@ -81,7 +82,6 @@
81
82
  create: cell("create"),
82
83
  defineProperties: cell("defineProperties"),
83
84
  entries: cell("entries"),
84
- freeze: cell("freeze"),
85
85
  getOwnPropertyDescriptor: cell("getOwnPropertyDescriptor"),
86
86
  getOwnPropertyDescriptors: cell("getOwnPropertyDescriptors"),
87
87
  getOwnPropertyNames: cell("getOwnPropertyNames"),
@@ -97,14 +97,20 @@
97
97
  setPrototypeOf: cell("setPrototypeOf"),
98
98
  values: cell("values"),
99
99
  fromEntries: cell("fromEntries"),
100
+ freeze: cell("freeze"),
100
101
  speciesSymbol: cell("speciesSymbol"),
101
102
  toStringTagSymbol: cell("toStringTagSymbol"),
102
103
  iteratorSymbol: cell("iteratorSymbol"),
103
104
  matchAllSymbol: cell("matchAllSymbol"),
104
105
  replaceSymbol: cell("replaceSymbol"),
106
+ searchSymbol: cell("searchSymbol"),
105
107
  unscopablesSymbol: cell("unscopablesSymbol"),
106
108
  symbolKeyFor: cell("symbolKeyFor"),
107
109
  symbolFor: cell("symbolFor"),
110
+ max: cell("max"),
111
+ min: cell("min"),
112
+ trunc: cell("trunc"),
113
+ MAX_SAFE_INTEGER: cell("MAX_SAFE_INTEGER"),
108
114
  isInteger: cell("isInteger"),
109
115
  stringifyJson: cell("stringifyJson"),
110
116
  defineProperty: cell("defineProperty"),
@@ -120,6 +126,7 @@
120
126
  isArray: cell("isArray"),
121
127
  arrayPrototype: cell("arrayPrototype"),
122
128
  arrayBufferPrototype: cell("arrayBufferPrototype"),
129
+ dataViewPrototype: cell("dataViewPrototype"),
123
130
  mapPrototype: cell("mapPrototype"),
124
131
  proxyRevocable: cell("proxyRevocable"),
125
132
  regexpPrototype: cell("regexpPrototype"),
@@ -162,8 +169,10 @@
162
169
  iterateSet: cell("iterateSet"),
163
170
  regexpExec: cell("regexpExec"),
164
171
  regexpReplace: cell("regexpReplace"),
172
+ regexpSearch: cell("regexpSearch"),
165
173
  matchAllRegExp: cell("matchAllRegExp"),
166
174
  sealRegexp: cell("sealRegexp"),
175
+ freezeRegexp: cell("freezeRegexp"),
167
176
  stringEndsWith: cell("stringEndsWith"),
168
177
  stringIncludes: cell("stringIncludes"),
169
178
  stringIndexOf: cell("stringIndexOf"),
@@ -283,6 +292,9 @@
283
292
  {
284
293
  default: cell("default"),
285
294
  },
295
+ {
296
+ default: cell("default"),
297
+ },
286
298
  {
287
299
  tameNaNSideChannel: cell("tameNaNSideChannel"),
288
300
  },
@@ -504,6 +516,7 @@ function observeImports(map, importName, importIndex) {
504
516
  Uint8Array: cells[0].Uint8Array.set,
505
517
  WeakMap: cells[0].WeakMap.set,
506
518
  WeakSet: cells[0].WeakSet.set,
519
+ Temporal: cells[0].Temporal.set,
507
520
  FERAL_ERROR: cells[0].FERAL_ERROR.set,
508
521
  RangeError: cells[0].RangeError.set,
509
522
  ReferenceError: cells[0].ReferenceError.set,
@@ -514,7 +527,6 @@ function observeImports(map, importName, importIndex) {
514
527
  create: cells[0].create.set,
515
528
  defineProperties: cells[0].defineProperties.set,
516
529
  entries: cells[0].entries.set,
517
- freeze: cells[0].freeze.set,
518
530
  getOwnPropertyDescriptor: cells[0].getOwnPropertyDescriptor.set,
519
531
  getOwnPropertyDescriptors: cells[0].getOwnPropertyDescriptors.set,
520
532
  getOwnPropertyNames: cells[0].getOwnPropertyNames.set,
@@ -530,14 +542,20 @@ function observeImports(map, importName, importIndex) {
530
542
  setPrototypeOf: cells[0].setPrototypeOf.set,
531
543
  values: cells[0].values.set,
532
544
  fromEntries: cells[0].fromEntries.set,
545
+ freeze: cells[0].freeze.set,
533
546
  speciesSymbol: cells[0].speciesSymbol.set,
534
547
  toStringTagSymbol: cells[0].toStringTagSymbol.set,
535
548
  iteratorSymbol: cells[0].iteratorSymbol.set,
536
549
  matchAllSymbol: cells[0].matchAllSymbol.set,
537
550
  replaceSymbol: cells[0].replaceSymbol.set,
551
+ searchSymbol: cells[0].searchSymbol.set,
538
552
  unscopablesSymbol: cells[0].unscopablesSymbol.set,
539
553
  symbolKeyFor: cells[0].symbolKeyFor.set,
540
554
  symbolFor: cells[0].symbolFor.set,
555
+ max: cells[0].max.set,
556
+ min: cells[0].min.set,
557
+ trunc: cells[0].trunc.set,
558
+ MAX_SAFE_INTEGER: cells[0].MAX_SAFE_INTEGER.set,
541
559
  isInteger: cells[0].isInteger.set,
542
560
  stringifyJson: cells[0].stringifyJson.set,
543
561
  defineProperty: cells[0].defineProperty.set,
@@ -553,6 +571,7 @@ function observeImports(map, importName, importIndex) {
553
571
  isArray: cells[0].isArray.set,
554
572
  arrayPrototype: cells[0].arrayPrototype.set,
555
573
  arrayBufferPrototype: cells[0].arrayBufferPrototype.set,
574
+ dataViewPrototype: cells[0].dataViewPrototype.set,
556
575
  mapPrototype: cells[0].mapPrototype.set,
557
576
  proxyRevocable: cells[0].proxyRevocable.set,
558
577
  regexpPrototype: cells[0].regexpPrototype.set,
@@ -595,8 +614,10 @@ function observeImports(map, importName, importIndex) {
595
614
  iterateSet: cells[0].iterateSet.set,
596
615
  regexpExec: cells[0].regexpExec.set,
597
616
  regexpReplace: cells[0].regexpReplace.set,
617
+ regexpSearch: cells[0].regexpSearch.set,
598
618
  matchAllRegExp: cells[0].matchAllRegExp.set,
599
619
  sealRegexp: cells[0].sealRegexp.set,
620
+ freezeRegexp: cells[0].freezeRegexp.set,
600
621
  stringEndsWith: cells[0].stringEndsWith.set,
601
622
  stringIncludes: cells[0].stringIncludes.set,
602
623
  stringIndexOf: cells[0].stringIndexOf.set,
@@ -914,11 +935,12 @@ function observeImports(map, importName, importIndex) {
914
935
  imports(entries) {
915
936
  const map = new Map(entries);
916
937
  observeImports(map, "./commons.js", 0);
938
+ observeImports(map, "./permits.js", 16);
917
939
  },
918
940
  liveVar: {
919
941
  },
920
942
  onceVar: {
921
- tameNaNSideChannel: cells[22].tameNaNSideChannel.set,
943
+ default: cells[22].default.set,
922
944
  },
923
945
  importMeta: {},
924
946
  });
@@ -930,7 +952,7 @@ function observeImports(map, importName, importIndex) {
930
952
  liveVar: {
931
953
  },
932
954
  onceVar: {
933
- default: cells[23].default.set,
955
+ tameNaNSideChannel: cells[23].tameNaNSideChannel.set,
934
956
  },
935
957
  importMeta: {},
936
958
  });
@@ -942,9 +964,7 @@ function observeImports(map, importName, importIndex) {
942
964
  liveVar: {
943
965
  },
944
966
  onceVar: {
945
- minEnablements: cells[24].minEnablements.set,
946
- moderateEnablements: cells[24].moderateEnablements.set,
947
- severeEnablements: cells[24].severeEnablements.set,
967
+ default: cells[24].default.set,
948
968
  },
949
969
  importMeta: {},
950
970
  });
@@ -952,12 +972,13 @@ function observeImports(map, importName, importIndex) {
952
972
  imports(entries) {
953
973
  const map = new Map(entries);
954
974
  observeImports(map, "./commons.js", 0);
955
- observeImports(map, "./enablements.js", 24);
956
975
  },
957
976
  liveVar: {
958
977
  },
959
978
  onceVar: {
960
- default: cells[25].default.set,
979
+ minEnablements: cells[25].minEnablements.set,
980
+ moderateEnablements: cells[25].moderateEnablements.set,
981
+ severeEnablements: cells[25].severeEnablements.set,
961
982
  },
962
983
  importMeta: {},
963
984
  });
@@ -965,7 +986,7 @@ function observeImports(map, importName, importIndex) {
965
986
  imports(entries) {
966
987
  const map = new Map(entries);
967
988
  observeImports(map, "./commons.js", 0);
968
- observeImports(map, "./error/assert.js", 13);
989
+ observeImports(map, "./enablements.js", 25);
969
990
  },
970
991
  liveVar: {
971
992
  },
@@ -977,24 +998,24 @@ function observeImports(map, importName, importIndex) {
977
998
  functors[27]({
978
999
  imports(entries) {
979
1000
  const map = new Map(entries);
1001
+ observeImports(map, "./commons.js", 0);
1002
+ observeImports(map, "./error/assert.js", 13);
980
1003
  },
981
1004
  liveVar: {
982
1005
  },
983
1006
  onceVar: {
984
- makeEvalFunction: cells[27].makeEvalFunction.set,
1007
+ default: cells[27].default.set,
985
1008
  },
986
1009
  importMeta: {},
987
1010
  });
988
1011
  functors[28]({
989
1012
  imports(entries) {
990
1013
  const map = new Map(entries);
991
- observeImports(map, "./commons.js", 0);
992
- observeImports(map, "./error/assert.js", 13);
993
1014
  },
994
1015
  liveVar: {
995
1016
  },
996
1017
  onceVar: {
997
- makeFunctionConstructor: cells[28].makeFunctionConstructor.set,
1018
+ makeEvalFunction: cells[28].makeEvalFunction.set,
998
1019
  },
999
1020
  importMeta: {},
1000
1021
  });
@@ -1002,17 +1023,12 @@ function observeImports(map, importName, importIndex) {
1002
1023
  imports(entries) {
1003
1024
  const map = new Map(entries);
1004
1025
  observeImports(map, "./commons.js", 0);
1005
- observeImports(map, "./make-eval-function.js", 27);
1006
- observeImports(map, "./make-function-constructor.js", 28);
1007
- observeImports(map, "./permits.js", 16);
1026
+ observeImports(map, "./error/assert.js", 13);
1008
1027
  },
1009
1028
  liveVar: {
1010
1029
  },
1011
1030
  onceVar: {
1012
- setGlobalObjectSymbolUnscopables: cells[29].setGlobalObjectSymbolUnscopables.set,
1013
- setGlobalObjectConstantProperties: cells[29].setGlobalObjectConstantProperties.set,
1014
- setGlobalObjectMutableProperties: cells[29].setGlobalObjectMutableProperties.set,
1015
- setGlobalObjectEvaluators: cells[29].setGlobalObjectEvaluators.set,
1031
+ makeFunctionConstructor: cells[29].makeFunctionConstructor.set,
1016
1032
  },
1017
1033
  importMeta: {},
1018
1034
  });
@@ -1020,14 +1036,17 @@ function observeImports(map, importName, importIndex) {
1020
1036
  imports(entries) {
1021
1037
  const map = new Map(entries);
1022
1038
  observeImports(map, "./commons.js", 0);
1023
- observeImports(map, "./error/assert.js", 13);
1039
+ observeImports(map, "./make-eval-function.js", 28);
1040
+ observeImports(map, "./make-function-constructor.js", 29);
1041
+ observeImports(map, "./permits.js", 16);
1024
1042
  },
1025
1043
  liveVar: {
1026
1044
  },
1027
1045
  onceVar: {
1028
- alwaysThrowHandler: cells[30].alwaysThrowHandler.set,
1029
- strictScopeTerminatorHandler: cells[30].strictScopeTerminatorHandler.set,
1030
- strictScopeTerminator: cells[30].strictScopeTerminator.set,
1046
+ setGlobalObjectSymbolUnscopables: cells[30].setGlobalObjectSymbolUnscopables.set,
1047
+ setGlobalObjectConstantProperties: cells[30].setGlobalObjectConstantProperties.set,
1048
+ setGlobalObjectMutableProperties: cells[30].setGlobalObjectMutableProperties.set,
1049
+ setGlobalObjectEvaluators: cells[30].setGlobalObjectEvaluators.set,
1031
1050
  },
1032
1051
  importMeta: {},
1033
1052
  });
@@ -1035,12 +1054,14 @@ function observeImports(map, importName, importIndex) {
1035
1054
  imports(entries) {
1036
1055
  const map = new Map(entries);
1037
1056
  observeImports(map, "./commons.js", 0);
1038
- observeImports(map, "./strict-scope-terminator.js", 30);
1057
+ observeImports(map, "./error/assert.js", 13);
1039
1058
  },
1040
1059
  liveVar: {
1041
1060
  },
1042
1061
  onceVar: {
1043
- createSloppyGlobalsScopeTerminator: cells[31].createSloppyGlobalsScopeTerminator.set,
1062
+ alwaysThrowHandler: cells[31].alwaysThrowHandler.set,
1063
+ strictScopeTerminatorHandler: cells[31].strictScopeTerminatorHandler.set,
1064
+ strictScopeTerminator: cells[31].strictScopeTerminator.set,
1044
1065
  },
1045
1066
  importMeta: {},
1046
1067
  });
@@ -1048,12 +1069,12 @@ function observeImports(map, importName, importIndex) {
1048
1069
  imports(entries) {
1049
1070
  const map = new Map(entries);
1050
1071
  observeImports(map, "./commons.js", 0);
1051
- observeImports(map, "./error/assert.js", 13);
1072
+ observeImports(map, "./strict-scope-terminator.js", 31);
1052
1073
  },
1053
1074
  liveVar: {
1054
1075
  },
1055
1076
  onceVar: {
1056
- makeEvalScopeKit: cells[32].makeEvalScopeKit.set,
1077
+ createSloppyGlobalsScopeTerminator: cells[32].createSloppyGlobalsScopeTerminator.set,
1057
1078
  },
1058
1079
  importMeta: {},
1059
1080
  });
@@ -1061,11 +1082,12 @@ function observeImports(map, importName, importIndex) {
1061
1082
  imports(entries) {
1062
1083
  const map = new Map(entries);
1063
1084
  observeImports(map, "./commons.js", 0);
1085
+ observeImports(map, "./error/assert.js", 13);
1064
1086
  },
1065
1087
  liveVar: {
1066
1088
  },
1067
1089
  onceVar: {
1068
- getSourceURL: cells[33].getSourceURL.set,
1090
+ makeEvalScopeKit: cells[33].makeEvalScopeKit.set,
1069
1091
  },
1070
1092
  importMeta: {},
1071
1093
  });
@@ -1073,19 +1095,11 @@ function observeImports(map, importName, importIndex) {
1073
1095
  imports(entries) {
1074
1096
  const map = new Map(entries);
1075
1097
  observeImports(map, "./commons.js", 0);
1076
- observeImports(map, "./get-source-url.js", 33);
1077
1098
  },
1078
1099
  liveVar: {
1079
1100
  },
1080
1101
  onceVar: {
1081
- rejectHtmlComments: cells[34].rejectHtmlComments.set,
1082
- evadeHtmlCommentTest: cells[34].evadeHtmlCommentTest.set,
1083
- rejectImportExpressions: cells[34].rejectImportExpressions.set,
1084
- evadeImportExpressionTest: cells[34].evadeImportExpressionTest.set,
1085
- rejectSomeDirectEvalExpressions: cells[34].rejectSomeDirectEvalExpressions.set,
1086
- mandatoryTransforms: cells[34].mandatoryTransforms.set,
1087
- applyTransforms: cells[34].applyTransforms.set,
1088
- transforms: cells[34].transforms.set,
1102
+ getSourceURL: cells[34].getSourceURL.set,
1089
1103
  },
1090
1104
  importMeta: {},
1091
1105
  });
@@ -1093,12 +1107,19 @@ function observeImports(map, importName, importIndex) {
1093
1107
  imports(entries) {
1094
1108
  const map = new Map(entries);
1095
1109
  observeImports(map, "./commons.js", 0);
1110
+ observeImports(map, "./get-source-url.js", 34);
1096
1111
  },
1097
1112
  liveVar: {
1098
1113
  },
1099
1114
  onceVar: {
1100
- isValidIdentifierName: cells[35].isValidIdentifierName.set,
1101
- getScopeConstants: cells[35].getScopeConstants.set,
1115
+ rejectHtmlComments: cells[35].rejectHtmlComments.set,
1116
+ evadeHtmlCommentTest: cells[35].evadeHtmlCommentTest.set,
1117
+ rejectImportExpressions: cells[35].rejectImportExpressions.set,
1118
+ evadeImportExpressionTest: cells[35].evadeImportExpressionTest.set,
1119
+ rejectSomeDirectEvalExpressions: cells[35].rejectSomeDirectEvalExpressions.set,
1120
+ mandatoryTransforms: cells[35].mandatoryTransforms.set,
1121
+ applyTransforms: cells[35].applyTransforms.set,
1122
+ transforms: cells[35].transforms.set,
1102
1123
  },
1103
1124
  importMeta: {},
1104
1125
  });
@@ -1106,12 +1127,12 @@ function observeImports(map, importName, importIndex) {
1106
1127
  imports(entries) {
1107
1128
  const map = new Map(entries);
1108
1129
  observeImports(map, "./commons.js", 0);
1109
- observeImports(map, "./scope-constants.js", 35);
1110
1130
  },
1111
1131
  liveVar: {
1112
1132
  },
1113
1133
  onceVar: {
1114
- makeEvaluate: cells[36].makeEvaluate.set,
1134
+ isValidIdentifierName: cells[36].isValidIdentifierName.set,
1135
+ getScopeConstants: cells[36].getScopeConstants.set,
1115
1136
  },
1116
1137
  importMeta: {},
1117
1138
  });
@@ -1119,17 +1140,12 @@ function observeImports(map, importName, importIndex) {
1119
1140
  imports(entries) {
1120
1141
  const map = new Map(entries);
1121
1142
  observeImports(map, "./commons.js", 0);
1122
- observeImports(map, "./strict-scope-terminator.js", 30);
1123
- observeImports(map, "./sloppy-globals-scope-terminator.js", 31);
1124
- observeImports(map, "./eval-scope.js", 32);
1125
- observeImports(map, "./transforms.js", 34);
1126
- observeImports(map, "./make-evaluate.js", 36);
1127
- observeImports(map, "./error/assert.js", 13);
1143
+ observeImports(map, "./scope-constants.js", 36);
1128
1144
  },
1129
1145
  liveVar: {
1130
1146
  },
1131
1147
  onceVar: {
1132
- makeSafeEvaluator: cells[37].makeSafeEvaluator.set,
1148
+ makeEvaluate: cells[37].makeEvaluate.set,
1133
1149
  },
1134
1150
  importMeta: {},
1135
1151
  });
@@ -1137,11 +1153,17 @@ function observeImports(map, importName, importIndex) {
1137
1153
  imports(entries) {
1138
1154
  const map = new Map(entries);
1139
1155
  observeImports(map, "./commons.js", 0);
1156
+ observeImports(map, "./strict-scope-terminator.js", 31);
1157
+ observeImports(map, "./sloppy-globals-scope-terminator.js", 32);
1158
+ observeImports(map, "./eval-scope.js", 33);
1159
+ observeImports(map, "./transforms.js", 35);
1160
+ observeImports(map, "./make-evaluate.js", 37);
1161
+ observeImports(map, "./error/assert.js", 13);
1140
1162
  },
1141
1163
  liveVar: {
1142
1164
  },
1143
1165
  onceVar: {
1144
- tameFunctionToString: cells[38].tameFunctionToString.set,
1166
+ makeSafeEvaluator: cells[38].makeSafeEvaluator.set,
1145
1167
  },
1146
1168
  importMeta: {},
1147
1169
  });
@@ -1153,7 +1175,7 @@ function observeImports(map, importName, importIndex) {
1153
1175
  liveVar: {
1154
1176
  },
1155
1177
  onceVar: {
1156
- tameDomains: cells[39].tameDomains.set,
1178
+ tameFunctionToString: cells[39].tameFunctionToString.set,
1157
1179
  },
1158
1180
  importMeta: {},
1159
1181
  });
@@ -1165,25 +1187,19 @@ function observeImports(map, importName, importIndex) {
1165
1187
  liveVar: {
1166
1188
  },
1167
1189
  onceVar: {
1168
- tameModuleSource: cells[40].tameModuleSource.set,
1190
+ tameDomains: cells[40].tameDomains.set,
1169
1191
  },
1170
1192
  importMeta: {},
1171
1193
  });
1172
1194
  functors[41]({
1173
1195
  imports(entries) {
1174
1196
  const map = new Map(entries);
1175
- observeImports(map, "../commons.js", 0);
1197
+ observeImports(map, "./commons.js", 0);
1176
1198
  },
1177
1199
  liveVar: {
1178
1200
  },
1179
1201
  onceVar: {
1180
- consoleLevelMethods: cells[41].consoleLevelMethods.set,
1181
- consoleOtherMethods: cells[41].consoleOtherMethods.set,
1182
- makeLoggingConsoleKit: cells[41].makeLoggingConsoleKit.set,
1183
- pumpLogToConsole: cells[41].pumpLogToConsole.set,
1184
- makeCausalConsole: cells[41].makeCausalConsole.set,
1185
- defineCausalConsoleFromLogger: cells[41].defineCausalConsoleFromLogger.set,
1186
- filterConsole: cells[41].filterConsole.set,
1202
+ tameModuleSource: cells[41].tameModuleSource.set,
1187
1203
  },
1188
1204
  importMeta: {},
1189
1205
  });
@@ -1195,7 +1211,13 @@ function observeImports(map, importName, importIndex) {
1195
1211
  liveVar: {
1196
1212
  },
1197
1213
  onceVar: {
1198
- makeRejectionHandlers: cells[42].makeRejectionHandlers.set,
1214
+ consoleLevelMethods: cells[42].consoleLevelMethods.set,
1215
+ consoleOtherMethods: cells[42].consoleOtherMethods.set,
1216
+ makeLoggingConsoleKit: cells[42].makeLoggingConsoleKit.set,
1217
+ pumpLogToConsole: cells[42].pumpLogToConsole.set,
1218
+ makeCausalConsole: cells[42].makeCausalConsole.set,
1219
+ defineCausalConsoleFromLogger: cells[42].defineCausalConsoleFromLogger.set,
1220
+ filterConsole: cells[42].filterConsole.set,
1199
1221
  },
1200
1222
  importMeta: {},
1201
1223
  });
@@ -1203,14 +1225,11 @@ function observeImports(map, importName, importIndex) {
1203
1225
  imports(entries) {
1204
1226
  const map = new Map(entries);
1205
1227
  observeImports(map, "../commons.js", 0);
1206
- observeImports(map, "./assert.js", 13);
1207
- observeImports(map, "./console.js", 41);
1208
- observeImports(map, "./unhandled-rejection.js", 42);
1209
1228
  },
1210
1229
  liveVar: {
1211
1230
  },
1212
1231
  onceVar: {
1213
- tameConsole: cells[43].tameConsole.set,
1232
+ makeRejectionHandlers: cells[43].makeRejectionHandlers.set,
1214
1233
  },
1215
1234
  importMeta: {},
1216
1235
  });
@@ -1218,13 +1237,14 @@ function observeImports(map, importName, importIndex) {
1218
1237
  imports(entries) {
1219
1238
  const map = new Map(entries);
1220
1239
  observeImports(map, "../commons.js", 0);
1240
+ observeImports(map, "./assert.js", 13);
1241
+ observeImports(map, "./console.js", 42);
1242
+ observeImports(map, "./unhandled-rejection.js", 43);
1221
1243
  },
1222
1244
  liveVar: {
1223
1245
  },
1224
1246
  onceVar: {
1225
- filterFileName: cells[44].filterFileName.set,
1226
- shortenCallSiteString: cells[44].shortenCallSiteString.set,
1227
- tameV8ErrorConstructor: cells[44].tameV8ErrorConstructor.set,
1247
+ tameConsole: cells[44].tameConsole.set,
1228
1248
  },
1229
1249
  importMeta: {},
1230
1250
  });
@@ -1232,75 +1252,73 @@ function observeImports(map, importName, importIndex) {
1232
1252
  imports(entries) {
1233
1253
  const map = new Map(entries);
1234
1254
  observeImports(map, "../commons.js", 0);
1235
- observeImports(map, "../permits.js", 16);
1236
- observeImports(map, "./tame-v8-error-constructor.js", 44);
1237
1255
  },
1238
1256
  liveVar: {
1239
1257
  },
1240
1258
  onceVar: {
1241
- default: cells[45].default.set,
1259
+ filterFileName: cells[45].filterFileName.set,
1260
+ shortenCallSiteString: cells[45].shortenCallSiteString.set,
1261
+ tameV8ErrorConstructor: cells[45].tameV8ErrorConstructor.set,
1242
1262
  },
1243
1263
  importMeta: {},
1244
1264
  });
1245
1265
  functors[46]({
1246
1266
  imports(entries) {
1247
1267
  const map = new Map(entries);
1248
- observeImports(map, "@endo/env-options", 3);
1249
- observeImports(map, "./commons.js", 0);
1250
- observeImports(map, "./error/assert.js", 13);
1268
+ observeImports(map, "../commons.js", 0);
1269
+ observeImports(map, "../permits.js", 16);
1270
+ observeImports(map, "./tame-v8-error-constructor.js", 45);
1251
1271
  },
1252
1272
  liveVar: {
1253
1273
  },
1254
1274
  onceVar: {
1255
- makeAlias: cells[46].makeAlias.set,
1256
- load: cells[46].load.set,
1257
- loadNow: cells[46].loadNow.set,
1275
+ default: cells[46].default.set,
1258
1276
  },
1259
1277
  importMeta: {},
1260
1278
  });
1261
1279
  functors[47]({
1262
1280
  imports(entries) {
1263
1281
  const map = new Map(entries);
1264
- observeImports(map, "./module-load.js", 46);
1282
+ observeImports(map, "@endo/env-options", 3);
1265
1283
  observeImports(map, "./commons.js", 0);
1266
1284
  observeImports(map, "./error/assert.js", 13);
1267
1285
  },
1268
1286
  liveVar: {
1269
1287
  },
1270
1288
  onceVar: {
1271
- deferExports: cells[47].deferExports.set,
1272
- getDeferredExports: cells[47].getDeferredExports.set,
1289
+ makeAlias: cells[47].makeAlias.set,
1290
+ load: cells[47].load.set,
1291
+ loadNow: cells[47].loadNow.set,
1273
1292
  },
1274
1293
  importMeta: {},
1275
1294
  });
1276
1295
  functors[48]({
1277
1296
  imports(entries) {
1278
1297
  const map = new Map(entries);
1298
+ observeImports(map, "./module-load.js", 47);
1279
1299
  observeImports(map, "./commons.js", 0);
1280
- observeImports(map, "./transforms.js", 34);
1281
- observeImports(map, "./make-safe-evaluator.js", 37);
1300
+ observeImports(map, "./error/assert.js", 13);
1282
1301
  },
1283
1302
  liveVar: {
1284
1303
  },
1285
1304
  onceVar: {
1286
- provideCompartmentEvaluator: cells[48].provideCompartmentEvaluator.set,
1287
- compartmentEvaluate: cells[48].compartmentEvaluate.set,
1305
+ deferExports: cells[48].deferExports.set,
1306
+ getDeferredExports: cells[48].getDeferredExports.set,
1288
1307
  },
1289
1308
  importMeta: {},
1290
1309
  });
1291
1310
  functors[49]({
1292
1311
  imports(entries) {
1293
1312
  const map = new Map(entries);
1294
- observeImports(map, "./error/assert.js", 13);
1295
- observeImports(map, "./module-proxy.js", 47);
1296
1313
  observeImports(map, "./commons.js", 0);
1297
- observeImports(map, "./compartment-evaluate.js", 48);
1314
+ observeImports(map, "./transforms.js", 35);
1315
+ observeImports(map, "./make-safe-evaluator.js", 38);
1298
1316
  },
1299
1317
  liveVar: {
1300
1318
  },
1301
1319
  onceVar: {
1302
- makeVirtualModuleInstance: cells[49].makeVirtualModuleInstance.set,
1303
- makeModuleInstance: cells[49].makeModuleInstance.set,
1320
+ provideCompartmentEvaluator: cells[49].provideCompartmentEvaluator.set,
1321
+ compartmentEvaluate: cells[49].compartmentEvaluate.set,
1304
1322
  },
1305
1323
  importMeta: {},
1306
1324
  });
@@ -1308,37 +1326,30 @@ function observeImports(map, importName, importIndex) {
1308
1326
  imports(entries) {
1309
1327
  const map = new Map(entries);
1310
1328
  observeImports(map, "./error/assert.js", 13);
1311
- observeImports(map, "./module-instance.js", 49);
1329
+ observeImports(map, "./module-proxy.js", 48);
1312
1330
  observeImports(map, "./commons.js", 0);
1331
+ observeImports(map, "./compartment-evaluate.js", 49);
1313
1332
  },
1314
1333
  liveVar: {
1315
1334
  },
1316
1335
  onceVar: {
1317
- link: cells[50].link.set,
1318
- instantiate: cells[50].instantiate.set,
1336
+ makeVirtualModuleInstance: cells[50].makeVirtualModuleInstance.set,
1337
+ makeModuleInstance: cells[50].makeModuleInstance.set,
1319
1338
  },
1320
1339
  importMeta: {},
1321
1340
  });
1322
1341
  functors[51]({
1323
1342
  imports(entries) {
1324
1343
  const map = new Map(entries);
1325
- observeImports(map, "./commons.js", 0);
1326
- observeImports(map, "./global-object.js", 29);
1327
1344
  observeImports(map, "./error/assert.js", 13);
1328
- observeImports(map, "./permits.js", 16);
1329
- observeImports(map, "./module-load.js", 46);
1330
- observeImports(map, "./module-link.js", 50);
1331
- observeImports(map, "./module-proxy.js", 47);
1332
- observeImports(map, "./compartment-evaluate.js", 48);
1333
- observeImports(map, "./make-safe-evaluator.js", 37);
1345
+ observeImports(map, "./module-instance.js", 50);
1346
+ observeImports(map, "./commons.js", 0);
1334
1347
  },
1335
1348
  liveVar: {
1336
1349
  },
1337
1350
  onceVar: {
1338
- InertCompartment: cells[51].InertCompartment.set,
1339
- CompartmentPrototype: cells[51].CompartmentPrototype.set,
1340
- compartmentOptions: cells[51].compartmentOptions.set,
1341
- makeCompartmentConstructor: cells[51].makeCompartmentConstructor.set,
1351
+ link: cells[51].link.set,
1352
+ instantiate: cells[51].instantiate.set,
1342
1353
  },
1343
1354
  importMeta: {},
1344
1355
  });
@@ -1346,12 +1357,22 @@ function observeImports(map, importName, importIndex) {
1346
1357
  imports(entries) {
1347
1358
  const map = new Map(entries);
1348
1359
  observeImports(map, "./commons.js", 0);
1349
- observeImports(map, "./compartment.js", 51);
1360
+ observeImports(map, "./global-object.js", 30);
1361
+ observeImports(map, "./error/assert.js", 13);
1362
+ observeImports(map, "./permits.js", 16);
1363
+ observeImports(map, "./module-load.js", 47);
1364
+ observeImports(map, "./module-link.js", 51);
1365
+ observeImports(map, "./module-proxy.js", 48);
1366
+ observeImports(map, "./compartment-evaluate.js", 49);
1367
+ observeImports(map, "./make-safe-evaluator.js", 38);
1350
1368
  },
1351
1369
  liveVar: {
1352
1370
  },
1353
1371
  onceVar: {
1354
- getAnonymousIntrinsics: cells[52].getAnonymousIntrinsics.set,
1372
+ InertCompartment: cells[52].InertCompartment.set,
1373
+ CompartmentPrototype: cells[52].CompartmentPrototype.set,
1374
+ compartmentOptions: cells[52].compartmentOptions.set,
1375
+ makeCompartmentConstructor: cells[52].makeCompartmentConstructor.set,
1355
1376
  },
1356
1377
  importMeta: {},
1357
1378
  });
@@ -1359,11 +1380,12 @@ function observeImports(map, importName, importIndex) {
1359
1380
  imports(entries) {
1360
1381
  const map = new Map(entries);
1361
1382
  observeImports(map, "./commons.js", 0);
1383
+ observeImports(map, "./compartment.js", 52);
1362
1384
  },
1363
1385
  liveVar: {
1364
1386
  },
1365
1387
  onceVar: {
1366
- tameHarden: cells[53].tameHarden.set,
1388
+ getAnonymousIntrinsics: cells[53].getAnonymousIntrinsics.set,
1367
1389
  },
1368
1390
  importMeta: {},
1369
1391
  });
@@ -1375,7 +1397,7 @@ function observeImports(map, importName, importIndex) {
1375
1397
  liveVar: {
1376
1398
  },
1377
1399
  onceVar: {
1378
- tameSymbolConstructor: cells[54].tameSymbolConstructor.set,
1400
+ tameHarden: cells[54].tameHarden.set,
1379
1401
  },
1380
1402
  importMeta: {},
1381
1403
  });
@@ -1387,8 +1409,7 @@ function observeImports(map, importName, importIndex) {
1387
1409
  liveVar: {
1388
1410
  },
1389
1411
  onceVar: {
1390
- tameFauxDataProperty: cells[55].tameFauxDataProperty.set,
1391
- tameFauxDataProperties: cells[55].tameFauxDataProperties.set,
1412
+ tameSymbolConstructor: cells[55].tameSymbolConstructor.set,
1392
1413
  },
1393
1414
  importMeta: {},
1394
1415
  });
@@ -1400,7 +1421,8 @@ function observeImports(map, importName, importIndex) {
1400
1421
  liveVar: {
1401
1422
  },
1402
1423
  onceVar: {
1403
- tameRegeneratorRuntime: cells[56].tameRegeneratorRuntime.set,
1424
+ tameFauxDataProperty: cells[56].tameFauxDataProperty.set,
1425
+ tameFauxDataProperties: cells[56].tameFauxDataProperties.set,
1404
1426
  },
1405
1427
  importMeta: {},
1406
1428
  });
@@ -1412,7 +1434,7 @@ function observeImports(map, importName, importIndex) {
1412
1434
  liveVar: {
1413
1435
  },
1414
1436
  onceVar: {
1415
- shimArrayBufferTransfer: cells[57].shimArrayBufferTransfer.set,
1437
+ tameRegeneratorRuntime: cells[57].tameRegeneratorRuntime.set,
1416
1438
  },
1417
1439
  importMeta: {},
1418
1440
  });
@@ -1420,17 +1442,29 @@ function observeImports(map, importName, importIndex) {
1420
1442
  imports(entries) {
1421
1443
  const map = new Map(entries);
1422
1444
  observeImports(map, "./commons.js", 0);
1423
- observeImports(map, "./error/assert.js", 13);
1424
1445
  },
1425
1446
  liveVar: {
1426
1447
  },
1427
1448
  onceVar: {
1428
- chooseReporter: cells[58].chooseReporter.set,
1429
- reportInGroup: cells[58].reportInGroup.set,
1449
+ shimArrayBufferTransfer: cells[58].shimArrayBufferTransfer.set,
1430
1450
  },
1431
1451
  importMeta: {},
1432
1452
  });
1433
1453
  functors[59]({
1454
+ imports(entries) {
1455
+ const map = new Map(entries);
1456
+ observeImports(map, "./commons.js", 0);
1457
+ observeImports(map, "./error/assert.js", 13);
1458
+ },
1459
+ liveVar: {
1460
+ },
1461
+ onceVar: {
1462
+ chooseReporter: cells[59].chooseReporter.set,
1463
+ reportInGroup: cells[59].reportInGroup.set,
1464
+ },
1465
+ importMeta: {},
1466
+ });
1467
+ functors[60]({
1434
1468
  imports(entries) {
1435
1469
  const map = new Map(entries);
1436
1470
  observeImports(map, "@endo/env-options", 3);
@@ -1442,41 +1476,42 @@ function observeImports(map, importName, importIndex) {
1442
1476
  observeImports(map, "./tame-function-constructors.js", 19);
1443
1477
  observeImports(map, "./tame-date-constructor.js", 20);
1444
1478
  observeImports(map, "./tame-math-object.js", 21);
1445
- observeImports(map, "./tame-nan-sidechannel.js", 22);
1446
- observeImports(map, "./tame-regexp-constructor.js", 23);
1447
- observeImports(map, "./enable-property-overrides.js", 25);
1448
- observeImports(map, "./tame-locale-methods.js", 26);
1449
- observeImports(map, "./global-object.js", 29);
1450
- observeImports(map, "./make-safe-evaluator.js", 37);
1479
+ observeImports(map, "./tame-temporal-object.js", 22);
1480
+ observeImports(map, "./tame-nan-sidechannel.js", 23);
1481
+ observeImports(map, "./tame-regexp-constructor.js", 24);
1482
+ observeImports(map, "./enable-property-overrides.js", 26);
1483
+ observeImports(map, "./tame-locale-methods.js", 27);
1484
+ observeImports(map, "./global-object.js", 30);
1485
+ observeImports(map, "./make-safe-evaluator.js", 38);
1451
1486
  observeImports(map, "./permits.js", 16);
1452
- observeImports(map, "./tame-function-tostring.js", 38);
1453
- observeImports(map, "./tame-domains.js", 39);
1454
- observeImports(map, "./tame-module-source.js", 40);
1455
- observeImports(map, "./error/tame-console.js", 43);
1456
- observeImports(map, "./error/tame-error-constructor.js", 45);
1487
+ observeImports(map, "./tame-function-tostring.js", 39);
1488
+ observeImports(map, "./tame-domains.js", 40);
1489
+ observeImports(map, "./tame-module-source.js", 41);
1490
+ observeImports(map, "./error/tame-console.js", 44);
1491
+ observeImports(map, "./error/tame-error-constructor.js", 46);
1457
1492
  observeImports(map, "./error/assert.js", 13);
1458
- observeImports(map, "./get-anonymous-intrinsics.js", 52);
1459
- observeImports(map, "./compartment.js", 51);
1460
- observeImports(map, "./tame-harden.js", 53);
1461
- observeImports(map, "./tame-symbol-constructor.js", 54);
1462
- observeImports(map, "./tame-faux-data-properties.js", 55);
1463
- observeImports(map, "./tame-regenerator-runtime.js", 56);
1464
- observeImports(map, "./shim-arraybuffer-transfer.js", 57);
1465
- observeImports(map, "./reporting.js", 58);
1493
+ observeImports(map, "./get-anonymous-intrinsics.js", 53);
1494
+ observeImports(map, "./compartment.js", 52);
1495
+ observeImports(map, "./tame-harden.js", 54);
1496
+ observeImports(map, "./tame-symbol-constructor.js", 55);
1497
+ observeImports(map, "./tame-faux-data-properties.js", 56);
1498
+ observeImports(map, "./tame-regenerator-runtime.js", 57);
1499
+ observeImports(map, "./shim-arraybuffer-transfer.js", 58);
1500
+ observeImports(map, "./reporting.js", 59);
1466
1501
  },
1467
1502
  liveVar: {
1468
1503
  },
1469
1504
  onceVar: {
1470
- repairIntrinsics: cells[59].repairIntrinsics.set,
1505
+ repairIntrinsics: cells[60].repairIntrinsics.set,
1471
1506
  },
1472
1507
  importMeta: {},
1473
1508
  });
1474
- functors[60]({
1509
+ functors[61]({
1475
1510
  imports(entries) {
1476
1511
  const map = new Map(entries);
1477
1512
  observeImports(map, "./assert-sloppy-mode.js", 1);
1478
1513
  observeImports(map, "./commons.js", 0);
1479
- observeImports(map, "./lockdown.js", 59);
1514
+ observeImports(map, "./lockdown.js", 60);
1480
1515
  },
1481
1516
  liveVar: {
1482
1517
  },
@@ -1484,14 +1519,14 @@ function observeImports(map, importName, importIndex) {
1484
1519
  },
1485
1520
  importMeta: {},
1486
1521
  });
1487
- functors[61]({
1522
+ functors[62]({
1488
1523
  imports(entries) {
1489
1524
  const map = new Map(entries);
1490
1525
  observeImports(map, "./commons.js", 0);
1491
- observeImports(map, "./compartment.js", 51);
1492
- observeImports(map, "./tame-function-tostring.js", 38);
1526
+ observeImports(map, "./compartment.js", 52);
1527
+ observeImports(map, "./tame-function-tostring.js", 39);
1493
1528
  observeImports(map, "./intrinsics.js", 17);
1494
- observeImports(map, "./reporting.js", 58);
1529
+ observeImports(map, "./reporting.js", 59);
1495
1530
  },
1496
1531
  liveVar: {
1497
1532
  },
@@ -1499,7 +1534,7 @@ function observeImports(map, importName, importIndex) {
1499
1534
  },
1500
1535
  importMeta: {},
1501
1536
  });
1502
- functors[62]({
1537
+ functors[63]({
1503
1538
  imports(entries) {
1504
1539
  const map = new Map(entries);
1505
1540
  observeImports(map, "./commons.js", 0);
@@ -1511,11 +1546,11 @@ function observeImports(map, importName, importIndex) {
1511
1546
  },
1512
1547
  importMeta: {},
1513
1548
  });
1514
- functors[63]({
1549
+ functors[64]({
1515
1550
  imports(entries) {
1516
1551
  const map = new Map(entries);
1517
1552
  observeImports(map, "./commons.js", 0);
1518
- observeImports(map, "./error/console.js", 41);
1553
+ observeImports(map, "./error/console.js", 42);
1519
1554
  observeImports(map, "./error/assert.js", 13);
1520
1555
  },
1521
1556
  liveVar: {
@@ -1524,13 +1559,13 @@ function observeImports(map, importName, importIndex) {
1524
1559
  },
1525
1560
  importMeta: {},
1526
1561
  });
1527
- functors[64]({
1562
+ functors[65]({
1528
1563
  imports(entries) {
1529
1564
  const map = new Map(entries);
1530
- observeImports(map, "./src/lockdown-shim.js", 60);
1531
- observeImports(map, "./src/compartment-shim.js", 61);
1532
- observeImports(map, "./src/assert-shim.js", 62);
1533
- observeImports(map, "./src/console-shim.js", 63);
1565
+ observeImports(map, "./src/lockdown-shim.js", 61);
1566
+ observeImports(map, "./src/compartment-shim.js", 62);
1567
+ observeImports(map, "./src/assert-shim.js", 63);
1568
+ observeImports(map, "./src/console-shim.js", 64);
1534
1569
  },
1535
1570
  liveVar: {
1536
1571
  },
@@ -1589,7 +1624,8 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
1589
1624
  Uint8Array,
1590
1625
  WeakMap,
1591
1626
  WeakSet,
1592
- } = globalThis;$h͏_once.Array(Array);$h͏_once.ArrayBuffer(ArrayBuffer);$h͏_once.Date(Date);$h͏_once.FinalizationRegistry(FinalizationRegistry);$h͏_once.FERAL_FLOAT64_ARRAY(FERAL_FLOAT64_ARRAY);$h͏_once.DataView(DataView);$h͏_once.JSON(JSON);$h͏_once.Map(Map);$h͏_once.Math(Math);$h͏_once.Number(Number);$h͏_once.BigInt(BigInt);$h͏_once.Object(Object);$h͏_once.Promise(Promise);$h͏_once.Proxy(Proxy);$h͏_once.Reflect(Reflect);$h͏_once.FERAL_REG_EXP(FERAL_REG_EXP);$h͏_once.Set(Set);$h͏_once.String(String);$h͏_once.Symbol(Symbol);$h͏_once.Uint8Array(Uint8Array);$h͏_once.WeakMap(WeakMap);$h͏_once.WeakSet(WeakSet);
1627
+ Temporal // may be undefined on old JS engines
1628
+ } = globalThis;$h͏_once.Array(Array);$h͏_once.ArrayBuffer(ArrayBuffer);$h͏_once.Date(Date);$h͏_once.FinalizationRegistry(FinalizationRegistry);$h͏_once.FERAL_FLOAT64_ARRAY(FERAL_FLOAT64_ARRAY);$h͏_once.DataView(DataView);$h͏_once.JSON(JSON);$h͏_once.Map(Map);$h͏_once.Math(Math);$h͏_once.Number(Number);$h͏_once.BigInt(BigInt);$h͏_once.Object(Object);$h͏_once.Promise(Promise);$h͏_once.Proxy(Proxy);$h͏_once.Reflect(Reflect);$h͏_once.FERAL_REG_EXP(FERAL_REG_EXP);$h͏_once.Set(Set);$h͏_once.String(String);$h͏_once.Symbol(Symbol);$h͏_once.Uint8Array(Uint8Array);$h͏_once.WeakMap(WeakMap);$h͏_once.WeakSet(WeakSet);$h͏_once.Temporal(Temporal);
1593
1629
 
1594
1630
  const {
1595
1631
  // The feral Error constructor is safe for internal use, but must not be
@@ -1608,7 +1644,6 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
1608
1644
  create,
1609
1645
  defineProperties,
1610
1646
  entries,
1611
- freeze,
1612
1647
  getOwnPropertyDescriptor,
1613
1648
  getOwnPropertyDescriptors,
1614
1649
  getOwnPropertyNames,
@@ -1624,7 +1659,18 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
1624
1659
  setPrototypeOf,
1625
1660
  values,
1626
1661
  fromEntries,
1627
- } = Object;$h͏_once.assign(assign);$h͏_once.create(create);$h͏_once.defineProperties(defineProperties);$h͏_once.entries(entries);$h͏_once.freeze(freeze);$h͏_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h͏_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h͏_once.getOwnPropertyNames(getOwnPropertyNames);$h͏_once.getPrototypeOf(getPrototypeOf);$h͏_once.is(is);$h͏_once.isFrozen(isFrozen);$h͏_once.isSealed(isSealed);$h͏_once.isExtensible(isExtensible);$h͏_once.keys(keys);$h͏_once.objectPrototype(objectPrototype);$h͏_once.seal(seal);$h͏_once.preventExtensions(preventExtensions);$h͏_once.setPrototypeOf(setPrototypeOf);$h͏_once.values(values);$h͏_once.fromEntries(fromEntries);
1662
+ } = Object;
1663
+
1664
+ /**
1665
+ * For use with any value except a regular expression (@see {@link sealRegexp}
1666
+ * and {@link freezeRegexp}).
1667
+ *
1668
+ * @type { &
1669
+ * ((obj: RegExp) => void) &
1670
+ * typeof Object.freeze
1671
+ * }
1672
+ */$h͏_once.assign(assign);$h͏_once.create(create);$h͏_once.defineProperties(defineProperties);$h͏_once.entries(entries);$h͏_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h͏_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h͏_once.getOwnPropertyNames(getOwnPropertyNames);$h͏_once.getPrototypeOf(getPrototypeOf);$h͏_once.is(is);$h͏_once.isFrozen(isFrozen);$h͏_once.isSealed(isSealed);$h͏_once.isExtensible(isExtensible);$h͏_once.keys(keys);$h͏_once.objectPrototype(objectPrototype);$h͏_once.seal(seal);$h͏_once.preventExtensions(preventExtensions);$h͏_once.setPrototypeOf(setPrototypeOf);$h͏_once.values(values);$h͏_once.fromEntries(fromEntries);
1673
+ const freeze = /** @type {any} */ (Object.freeze);$h͏_once.freeze(freeze);
1628
1674
 
1629
1675
  const {
1630
1676
  species: speciesSymbol,
@@ -1632,12 +1678,15 @@ const universalThis = globalThis;$h͏_once.universalThis(universalThis);
1632
1678
  iterator: iteratorSymbol,
1633
1679
  matchAll: matchAllSymbol,
1634
1680
  replace: replaceSymbol,
1681
+ search: searchSymbol,
1635
1682
  unscopables: unscopablesSymbol,
1636
1683
  keyFor: symbolKeyFor,
1637
1684
  for: symbolFor,
1638
- } = Symbol;$h͏_once.speciesSymbol(speciesSymbol);$h͏_once.toStringTagSymbol(toStringTagSymbol);$h͏_once.iteratorSymbol(iteratorSymbol);$h͏_once.matchAllSymbol(matchAllSymbol);$h͏_once.replaceSymbol(replaceSymbol);$h͏_once.unscopablesSymbol(unscopablesSymbol);$h͏_once.symbolKeyFor(symbolKeyFor);$h͏_once.symbolFor(symbolFor);
1685
+ } = Symbol;$h͏_once.speciesSymbol(speciesSymbol);$h͏_once.toStringTagSymbol(toStringTagSymbol);$h͏_once.iteratorSymbol(iteratorSymbol);$h͏_once.matchAllSymbol(matchAllSymbol);$h͏_once.replaceSymbol(replaceSymbol);$h͏_once.searchSymbol(searchSymbol);$h͏_once.unscopablesSymbol(unscopablesSymbol);$h͏_once.symbolKeyFor(symbolKeyFor);$h͏_once.symbolFor(symbolFor);
1639
1686
 
1640
- const { isInteger } = Number;$h͏_once.isInteger(isInteger);
1687
+ const { max, min, trunc } = Math;$h͏_once.max(max);$h͏_once.min(min);$h͏_once.trunc(trunc);
1688
+
1689
+ const { MAX_SAFE_INTEGER, isInteger } = Number;$h͏_once.MAX_SAFE_INTEGER(MAX_SAFE_INTEGER);$h͏_once.isInteger(isInteger);
1641
1690
 
1642
1691
  const { stringify: stringifyJson } = JSON;
1643
1692
 
@@ -1679,6 +1728,7 @@ $h͏_once.stringifyJson(stringifyJson);const{defineProperty:originalDefineProper
1679
1728
 
1680
1729
  const { isArray, prototype: arrayPrototype } = Array;$h͏_once.isArray(isArray);$h͏_once.arrayPrototype(arrayPrototype);
1681
1730
  const { prototype: arrayBufferPrototype } = ArrayBuffer;$h͏_once.arrayBufferPrototype(arrayBufferPrototype);
1731
+ const { prototype: dataViewPrototype } = DataView;$h͏_once.dataViewPrototype(dataViewPrototype);
1682
1732
  const { prototype: mapPrototype } = Map;$h͏_once.mapPrototype(mapPrototype);
1683
1733
  const { revocable: proxyRevocable } = Proxy;$h͏_once.proxyRevocable(proxyRevocable);
1684
1734
  const { prototype: regexpPrototype } = RegExp;$h͏_once.regexpPrototype(regexpPrototype);
@@ -1780,6 +1830,7 @@ $h͏_once.iterateMap(iterateMap);const setAdd=uncurryThis(setPrototype.add);$h͏
1780
1830
  * vulnerable to RegExp.prototype poisoning.
1781
1831
  */$h͏_once.iterateSet(iterateSet);
1782
1832
  const regexpExec = uncurryThis(regexpPrototype.exec);
1833
+
1783
1834
  /**
1784
1835
  * @type { &
1785
1836
  * ((thisArg: RegExp, string: string, replaceValue: string) => string) &
@@ -1788,24 +1839,60 @@ $h͏_once.iterateMap(iterateMap);const setAdd=uncurryThis(setPrototype.add);$h͏
1788
1839
  */$h͏_once.regexpExec(regexpExec);
1789
1840
  const regexpReplace = /** @type {any} */ (
1790
1841
  uncurryThis(regexpPrototype[replaceSymbol])
1791
- );$h͏_once.regexpReplace(regexpReplace);
1842
+ );
1843
+
1844
+ /**
1845
+ * `regexpSearch` can be used with a frozen non-global non-sticky RegExp.
1846
+ *
1847
+ * @type {(thisArg: RegExp, string: string) => number}
1848
+ */$h͏_once.regexpReplace(regexpReplace);
1849
+ const regexpSearch = uncurryThis(regexpPrototype[searchSymbol]);
1850
+
1851
+ /**
1852
+ * `matchAll` internally creates a new RegExp vulnerable to prototype poisoning,
1853
+ * but this function is still needed to reach %RegExpStringIteratorPrototype%.
1854
+ * @private
1855
+ */$h͏_once.regexpSearch(regexpSearch);
1792
1856
  const matchAllRegExp = uncurryThis(regexpPrototype[matchAllSymbol]);$h͏_once.matchAllRegExp(matchAllRegExp);
1793
- const { _regexpConstructor, ...regexpDescriptors } =
1794
- getOwnPropertyDescriptors(regexpPrototype);
1857
+
1858
+ const regexpDescriptors = getOwnPropertyDescriptors(regexpPrototype);
1795
1859
  arrayForEach(ownKeys(regexpDescriptors), key => {
1796
1860
  const desc = regexpDescriptors[/** @type {any} */ (key)];
1797
1861
  desc.configurable = false;
1798
1862
  if (desc.writable) desc.writable = false;
1799
1863
  });
1864
+ // Don't follow Symbol.species
1865
+ // https://tc39.es/ecma262/multipage/abstract-operations.html#sec-speciesconstructor
1866
+ defineProperty(regexpDescriptors, 'constructor', {
1867
+ value: undefined,
1868
+ enumerable: false,
1869
+ configurable: false,
1870
+ writable: false,
1871
+ });
1872
+
1800
1873
  /**
1801
1874
  * Protect a RegExp instance against RegExp.prototype poisoning ("exec",
1802
- * "flags", Symbol.replace, etc.).
1875
+ * "flags", Symbol.replace, etc.) while still maintaining mutability of its
1876
+ * "lastIndex" property (which is necessary with flags "g" and/or "y" for some
1877
+ * operations, most notably {@link regexpReplace}).
1878
+ *
1803
1879
  * @type {<T extends RegExp>(regexp: T) => T}
1804
1880
  */
1805
1881
  const sealRegexp = regexp =>
1806
1882
  seal(defineProperties(regexp, regexpDescriptors));
1883
+
1884
+ /**
1885
+ * Protect a RegExp instance against RegExp.prototype poisoning ("exec",
1886
+ * "flags", Symbol.replace, etc.) and freeze its "lastIndex" property, rendering
1887
+ * it fully inert but (absent flags "g" and/or "y") still usable by
1888
+ * {@link regexpExec} and {@link regexpSearch}.
1889
+ *
1890
+ * @type {<T extends RegExp>(regexp: T) => T}
1891
+ */$h͏_once.sealRegexp(sealRegexp);
1892
+ const freezeRegexp = regexp =>
1893
+ freeze(/** @type {any} */ (defineProperties(regexp, regexpDescriptors)));
1807
1894
  //
1808
- $h͏_once.sealRegexp(sealRegexp);const stringEndsWith=uncurryThis(stringPrototype.endsWith);$h͏_once.stringEndsWith(stringEndsWith);
1895
+ $h͏_once.freezeRegexp(freezeRegexp);const stringEndsWith=uncurryThis(stringPrototype.endsWith);$h͏_once.stringEndsWith(stringEndsWith);
1809
1896
  const stringIncludes = uncurryThis(stringPrototype.includes);$h͏_once.stringIncludes(stringIncludes);
1810
1897
  const stringIndexOf = uncurryThis(stringPrototype.indexOf);$h͏_once.stringIndexOf(stringIndexOf);
1811
1898
  const stringMatch = uncurryThis(stringPrototype.match);
@@ -1930,7 +2017,7 @@ const makeTypeError = () => {
1930
2017
  null.null;
1931
2018
  throw TypeError('obligatory'); // To convince the type flow inferrence.
1932
2019
  } catch (error) {
1933
- return error;
2020
+ return /** @type {TypeError} */ (error);
1934
2021
  }
1935
2022
  };
1936
2023
 
@@ -2003,9 +2090,10 @@ const getAsyncGeneratorFunctionInstance = () => {
2003
2090
  'return (async function* AsyncGeneratorFunctionInstance() {})',
2004
2091
  )();
2005
2092
  } catch (error) {
2093
+ const err = /** @type {Error} */ (error);
2006
2094
  // Note: `Error.prototype.jsEngine` is only set by React Native runtime, not Hermes:
2007
2095
  // https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/hermes/executor/HermesExecutorFactory.cpp#L224-L230
2008
- if (error.name === 'SyntaxError') {
2096
+ if (err.name === 'SyntaxError') {
2009
2097
  // Swallows Hermes error `async generators are unsupported` at runtime.
2010
2098
  // Note: `console` is not a JS built-in, so Hermes engine throws:
2011
2099
  // Uncaught ReferenceError: Property 'console' doesn't exist
@@ -2013,11 +2101,11 @@ const getAsyncGeneratorFunctionInstance = () => {
2013
2101
  // However React Native provides a `console` implementation when setting up error handling:
2014
2102
  // https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/InitializeCore.js
2015
2103
  return undefined;
2016
- } else if (error.name === 'EvalError') {
2104
+ } else if (err.name === 'EvalError') {
2017
2105
  // eslint-disable-next-line no-empty-function
2018
2106
  return async function* AsyncGeneratorFunctionInstance() {};
2019
2107
  } else {
2020
- throw error;
2108
+ throw err;
2021
2109
  }
2022
2110
  }
2023
2111
  };
@@ -2035,7 +2123,8 @@ const getAsyncGeneratorFunctionInstance = () => {
2035
2123
  // === 1. ses ./src/assert-sloppy-mode.js ===
2036
2124
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);
2037
2125
 
2038
- /** getThis returns globalThis in sloppy mode or undefined in strict mode. */
2126
+ /** @this {unknown} */
2127
+ // getThis returns globalThis in sloppy mode or undefined in strict mode.
2039
2128
  function getThis() {
2040
2129
  return this;
2041
2130
  }
@@ -3327,7 +3416,7 @@ freeze(makeNoteLogArgsArrayKit);
3327
3416
  })()
3328
3417
  ,
3329
3418
  // === 13. ses ./src/error/assert.js ===
3330
- ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,globalThis,is,isError,regexpExec,regexpReplace,sealRegexp,stringIndexOf,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,AggregateError,getOwnPropertyDescriptors,ownKeys,create,objectPrototype,hasOwn,an,bestEffortStringify,makeNoteLogArgsArrayKit;$h͏_imports([["../commons.js", [["RangeError",[$h͏_a => (RangeError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["regexpReplace",[$h͏_a => (regexpReplace = $h͏_a)]],["sealRegexp",[$h͏_a => (sealRegexp = $h͏_a)]],["stringIndexOf",[$h͏_a => (stringIndexOf = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["weakmapDelete",[$h͏_a => (weakmapDelete = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["AggregateError",[$h͏_a => (AggregateError = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]],["./stringify-utils.js", [["an",[$h͏_a => (an = $h͏_a)]],["bestEffortStringify",[$h͏_a => (bestEffortStringify = $h͏_a)]]]],["./types.js", []],["./internal-types.js", []],["./note-log-args.js", [["makeNoteLogArgsArrayKit",[$h͏_a => (makeNoteLogArgsArrayKit = $h͏_a)]]]]]);
3419
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,freezeRegexp,globalThis,is,isError,regexpSearch,stringEndsWith,stringIndexOf,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,AggregateError,getOwnPropertyDescriptors,ownKeys,create,objectPrototype,hasOwn,an,bestEffortStringify,makeNoteLogArgsArrayKit;$h͏_imports([["../commons.js", [["RangeError",[$h͏_a => (RangeError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["regexpSearch",[$h͏_a => (regexpSearch = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["stringIndexOf",[$h͏_a => (stringIndexOf = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["weakmapDelete",[$h͏_a => (weakmapDelete = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["AggregateError",[$h͏_a => (AggregateError = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]],["./stringify-utils.js", [["an",[$h͏_a => (an = $h͏_a)]],["bestEffortStringify",[$h͏_a => (bestEffortStringify = $h͏_a)]]]],["./types.js", []],["./internal-types.js", []],["./note-log-args.js", [["makeNoteLogArgsArrayKit",[$h͏_a => (makeNoteLogArgsArrayKit = $h͏_a)]]]]]);
3331
3420
 
3332
3421
 
3333
3422
 
@@ -3403,13 +3492,13 @@ const quote = (value, spaces = undefined) => {
3403
3492
  };$h͏_once.quote(quote);
3404
3493
  freeze(quote);
3405
3494
 
3406
- const canBeBare = freeze(/^[\w:-]( ?[\w:-])*$/);
3495
+ const canBeBare = freezeRegexp(/^[\w:-]( ?[\w:-])*$/);
3407
3496
 
3408
3497
  /**
3409
3498
  * @type {AssertionUtilities['bare']}
3410
3499
  */
3411
3500
  const bare = (text, spaces = undefined) => {
3412
- if (typeof text !== 'string' || !regexpExec(canBeBare, text)) {
3501
+ if (typeof text !== 'string' || regexpSearch(canBeBare, text) === -1) {
3413
3502
  return quote(text, spaces);
3414
3503
  }
3415
3504
  const result = freeze({
@@ -3530,9 +3619,6 @@ const unredactedDetails = (template, ...args) => {
3530
3619
  freeze(unredactedDetails);
3531
3620
 
3532
3621
 
3533
- const leadingSpacePattern = sealRegexp(/^ /);
3534
- const trailingSpacePattern = sealRegexp(/ $/);
3535
-
3536
3622
  /**
3537
3623
  * Get arguments suitable for a console logger function (e.g., `console.error`)
3538
3624
  * from `details` template literal contents, unquoting quoted substitution
@@ -3550,20 +3636,18 @@ const getLogArgs = ({ template, args }) => {
3550
3636
  }
3551
3637
  // Remove substitution-adjacent spaces from template fixed-string parts
3552
3638
  // (since console logging inserts its own argument-separating spaces).
3553
- const prevLiteralPart = regexpReplace(
3554
- trailingSpacePattern,
3555
- arrayPop(logArgs) || '',
3556
- '',
3557
- );
3558
- if (prevLiteralPart !== '') {
3559
- arrayPush(logArgs, prevLiteralPart);
3560
- }
3561
- const nextLiteralPart = regexpReplace(
3562
- leadingSpacePattern,
3563
- template[i + 1],
3564
- '',
3565
- );
3566
- arrayPush(logArgs, arg, nextLiteralPart);
3639
+ const prevLiteralPart = arrayPop(logArgs) || '';
3640
+ const trimmedPrev = stringEndsWith(prevLiteralPart, ' ')
3641
+ ? stringSlice(prevLiteralPart, 0, -1)
3642
+ : prevLiteralPart;
3643
+ if (trimmedPrev !== '') {
3644
+ arrayPush(logArgs, trimmedPrev);
3645
+ }
3646
+ const nextLiteralPart = template[i + 1];
3647
+ const trimmedNext = stringStartsWith(nextLiteralPart, ' ')
3648
+ ? stringSlice(nextLiteralPart, 1)
3649
+ : nextLiteralPart;
3650
+ arrayPush(logArgs, arg, trimmedNext);
3567
3651
  }
3568
3652
  if (logArgs[logArgs.length - 1] === '') {
3569
3653
  arrayPop(logArgs);
@@ -4262,6 +4346,7 @@ const freezeTypedArray = array => {
4262
4346
  try {
4263
4347
  delete obj[prop];
4264
4348
  } catch (err) {
4349
+ const reason = /** @type {string | object} */ (err);
4265
4350
  if (hasOwn(obj, prop)) {
4266
4351
  if (typeof obj === 'function' && prop === 'prototype') {
4267
4352
  obj.prototype = undefined;
@@ -4270,9 +4355,9 @@ const freezeTypedArray = array => {
4270
4355
  return;
4271
4356
  }
4272
4357
  }
4273
- error(`failed to delete ${subPath}`, err);
4358
+ error(`failed to delete ${subPath}`, reason);
4274
4359
  } else {
4275
- error(`deleting ${subPath} threw`, err);
4360
+ error(`deleting ${subPath} threw`, reason);
4276
4361
  }
4277
4362
  throw err;
4278
4363
  }
@@ -4422,6 +4507,7 @@ const freezeTypedArray = array => {
4422
4507
  // *** Other Properties of the Global Object
4423
4508
 
4424
4509
  Math: '%InitialMath%',
4510
+ Temporal: '%InitialTemporal%',
4425
4511
 
4426
4512
  // We move these from universalPropertyNames because the NaN side channel
4427
4513
  // means that they are not quite harmless.
@@ -4467,7 +4553,8 @@ const freezeTypedArray = array => {
4467
4553
 
4468
4554
  // *** Other Properties of the Global Object
4469
4555
 
4470
- Math: '%SharedMath%'
4556
+ Math: '%SharedMath%',
4557
+ Temporal: '%SharedTemporal%'
4471
4558
 
4472
4559
  // TODO Temporal
4473
4560
  // https://github.com/tc39/proposal-temporal
@@ -4620,7 +4707,7 @@ arrayForEach(['caller', 'arguments'], prop => {
4620
4707
  strict[prop];
4621
4708
  } catch (e) {
4622
4709
  // https://github.com/facebook/hermes/blob/main/test/hermes/function-non-strict.js
4623
- if (e.message === 'Restricted in strict mode') {
4710
+ if (/** @type {Error} */ (e).message === 'Restricted in strict mode') {
4624
4711
  // Fixed in Static Hermes: https://github.com/facebook/hermes/issues/1582
4625
4712
  FunctionInstance[prop] = accessor;
4626
4713
  }
@@ -5147,6 +5234,8 @@ const CommonMath = {
5147
5234
  getYear: fn,
5148
5235
  setYear: fn,
5149
5236
  toGMTString: fn,
5237
+
5238
+ toTemporalInstant: fn,
5150
5239
  },
5151
5240
 
5152
5241
  // Text Processing
@@ -5535,6 +5624,8 @@ const CommonMath = {
5535
5624
  entries: fn,
5536
5625
  forEach: fn,
5537
5626
  get: fn,
5627
+ getOrInsert: fn,
5628
+ getOrInsertComputed: fn,
5538
5629
  has: fn,
5539
5630
  keys: fn,
5540
5631
  set: fn,
@@ -5606,6 +5697,8 @@ const CommonMath = {
5606
5697
  constructor: 'WeakMap',
5607
5698
  delete: fn,
5608
5699
  get: fn,
5700
+ getOrInsert: fn,
5701
+ getOrInsertComputed: fn,
5609
5702
  has: fn,
5610
5703
  set: fn,
5611
5704
  '@@toStringTag': 'string',
@@ -6017,6 +6110,346 @@ const CommonMath = {
6017
6110
  revocable: fn,
6018
6111
  },
6019
6112
 
6113
+ '%Temporal.PlainDatePrototype%': {
6114
+ constructor: '%Temporal.PlainDate%',
6115
+ era: accessor,
6116
+ eraYear: accessor,
6117
+ calendarId: accessor,
6118
+ year: accessor,
6119
+ month: accessor,
6120
+ monthCode: accessor,
6121
+ day: accessor,
6122
+ dayOfWeek: accessor,
6123
+ dayOfYear: accessor,
6124
+ weekOfYear: accessor,
6125
+ yearOfWeek: accessor,
6126
+ daysInWeek: accessor,
6127
+ daysInMonth: accessor,
6128
+ daysInYear: accessor,
6129
+ monthsInYear: accessor,
6130
+ inLeapYear: accessor,
6131
+ toPlainYearMonth: fn,
6132
+ toPlainMonthDay: fn,
6133
+ add: fn,
6134
+ subtract: fn,
6135
+ with: fn,
6136
+ withCalendar: fn,
6137
+ until: fn,
6138
+ since: fn,
6139
+ equals: fn,
6140
+ toPlainDateTime: fn,
6141
+ toZonedDateTime: fn,
6142
+ toString: fn,
6143
+ toLocaleString: fn,
6144
+ toJSON: fn,
6145
+ valueOf: fn,
6146
+ '@@toStringTag': 'string',
6147
+ },
6148
+ '%Temporal.PlainDate%': {
6149
+ '[[Proto]]': '%FunctionPrototype%',
6150
+ length: 'number',
6151
+ name: 'string',
6152
+ prototype: '%Temporal.PlainDatePrototype%',
6153
+ from: fn,
6154
+ compare: fn,
6155
+ },
6156
+
6157
+ '%Temporal.PlainTimePrototype%': {
6158
+ constructor: '%Temporal.PlainTime%',
6159
+ hour: accessor,
6160
+ minute: accessor,
6161
+ second: accessor,
6162
+ millisecond: accessor,
6163
+ microsecond: accessor,
6164
+ nanosecond: accessor,
6165
+ add: fn,
6166
+ subtract: fn,
6167
+ with: fn,
6168
+ until: fn,
6169
+ since: fn,
6170
+ round: fn,
6171
+ equals: fn,
6172
+ toLocaleString: fn,
6173
+ toString: fn,
6174
+ toJSON: fn,
6175
+ valueOf: fn,
6176
+ '@@toStringTag': 'string',
6177
+ },
6178
+ '%Temporal.PlainTime%': {
6179
+ '[[Proto]]': '%FunctionPrototype%',
6180
+ length: 'number',
6181
+ name: 'string',
6182
+ prototype: '%Temporal.PlainTimePrototype%',
6183
+ from: fn,
6184
+ compare: fn,
6185
+ },
6186
+
6187
+ '%Temporal.PlainDateTimePrototype%': {
6188
+ constructor: '%Temporal.PlainDateTime%',
6189
+ calendarId: accessor,
6190
+ era: accessor,
6191
+ eraYear: accessor,
6192
+ year: accessor,
6193
+ month: accessor,
6194
+ monthCode: accessor,
6195
+ day: accessor,
6196
+ hour: accessor,
6197
+ minute: accessor,
6198
+ second: accessor,
6199
+ millisecond: accessor,
6200
+ microsecond: accessor,
6201
+ nanosecond: accessor,
6202
+ dayOfWeek: accessor,
6203
+ dayOfYear: accessor,
6204
+ weekOfYear: accessor,
6205
+ yearOfWeek: accessor,
6206
+ daysInWeek: accessor,
6207
+ daysInMonth: accessor,
6208
+ daysInYear: accessor,
6209
+ monthsInYear: accessor,
6210
+ inLeapYear: accessor,
6211
+ with: fn,
6212
+ withCalendar: fn,
6213
+ withPlainTime: fn,
6214
+ add: fn,
6215
+ subtract: fn,
6216
+ until: fn,
6217
+ since: fn,
6218
+ round: fn,
6219
+ equals: fn,
6220
+ toLocaleString: fn,
6221
+ toJSON: fn,
6222
+ toString: fn,
6223
+ valueOf: fn,
6224
+ toZonedDateTime: fn,
6225
+ toPlainDate: fn,
6226
+ toPlainTime: fn,
6227
+ '@@toStringTag': 'string',
6228
+ },
6229
+ '%Temporal.PlainDateTime%': {
6230
+ '[[Proto]]': '%FunctionPrototype%',
6231
+ length: 'number',
6232
+ name: 'string',
6233
+ prototype: '%Temporal.PlainDateTimePrototype%',
6234
+ from: fn,
6235
+ compare: fn,
6236
+ },
6237
+
6238
+ '%Temporal.ZonedDateTimePrototype%': {
6239
+ constructor: '%Temporal.ZonedDateTime%',
6240
+ timeZoneId: accessor,
6241
+ calendarId: accessor,
6242
+ era: accessor,
6243
+ eraYear: accessor,
6244
+ year: accessor,
6245
+ month: accessor,
6246
+ monthCode: accessor,
6247
+ day: accessor,
6248
+ hour: accessor,
6249
+ minute: accessor,
6250
+ second: accessor,
6251
+ millisecond: accessor,
6252
+ microsecond: accessor,
6253
+ nanosecond: accessor,
6254
+ epochMilliseconds: accessor,
6255
+ epochNanoseconds: accessor,
6256
+ dayOfWeek: accessor,
6257
+ dayOfYear: accessor,
6258
+ weekOfYear: accessor,
6259
+ yearOfWeek: accessor,
6260
+ hoursInDay: accessor,
6261
+ daysInWeek: accessor,
6262
+ daysInMonth: accessor,
6263
+ daysInYear: accessor,
6264
+ monthsInYear: accessor,
6265
+ inLeapYear: accessor,
6266
+ offsetNanoseconds: accessor,
6267
+ offset: accessor,
6268
+ with: fn,
6269
+ withCalendar: fn,
6270
+ withPlainTime: fn,
6271
+ withTimeZone: fn,
6272
+ add: fn,
6273
+ subtract: fn,
6274
+ until: fn,
6275
+ since: fn,
6276
+ round: fn,
6277
+ equals: fn,
6278
+ toLocaleString: fn,
6279
+ toString: fn,
6280
+ toJSON: fn,
6281
+ valueOf: fn,
6282
+ startOfDay: fn,
6283
+ getTimeZoneTransition: fn,
6284
+ toInstant: fn,
6285
+ toPlainDate: fn,
6286
+ toPlainTime: fn,
6287
+ toPlainDateTime: fn,
6288
+ '@@toStringTag': 'string',
6289
+ },
6290
+ '%Temporal.ZonedDateTime%': {
6291
+ '[[Proto]]': '%FunctionPrototype%',
6292
+ length: 'number',
6293
+ name: 'string',
6294
+ prototype: '%Temporal.ZonedDateTimePrototype%',
6295
+ from: fn,
6296
+ compare: fn,
6297
+ },
6298
+
6299
+ '%Temporal.DurationPrototype%': {
6300
+ constructor: '%Temporal.Duration%',
6301
+ years: accessor,
6302
+ months: accessor,
6303
+ weeks: accessor,
6304
+ days: accessor,
6305
+ hours: accessor,
6306
+ minutes: accessor,
6307
+ seconds: accessor,
6308
+ milliseconds: accessor,
6309
+ microseconds: accessor,
6310
+ nanoseconds: accessor,
6311
+ sign: accessor,
6312
+ blank: accessor,
6313
+ with: fn,
6314
+ negated: fn,
6315
+ abs: fn,
6316
+ add: fn,
6317
+ subtract: fn,
6318
+ round: fn,
6319
+ total: fn,
6320
+ toLocaleString: fn,
6321
+ toString: fn,
6322
+ toJSON: fn,
6323
+ valueOf: fn,
6324
+ '@@toStringTag': 'string',
6325
+ },
6326
+ '%Temporal.Duration%': {
6327
+ '[[Proto]]': '%FunctionPrototype%',
6328
+ length: 'number',
6329
+ name: 'string',
6330
+ prototype: '%Temporal.DurationPrototype%',
6331
+ from: fn,
6332
+ compare: fn,
6333
+ },
6334
+
6335
+ '%Temporal.InstantPrototype%': {
6336
+ constructor: '%Temporal.Instant%',
6337
+ epochMilliseconds: accessor,
6338
+ epochNanoseconds: accessor,
6339
+ add: fn,
6340
+ subtract: fn,
6341
+ until: fn,
6342
+ since: fn,
6343
+ round: fn,
6344
+ equals: fn,
6345
+ toLocaleString: fn,
6346
+ toString: fn,
6347
+ toJSON: fn,
6348
+ valueOf: fn,
6349
+ toZonedDateTimeISO: fn,
6350
+ '@@toStringTag': 'string',
6351
+ },
6352
+ '%Temporal.Instant%': {
6353
+ '[[Proto]]': '%FunctionPrototype%',
6354
+ length: 'number',
6355
+ name: 'string',
6356
+ prototype: '%Temporal.InstantPrototype%',
6357
+ from: fn,
6358
+ fromEpochMilliseconds: fn,
6359
+ fromEpochNanoseconds: fn,
6360
+ compare: fn,
6361
+ },
6362
+
6363
+ '%Temporal.PlainYearMonthPrototype%': {
6364
+ constructor: '%Temporal.PlainYearMonth%',
6365
+ calendarId: accessor,
6366
+ era: accessor,
6367
+ eraYear: accessor,
6368
+ year: accessor,
6369
+ month: accessor,
6370
+ monthCode: accessor,
6371
+ daysInYear: accessor,
6372
+ daysInMonth: accessor,
6373
+ monthsInYear: accessor,
6374
+ inLeapYear: accessor,
6375
+ with: fn,
6376
+ add: fn,
6377
+ subtract: fn,
6378
+ until: fn,
6379
+ since: fn,
6380
+ equals: fn,
6381
+ toLocaleString: fn,
6382
+ toString: fn,
6383
+ toJSON: fn,
6384
+ valueOf: fn,
6385
+ toPlainDate: fn,
6386
+ '@@toStringTag': 'string',
6387
+ },
6388
+ '%Temporal.PlainYearMonth%': {
6389
+ '[[Proto]]': '%FunctionPrototype%',
6390
+ length: 'number',
6391
+ name: 'string',
6392
+ prototype: '%Temporal.PlainYearMonthPrototype%',
6393
+ from: fn,
6394
+ compare: fn,
6395
+ },
6396
+
6397
+ '%Temporal.PlainMonthDayPrototype%': {
6398
+ constructor: '%Temporal.PlainMonthDay%',
6399
+ calendarId: accessor,
6400
+ monthCode: accessor,
6401
+ day: accessor,
6402
+ with: fn,
6403
+ equals: fn,
6404
+ toLocaleString: fn,
6405
+ toString: fn,
6406
+ toJSON: fn,
6407
+ valueOf: fn,
6408
+ toPlainDate: fn,
6409
+ '@@toStringTag': 'string',
6410
+ },
6411
+ '%Temporal.PlainMonthDay%': {
6412
+ '[[Proto]]': '%FunctionPrototype%',
6413
+ length: 'number',
6414
+ name: 'string',
6415
+ prototype: '%Temporal.PlainMonthDayPrototype%',
6416
+ from: fn,
6417
+ },
6418
+
6419
+ '%Temporal.Now%': {
6420
+ instant: fn,
6421
+ timeZoneId: fn,
6422
+ plainDateTimeISO: fn,
6423
+ zonedDateTimeISO: fn,
6424
+ plainDateISO: fn,
6425
+ plainTimeISO: fn,
6426
+ '@@toStringTag': 'string',
6427
+ },
6428
+
6429
+ '%InitialTemporal%': {
6430
+ Now: '%Temporal.Now%',
6431
+ PlainDate: '%Temporal.PlainDate%',
6432
+ PlainTime: '%Temporal.PlainTime%',
6433
+ PlainDateTime: '%Temporal.PlainDateTime%',
6434
+ ZonedDateTime: '%Temporal.ZonedDateTime%',
6435
+ Duration: '%Temporal.Duration%',
6436
+ Instant: '%Temporal.Instant%',
6437
+ PlainYearMonth: '%Temporal.PlainYearMonth%',
6438
+ PlainMonthDay: '%Temporal.PlainMonthDay%',
6439
+ '@@toStringTag': 'string',
6440
+ },
6441
+ '%SharedTemporal%': {
6442
+ PlainDate: '%Temporal.PlainDate%',
6443
+ PlainTime: '%Temporal.PlainTime%',
6444
+ PlainDateTime: '%Temporal.PlainDateTime%',
6445
+ ZonedDateTime: '%Temporal.ZonedDateTime%',
6446
+ Duration: '%Temporal.Duration%',
6447
+ Instant: '%Temporal.Instant%',
6448
+ PlainYearMonth: '%Temporal.PlainYearMonth%',
6449
+ PlainMonthDay: '%Temporal.PlainMonthDay%',
6450
+ '@@toStringTag': 'string',
6451
+ },
6452
+
6020
6453
  // Appendix B
6021
6454
 
6022
6455
  // Annex B: Additional Properties of the Global Object
@@ -6433,34 +6866,26 @@ function sampleGlobals(globalObject, newPropertyNames) {
6433
6866
  if (typeof permit === 'string') {
6434
6867
  // A string permit can have one of two meanings:
6435
6868
 
6436
- if (prop === 'prototype' || prop === 'constructor') {
6437
- // For prototype and constructor value properties, the permit
6438
- // is the name of an intrinsic.
6439
- // Assumption: prototype and constructor cannot be primitives.
6440
- // Assert: the permit is the name of an intrinsic.
6441
- // Assert: the property value is equal to that intrinsic.
6869
+ if (arrayIncludes(primitives, permit)) {
6870
+ // The permit is the name of a primitive.
6442
6871
 
6443
- if (hasOwn(intrinsics, permit)) {
6444
- if (value !== intrinsics[permit]) {
6445
- throw TypeError(`Does not match permit for ${path}`);
6446
- }
6447
- return true;
6872
+ if (prop === 'prototype' || prop === 'constructor') {
6873
+ throw new TypeError(`At ${path} expected intrinsic, not ${permit}`);
6448
6874
  }
6449
- } else {
6450
- // For all other properties, the permit is the name of a primitive.
6451
- // Assert: the permit is the name of a primitive.
6452
- // Assert: the property value type is equal to that primitive.
6453
-
6454
- // eslint-disable-next-line no-lonely-if
6455
- if (arrayIncludes(primitives, permit)) {
6456
- // eslint-disable-next-line valid-typeof
6457
- if (typeof value !== permit) {
6458
- throw TypeError(
6459
- `At ${path} expected ${permit} not ${typeof value}`,
6460
- );
6461
- }
6462
- return true;
6875
+ // eslint wants to compare typeof only to string literals
6876
+ // eslint-disable-next-line valid-typeof
6877
+ if (typeof value !== permit) {
6878
+ throw TypeError(`At ${path} expected ${permit} not ${typeof value}`);
6879
+ }
6880
+ return true;
6881
+ }
6882
+
6883
+ if (hasOwn(intrinsics, permit)) {
6884
+ // the permit is the name of an intrinsic.
6885
+ if (value !== intrinsics[permit]) {
6886
+ throw TypeError(`Does not match permit for ${path}`);
6463
6887
  }
6888
+ return true;
6464
6889
  }
6465
6890
  }
6466
6891
 
@@ -6863,18 +7288,104 @@ function sampleGlobals(globalObject, newPropertyNames) {
6863
7288
  }$h͏_once.default( tameMathObject);
6864
7289
  })()
6865
7290
  ,
6866
- // === 22. ses ./src/tame-nan-sidechannel.js ===
6867
- ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Object,DataView,Reflect,Number;$h͏_imports([["./commons.js", [["Object",[$h͏_a => (Object = $h͏_a)]],["DataView",[$h͏_a => (DataView = $h͏_a)]],["Reflect",[$h͏_a => (Reflect = $h͏_a)]],["Number",[$h͏_a => (Number = $h͏_a)]]]]]);
7291
+ // === 22. ses ./src/tame-temporal-object.js ===
7292
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let freeze,getOwnPropertyDescriptors,create,objectPrototype,getPrototypeOf,ownKeys,fromEntries,TypeError,arrayPush,Temporal,permitted;$h͏_imports([["./commons.js", [["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["Temporal",[$h͏_a => (Temporal = $h͏_a)]]]],["./permits.js", [["permitted",[$h͏_a => (permitted = $h͏_a)]]]]]);
7293
+
7294
+
7295
+
7296
+
7297
+
7298
+
7299
+
7300
+
7301
+
7302
+
7303
+
7304
+
7305
+
7306
+
7307
+ /**
7308
+ * Tame the `Temporal` namespace object.
7309
+ *
7310
+ * The `%InitialTemporal%` is indeed the original `Temporal` namespace
7311
+ * object, to remain present on the start compartment.
7312
+ *
7313
+ * The `%SharedTemporal%` is the safe shared `Temporal` namespace object,
7314
+ * to be endowed by default on the gloabl of all constructed compartments.
7315
+ * This differs only by the omission of `Temporal.Now`, which is the source of
7316
+ * the dynamic non-determinism of the ever-changing current time, and the
7317
+ * glacial dynamic non-determinism of current timezone and UTC offset (daylight
7318
+ * savings time).
7319
+ *
7320
+ * The remaining source of glacial dynamic non-determinism is locale
7321
+ * sensitivity, which `Temporal` provides only via `toLocaleString` methods.
7322
+ * This is handled by `tame-locale-methods.js` in the same way as all other
7323
+ * `*Locale*` methods.
7324
+ *
7325
+ * `tameTemporalObject` is modeletd on `tameMathObject` and `tameDateConstructor`
7326
+ */
7327
+ const tameTemporalObject = () => {
7328
+ if (Temporal === undefined) {
7329
+ return {};
7330
+ }
7331
+
7332
+ if (typeof Temporal !== 'object') {
7333
+ throw new TypeError(`unexpected typeof Temporal: ${typeof Temporal}`);
7334
+ }
7335
+ if (getPrototypeOf(Temporal) !== objectPrototype) {
7336
+ throw new TypeError(
7337
+ `unexpected Temporal __proto__: ${getPrototypeOf(Temporal)}`,
7338
+ );
7339
+ }
7340
+
7341
+ const initialTemporal = Temporal;
7342
+ const { Now: _, ...otherDescriptors } =
7343
+ getOwnPropertyDescriptors(initialTemporal);
7344
+ const sharedTemporal = create(objectPrototype, otherDescriptors);
7345
+
7346
+ const initialTemporalPermit = permitted['%InitialTemporal%'];
7347
+ const intrinsicEntries = [];
7348
+ for (const topName of ownKeys(Temporal)) {
7349
+ const topPermitName = initialTemporalPermit[topName];
7350
+ const topPermit = permitted[topPermitName];
7351
+ if (typeof topPermit === 'object') {
7352
+ const topVal = initialTemporal[topName];
7353
+ arrayPush(intrinsicEntries, [topPermitName, topVal]);
7354
+ }
7355
+ }
7356
+
7357
+ const result = {
7358
+ ...fromEntries(intrinsicEntries),
7359
+ '%InitialTemporal%': initialTemporal,
7360
+ '%SharedTemporal%': sharedTemporal,
7361
+ };
7362
+ return result;
7363
+ };
7364
+ freeze(tameTemporalObject);
7365
+
7366
+ const{default:$c͏_default}={default:tameTemporalObject};$h͏_once.default($c͏_default);
7367
+ })()
7368
+ ,
7369
+ // === 23. ses ./src/tame-nan-sidechannel.js ===
7370
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,dataViewPrototype,MAX_SAFE_INTEGER,apply,defineProperty,entries,getOwnPropertyDescriptor,hasOwn,is,max,trunc,uncurryThis;$h͏_imports([["./commons.js", [["RangeError",[$h͏_a => (RangeError = $h͏_a)]],["dataViewPrototype",[$h͏_a => (dataViewPrototype = $h͏_a)]],["MAX_SAFE_INTEGER",[$h͏_a => (MAX_SAFE_INTEGER = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["max",[$h͏_a => (max = $h͏_a)]],["trunc",[$h͏_a => (trunc = $h͏_a)]],["uncurryThis",[$h͏_a => (uncurryThis = $h͏_a)]]]]]);
7371
+
7372
+
7373
+
7374
+
7375
+
7376
+
7377
+
7378
+
7379
+
7380
+
7381
+
6868
7382
 
6869
- const { is, defineProperty, entries } = Object;
6870
- const { apply } = Reflect;
6871
7383
 
6872
- const { prototype: dataViewPrototype } = DataView;
6873
7384
 
6874
7385
  /**
6875
7386
  * These `FERAL*` methods open up the NaN side-channel on some platforms,
6876
7387
  * like v8. Thus, we need to encapsulate them and replace them with wrappers
6877
- * that canonicaize NaNs.
7388
+ * that canonicalize NaNs.
6878
7389
  */
6879
7390
  const {
6880
7391
  setFloat16: FERAL_SET_FLOAT16,
@@ -6886,61 +7397,201 @@ const {
6886
7397
  setBigUint64,
6887
7398
  } = dataViewPrototype;
6888
7399
 
6889
- // See https://webidl.spec.whatwg.org/#js-unrestricted-double which implies
6890
- // that this is the canonical NaN for web standards.
6891
- // Casual googling stongly suggests that this is also the cosmWasm
6892
- // canonical NaN. But I have not yet found an authoritative page stating this.
6893
- const canonicalNaN = 0x7ff8000000000000n;
7400
+ const dataViewGetBuffer = uncurryThis(
7401
+ // @ts-expect-error we know it is there on all conforming platforms
7402
+ getOwnPropertyDescriptor(dataViewPrototype, 'buffer').get,
7403
+ );
7404
+
7405
+ /**
7406
+ * See https://webidl.spec.whatwg.org/#js-unrestricted-double which implies
7407
+ * that this is the canonical NaN for web standards.
7408
+ * Casual googling strongly suggests that this is also the cosmWasm
7409
+ * canonical NaN. But I have not yet found an authoritative page stating this.
7410
+ *
7411
+ * As noted there, WebIDL choses this value because
7412
+ * > The `NaN` value ... is chosen simply because it is the quiet NaN
7413
+ * > with the lowest value when its bit pattern is interpreted as an 64-bit
7414
+ * > unsigned integer.
7415
+ *
7416
+ * See https://github.com/endojs/endo/pull/3214#discussion_r3155852021
7417
+ */
7418
+ const canonicalNaN64Encoding = 0x7ff8_0000_0000_0000n;
7419
+
7420
+ /**
7421
+ * As of this writing (April 29, 2026) all implementations agree that a
7422
+ * ***literal*** `NaN` seems to encode in 32 bits as `0x7fc00000`.
7423
+ * See https://github.com/endojs/endo/pull/3214#discussion_r3162974396
7424
+ *
7425
+ * Applying WebIDL's rationale for the 64 bit float
7426
+ * > The `NaN` value ... is chosen simply because it is the quiet NaN
7427
+ * > with the lowest value when its bit pattern is interpreted as an 64-bit
7428
+ * > unsigned integer.
7429
+ *
7430
+ * to the 32 bit case agrees with the choice the implementations make
7431
+ * for the 32 bit encoding of a ***literal*** `NaN`.
7432
+ *
7433
+ * See https://github.com/endojs/endo/pull/3214#discussion_r3155852021
7434
+ */
7435
+ const canonicalNaN32Encoding = 0x7fc0_0000;
7436
+
7437
+ /**
7438
+ * As of this writing (April 29, 2026) all implementations that implement
7439
+ * float16 (with the almost surely unintentional exception of QuickJS),
7440
+ * agree that a ***literal*** `NaN` seems to encode in 16 bits as `0x7e00`.
7441
+ * See https://github.com/endojs/endo/pull/3214#discussion_r3162974396
7442
+ *
7443
+ * Applying WebIDL's rationale for the 64 bit float
7444
+ * > The `NaN` value ... is chosen simply because it is the quiet NaN
7445
+ * > with the lowest value when its bit pattern is interpreted as an 64-bit
7446
+ * > unsigned integer.
7447
+ *
7448
+ * to the 16 bit case agrees with the choice those implementations make
7449
+ * for the 16 bit encoding of a ***literal*** `NaN`.
7450
+ *
7451
+ * See https://github.com/endojs/endo/pull/3214#discussion_r3155852021
7452
+ */
7453
+ const canonicalNaN16Encoding = 0x7e00;
7454
+
7455
+ /**
7456
+ * Perform `RequireInternalSlot(obj, [[DataView]])` as needed in
7457
+ * SetViewValue.
7458
+ * https://tc39.es/ecma262/multipage/structured-data.html#sec-setviewvalue
7459
+ * https://tc39.es/ecma262/#sec-get-dataview.prototype.buffer
7460
+ *
7461
+ * @param {unknown} obj
7462
+ * @returns {void}
7463
+ */
7464
+ const requireDataView = obj => {
7465
+ dataViewGetBuffer(obj);
7466
+ };
7467
+
7468
+ /**
7469
+ * Emulate the internal `ToIndex` from
7470
+ * https://tc39.es/ecma262/multipage/abstract-operations.html#sec-toindex
7471
+ *
7472
+ * @param {unknown} v
7473
+ * @returns {number}
7474
+ */
7475
+ const toIndex = v => {
7476
+ // @ts-expect-error Math.trunc uses the internal `ToNumber` to coerce its
7477
+ // argument, whatever it is, to an integer number.
7478
+ const n = trunc(v);
7479
+ if (n === 0 || is(n, NaN)) {
7480
+ return 0;
7481
+ }
7482
+ if (n < 0 || n > MAX_SAFE_INTEGER) {
7483
+ throw RangeError('Invalid offset');
7484
+ }
7485
+ return n;
7486
+ };
7487
+
7488
+ /**
7489
+ * Expose the internal `ToNumber` from
7490
+ * https://tc39.es/ecma262/multipage/abstract-operations.html#sec-tonumber
7491
+ * We can't just use `Number(value)` because that is backed by `ToNumeric`,
7492
+ * which coerces bigint output from `ToPrimitive` rather than throwing a
7493
+ * TypeError as required of `ToNumber` (e.g., `Number({ valueOf: () => 42n })`
7494
+ * returns 42).
7495
+ *
7496
+ * @param {unknown} v
7497
+ * @returns {number}
7498
+ */
7499
+ const toNumber = v =>
7500
+ // @ts-expect-error Math.max uses the internal `ToNumber` to coerce its
7501
+ // argument, whatever it is, to a number.
7502
+ max(v);
6894
7503
 
6895
- // Use method shorthand syntax to be this-sensitive but now be constructable
6896
- // nor have a `prototype` property.
7504
+ /**
7505
+ * Correctly guarding the `setFloat*` built-ins requires performing
7506
+ * `ToNumber(value)` ourselves, because a non-NaN value such as
7507
+ * `{ valueOf: () => {} }` gets coerced **to** NaN. But, according to
7508
+ * [SetViewValue](https://tc39.es/ecma262/multipage/structured-data.html#sec-setviewvalue),
7509
+ * we must first perform the observable
7510
+ * `RequireInternalSlot(view, [[DataView]])` and `ToIndex(requestIndex)` steps
7511
+ * (in that order). If those steps complete successfully, we have number-coerced
7512
+ * `byteOffset` and `value` values that will pass those same steps internal to
7513
+ * the implementation without incurring further observable interactions.
7514
+ *
7515
+ * We added these coercions to defend against an attack noticed by
7516
+ * https://github.com/deepview-autofix .
7517
+ * We were vulnerable to `value` being an
7518
+ * object with a `valueOf` method that returns a (bad) NaN, since it
7519
+ * would bypass the is NaN check. See where the
7520
+ * `tame-nan*-sidechannel.test.js test cases mention "coercion attack".
7521
+ *
7522
+ * Uses method shorthand syntax to be `this`-sensitive but not be constructable
7523
+ * nor have a `prototype` property.
7524
+ */
6897
7525
  const methods = {
6898
7526
  /**
6899
7527
  * @param {number} byteOffset
6900
7528
  * @param {number} value
6901
- * @param {boolean} [littleEndian]
7529
+ * @param {boolean} [isLittleEndian]
6902
7530
  */
6903
- setFloat16(byteOffset, value, littleEndian = undefined) {
7531
+ setFloat16(byteOffset, value, isLittleEndian = undefined) {
7532
+ requireDataView(this);
7533
+ byteOffset = toIndex(byteOffset);
7534
+ value = toNumber(value);
6904
7535
  if (is(value, NaN)) {
6905
7536
  return apply(setUint16, this, [
6906
7537
  byteOffset,
6907
- Number(canonicalNaN),
6908
- littleEndian,
7538
+ canonicalNaN16Encoding,
7539
+ isLittleEndian,
6909
7540
  ]);
6910
7541
  } else {
6911
- return apply(FERAL_SET_FLOAT16, this, [byteOffset, value, littleEndian]);
7542
+ return apply(FERAL_SET_FLOAT16, this, [
7543
+ byteOffset,
7544
+ value,
7545
+ isLittleEndian,
7546
+ ]);
6912
7547
  }
6913
7548
  },
7549
+
6914
7550
  /**
6915
7551
  * @param {number} byteOffset
6916
7552
  * @param {number} value
6917
- * @param {boolean} [littleEndian]
7553
+ * @param {boolean} [isLittleEndian]
6918
7554
  */
6919
- setFloat32(byteOffset, value, littleEndian = undefined) {
7555
+ setFloat32(byteOffset, value, isLittleEndian = undefined) {
7556
+ requireDataView(this);
7557
+ byteOffset = toIndex(byteOffset);
7558
+ value = toNumber(value);
6920
7559
  if (is(value, NaN)) {
6921
7560
  return apply(setUint32, this, [
6922
7561
  byteOffset,
6923
- Number(canonicalNaN),
6924
- littleEndian,
7562
+ canonicalNaN32Encoding,
7563
+ isLittleEndian,
6925
7564
  ]);
6926
7565
  } else {
6927
- return apply(FERAL_SET_FLOAT32, this, [byteOffset, value, littleEndian]);
7566
+ return apply(FERAL_SET_FLOAT32, this, [
7567
+ byteOffset,
7568
+ value,
7569
+ isLittleEndian,
7570
+ ]);
6928
7571
  }
6929
7572
  },
7573
+
6930
7574
  /**
6931
7575
  * @param {number} byteOffset
6932
7576
  * @param {number} value
6933
- * @param {boolean} [littleEndian]
7577
+ * @param {boolean} [isLittleEndian]
6934
7578
  */
6935
- setFloat64(byteOffset, value, littleEndian = undefined) {
7579
+ setFloat64(byteOffset, value, isLittleEndian = undefined) {
7580
+ requireDataView(this);
7581
+ byteOffset = toIndex(byteOffset);
7582
+ value = toNumber(value);
6936
7583
  if (is(value, NaN)) {
6937
7584
  return apply(setBigUint64, this, [
6938
7585
  byteOffset,
6939
- canonicalNaN,
6940
- littleEndian,
7586
+ canonicalNaN64Encoding,
7587
+ isLittleEndian,
6941
7588
  ]);
6942
7589
  } else {
6943
- return apply(FERAL_SET_FLOAT64, this, [byteOffset, value, littleEndian]);
7590
+ return apply(FERAL_SET_FLOAT64, this, [
7591
+ byteOffset,
7592
+ value,
7593
+ isLittleEndian,
7594
+ ]);
6944
7595
  }
6945
7596
  },
6946
7597
  };
@@ -6960,16 +7611,18 @@ const methods = {
6960
7611
  */
6961
7612
  const tameNaNSideChannel = () => {
6962
7613
  for (const [name, method] of entries(methods)) {
6963
- defineProperty(dataViewPrototype, name, {
6964
- // Since we're redefining properties that already exist, by omitting the
6965
- // other descriptor attributes here, they are unchanged.
6966
- value: method,
6967
- });
7614
+ if (hasOwn(dataViewPrototype, name)) {
7615
+ defineProperty(dataViewPrototype, name, {
7616
+ // Since we're redefining properties that already exist, by omitting the
7617
+ // other descriptor attributes here, they are unchanged.
7618
+ value: method,
7619
+ });
7620
+ }
6968
7621
  }
6969
7622
  };$h͏_once.tameNaNSideChannel(tameNaNSideChannel);
6970
7623
  })()
6971
7624
  ,
6972
- // === 23. ses ./src/tame-regexp-constructor.js ===
7625
+ // === 24. ses ./src/tame-regexp-constructor.js ===
6973
7626
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,TypeError,construct,defineProperties,getOwnPropertyDescriptor,speciesSymbol;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["speciesSymbol",[$h͏_a => (speciesSymbol = $h͏_a)]]]]]);
6974
7627
 
6975
7628
 
@@ -7037,7 +7690,7 @@ const methods = {
7037
7690
  }$h͏_once.default( tameRegExpConstructor);
7038
7691
  })()
7039
7692
  ,
7040
- // === 24. ses ./src/enablements.js ===
7693
+ // === 25. ses ./src/enablements.js ===
7041
7694
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let toStringTagSymbol,iteratorSymbol;$h͏_imports([["./commons.js", [["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]]]]]);
7042
7695
 
7043
7696
  /**
@@ -7284,7 +7937,7 @@ const methods = {
7284
7937
  };$h͏_once.severeEnablements(severeEnablements);
7285
7938
  })()
7286
7939
  ,
7287
- // === 25. ses ./src/enable-property-overrides.js ===
7940
+ // === 26. ses ./src/enable-property-overrides.js ===
7288
7941
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,isPrimitive,hasOwn,ownKeys,setHas,minEnablements,moderateEnablements,severeEnablements;$h͏_imports([["./commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]],["./enablements.js", [["minEnablements",[$h͏_a => (minEnablements = $h͏_a)]],["moderateEnablements",[$h͏_a => (moderateEnablements = $h͏_a)]],["severeEnablements",[$h͏_a => (severeEnablements = $h͏_a)]]]]]);
7289
7942
 
7290
7943
 
@@ -7498,8 +8151,9 @@ const methods = {
7498
8151
  }$h͏_once.default( enablePropertyOverrides);
7499
8152
  })()
7500
8153
  ,
7501
- // === 26. ses ./src/tame-locale-methods.js ===
7502
- ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Number,String,TypeError,defineProperty,getOwnPropertyNames,isPrimitive,regexpExec,assert;$h͏_imports([["./commons.js", [["Number",[$h͏_a => (Number = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
8154
+ // === 27. ses ./src/tame-locale-methods.js ===
8155
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Number,String,TypeError,defineProperty,freezeRegexp,getOwnPropertyNames,isPrimitive,regexpExec,assert;$h͏_imports([["./commons.js", [["Number",[$h͏_a => (Number = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
8156
+
7503
8157
 
7504
8158
 
7505
8159
 
@@ -7512,7 +8166,7 @@ const methods = {
7512
8166
 
7513
8167
  const { Fail, quote: q } = assert;
7514
8168
 
7515
- const localePattern = /^(\w*[a-z])Locale([A-Z]\w*)$/;
8169
+ const localePattern = freezeRegexp(/^(\w*[a-z])Locale([A-Z]\w*)$/);
7516
8170
 
7517
8171
  // Use concise methods to obtain named functions without constructor
7518
8172
  // behavior or `.prototype` property.
@@ -7579,7 +8233,7 @@ const numberToString = tamedMethods.toString;
7579
8233
  }$h͏_once.default( tameLocaleMethods);
7580
8234
  })()
7581
8235
  ,
7582
- // === 27. ses ./src/make-eval-function.js ===
8236
+ // === 28. ses ./src/make-eval-function.js ===
7583
8237
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/**
7584
8238
  * makeEvalFunction()
7585
8239
  * A safe version of the native eval function which relies on
@@ -7610,7 +8264,7 @@ const numberToString = tamedMethods.toString;
7610
8264
  };$h͏_once.makeEvalFunction(makeEvalFunction);
7611
8265
  })()
7612
8266
  ,
7613
- // === 28. ses ./src/make-function-constructor.js ===
8267
+ // === 29. ses ./src/make-function-constructor.js ===
7614
8268
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,arrayPop,defineProperties,getPrototypeOf,assert;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
7615
8269
 
7616
8270
 
@@ -7692,7 +8346,7 @@ const { Fail } = assert;
7692
8346
  };$h͏_once.makeFunctionConstructor(makeFunctionConstructor);
7693
8347
  })()
7694
8348
  ,
7695
- // === 29. ses ./src/global-object.js ===
8349
+ // === 30. ses ./src/global-object.js ===
7696
8350
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,assign,create,defineProperty,entries,freeze,hasOwn,unscopablesSymbol,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["unscopablesSymbol",[$h͏_a => (unscopablesSymbol = $h͏_a)]]]],["./make-eval-function.js", [["makeEvalFunction",[$h͏_a => (makeEvalFunction = $h͏_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor",[$h͏_a => (makeFunctionConstructor = $h͏_a)]]]],["./permits.js", [["constantProperties",[$h͏_a => (constantProperties = $h͏_a)]],["universalPropertyNames",[$h͏_a => (universalPropertyNames = $h͏_a)]]]]]);
7697
8351
 
7698
8352
 
@@ -7870,7 +8524,7 @@ const { Fail } = assert;
7870
8524
  };$h͏_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
7871
8525
  })()
7872
8526
  ,
7873
- // === 30. ses ./src/strict-scope-terminator.js ===
8527
+ // === 31. ses ./src/strict-scope-terminator.js ===
7874
8528
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,assert;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
7875
8529
 
7876
8530
 
@@ -7972,7 +8626,7 @@ const scopeProxyHandlerProperties = {
7972
8626
  );$h͏_once.strictScopeTerminator(strictScopeTerminator);
7973
8627
  })()
7974
8628
  ,
7975
- // === 31. ses ./src/sloppy-globals-scope-terminator.js ===
8629
+ // === 32. ses ./src/sloppy-globals-scope-terminator.js ===
7976
8630
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,create,freeze,getOwnPropertyDescriptors,reflectSet,strictScopeTerminatorHandler,alwaysThrowHandler;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler",[$h͏_a => (strictScopeTerminatorHandler = $h͏_a)]],["alwaysThrowHandler",[$h͏_a => (alwaysThrowHandler = $h͏_a)]]]]]);
7977
8631
 
7978
8632
 
@@ -8036,7 +8690,7 @@ const objTarget = freeze({ __proto__: null });
8036
8690
  freeze(createSloppyGlobalsScopeTerminator);
8037
8691
  })()
8038
8692
  ,
8039
- // === 32. ses ./src/eval-scope.js ===
8693
+ // === 33. ses ./src/eval-scope.js ===
8040
8694
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_EVAL,create,defineProperties,freeze,assert;$h͏_imports([["./commons.js", [["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
8041
8695
 
8042
8696
 
@@ -8128,8 +8782,13 @@ const { Fail } = assert;
8128
8782
  };$h͏_once.makeEvalScopeKit(makeEvalScopeKit);
8129
8783
  })()
8130
8784
  ,
8131
- // === 33. ses ./src/get-source-url.js ===
8132
- ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,regexpExec,stringSlice;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]]]]]);
8785
+ // === 34. ses ./src/get-source-url.js ===
8786
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,freezeRegexp,regexpExec,stringSlice;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]]]]]);
8787
+
8788
+
8789
+
8790
+
8791
+
8133
8792
 
8134
8793
  // Captures a key and value of the form #key=value or @key=value
8135
8794
  const sourceMetaEntryRegExp =
@@ -8140,8 +8799,10 @@ const sourceMetaEntryRegExp =
8140
8799
  // On account of the mechanics of regular expressions, scanning from the end
8141
8800
  // does not allow us to capture every pair, so getSourceURL must capture and
8142
8801
  // trim until there are no matching comments.
8143
- const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
8144
- `(?:\\s*//${sourceMetaEntryRegExp}|/\\*${sourceMetaEntryRegExp}\\s*\\*/)\\s*$`,
8802
+ const sourceMetaEntriesRegExp = freezeRegexp(
8803
+ new FERAL_REG_EXP(
8804
+ `(?:\\s*//${sourceMetaEntryRegExp}|/\\*${sourceMetaEntryRegExp}\\s*\\*/)\\s*$`,
8805
+ ),
8145
8806
  );
8146
8807
 
8147
8808
  /**
@@ -8162,7 +8823,7 @@ const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
8162
8823
  if (match === null) {
8163
8824
  break;
8164
8825
  }
8165
- src = stringSlice(src, 0, src.length - match[0].length);
8826
+ src = stringSlice(src, 0, -match[0].length);
8166
8827
 
8167
8828
  // We skip $0 since it contains the entire match.
8168
8829
  // The match contains four capture groups,
@@ -8181,8 +8842,9 @@ const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
8181
8842
  };$h͏_once.getSourceURL(getSourceURL);
8182
8843
  })()
8183
8844
  ,
8184
- // === 34. ses ./src/transforms.js ===
8185
- ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,SyntaxError,regexpReplace,sealRegexp,stringSearch,stringSlice,stringSplit,freeze,getSourceURL;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["regexpReplace",[$h͏_a => (regexpReplace = $h͏_a)]],["sealRegexp",[$h͏_a => (sealRegexp = $h͏_a)]],["stringSearch",[$h͏_a => (stringSearch = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./get-source-url.js", [["getSourceURL",[$h͏_a => (getSourceURL = $h͏_a)]]]]]);
8845
+ // === 35. ses ./src/transforms.js ===
8846
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,SyntaxError,freezeRegexp,regexpReplace,regexpSearch,sealRegexp,stringSlice,stringSplit,freeze,getSourceURL;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["regexpReplace",[$h͏_a => (regexpReplace = $h͏_a)]],["regexpSearch",[$h͏_a => (regexpSearch = $h͏_a)]],["sealRegexp",[$h͏_a => (sealRegexp = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./get-source-url.js", [["getSourceURL",[$h͏_a => (getSourceURL = $h͏_a)]]]]]);
8847
+
8186
8848
 
8187
8849
 
8188
8850
 
@@ -8205,7 +8867,7 @@ const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
8205
8867
  * @returns {number}
8206
8868
  */
8207
8869
  function getLineNumber(src, pattern) {
8208
- const index = stringSearch(src, pattern);
8870
+ const index = regexpSearch(pattern, src);
8209
8871
  if (index < 0) {
8210
8872
  return -1;
8211
8873
  }
@@ -8361,9 +9023,8 @@ const importPattern = sealRegexp(
8361
9023
 
8362
9024
  // /////////////////////////////////////////////////////////////////////////////
8363
9025
  $h͏_once.evadeImportExpressionTest(evadeImportExpressionTest);
8364
- const someDirectEvalPattern = new FERAL_REG_EXP(
8365
- '(^|[^.])\\beval(\\s*\\()',
8366
- 'g',
9026
+ const someDirectEvalPattern = freezeRegexp(
9027
+ new FERAL_REG_EXP('(^|[^.])\\beval(\\s*\\()'),
8367
9028
  );
8368
9029
 
8369
9030
  /**
@@ -8453,8 +9114,9 @@ $h͏_once.applyTransforms(applyTransforms);const transforms=freeze({
8453
9114
  });$h͏_once.transforms(transforms);
8454
9115
  })()
8455
9116
  ,
8456
- // === 35. ses ./src/scope-constants.js ===
8457
- ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayFilter,arrayIncludes,getOwnPropertyDescriptor,getOwnPropertyNames,hasOwn,regexpExec,Set,setHas;$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)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]]]);
9117
+ // === 36. ses ./src/scope-constants.js ===
9118
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayFilter,arrayIncludes,freezeRegexp,getOwnPropertyDescriptor,getOwnPropertyNames,hasOwn,regexpSearch,Set,setHas;$h͏_imports([["./commons.js", [["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["regexpSearch",[$h͏_a => (regexpSearch = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]]]);
9119
+
8458
9120
 
8459
9121
 
8460
9122
 
@@ -8547,7 +9209,7 @@ const reservedNames = new Set([
8547
9209
  * Note: \w is equivalent [a-zA-Z_0-9]
8548
9210
  * See 11.6.1 Identifier Names
8549
9211
  */
8550
- const identifierPattern = /^[a-zA-Z_$][\w$]*$/;
9212
+ const identifierPattern = freezeRegexp(/^[a-zA-Z_$][\w$]*$/);
8551
9213
 
8552
9214
  /**
8553
9215
  * isValidIdentifierName()
@@ -8556,7 +9218,7 @@ const identifierPattern = /^[a-zA-Z_$][\w$]*$/;
8556
9218
  * @param {string} name
8557
9219
  */
8558
9220
  const isValidIdentifierName = name =>
8559
- !setHas(reservedNames, name) && !!regexpExec(identifierPattern, name);
9221
+ !setHas(reservedNames, name) && regexpSearch(identifierPattern, name) !== -1;
8560
9222
 
8561
9223
  /*
8562
9224
  * isImmutableDataProperty
@@ -8630,7 +9292,7 @@ function isImmutableDataProperty(obj, name) {
8630
9292
  };$h͏_once.getScopeConstants(getScopeConstants);
8631
9293
  })()
8632
9294
  ,
8633
- // === 36. ses ./src/make-evaluate.js ===
9295
+ // === 37. ses ./src/make-evaluate.js ===
8634
9296
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,apply,getScopeConstants;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]]]],["./scope-constants.js", [["getScopeConstants",[$h͏_a => (getScopeConstants = $h͏_a)]]]]]);
8635
9297
 
8636
9298
 
@@ -8743,7 +9405,7 @@ function buildOptimizer(constants, name) {
8743
9405
  };$h͏_once.makeEvaluate(makeEvaluate);
8744
9406
  })()
8745
9407
  ,
8746
- // === 37. ses ./src/make-safe-evaluator.js ===
9408
+ // === 38. ses ./src/make-safe-evaluator.js ===
8747
9409
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let apply,arrayFlatMap,freeze,identity,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h͏_imports([["./commons.js", [["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminator",[$h͏_a => (strictScopeTerminator = $h͏_a)]]]],["./sloppy-globals-scope-terminator.js", [["createSloppyGlobalsScopeTerminator",[$h͏_a => (createSloppyGlobalsScopeTerminator = $h͏_a)]]]],["./eval-scope.js", [["makeEvalScopeKit",[$h͏_a => (makeEvalScopeKit = $h͏_a)]]]],["./transforms.js", [["applyTransforms",[$h͏_a => (applyTransforms = $h͏_a)]],["mandatoryTransforms",[$h͏_a => (mandatoryTransforms = $h͏_a)]]]],["./make-evaluate.js", [["makeEvaluate",[$h͏_a => (makeEvaluate = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
8748
9410
 
8749
9411
 
@@ -8858,7 +9520,7 @@ const { Fail } = assert;
8858
9520
  };$h͏_once.makeSafeEvaluator(makeSafeEvaluator);
8859
9521
  })()
8860
9522
  ,
8861
- // === 38. ses ./src/tame-function-tostring.js ===
9523
+ // === 39. ses ./src/tame-function-tostring.js ===
8862
9524
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,defineProperty,freeze,functionPrototype,functionToString,stringEndsWith,weaksetAdd,weaksetHas;$h͏_imports([["./commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["functionToString",[$h͏_a => (functionToString = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);
8863
9525
 
8864
9526
 
@@ -8911,7 +9573,7 @@ let markVirtualizedNativeFunction;
8911
9573
  };$h͏_once.tameFunctionToString(tameFunctionToString);
8912
9574
  })()
8913
9575
  ,
8914
- // === 39. ses ./src/tame-domains.js ===
9576
+ // === 40. ses ./src/tame-domains.js ===
8915
9577
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,globalThis,getOwnPropertyDescriptor,defineProperty;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);Object.defineProperty(tameDomains,'name',{value:"tameDomains"});$h͏_once.tameDomains(tameDomains);
8916
9578
 
8917
9579
 
@@ -8955,7 +9617,7 @@ let markVirtualizedNativeFunction;
8955
9617
  }
8956
9618
  })()
8957
9619
  ,
8958
- // === 40. ses ./src/tame-module-source.js ===
9620
+ // === 41. ses ./src/tame-module-source.js ===
8959
9621
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let functionPrototype,getPrototypeOf,globalThis,objectPrototype,setPrototypeOf;$h͏_imports([["./commons.js", [["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]]]]]);
8960
9622
 
8961
9623
 
@@ -9009,7 +9671,7 @@ let markVirtualizedNativeFunction;
9009
9671
  };$h͏_once.tameModuleSource(tameModuleSource);
9010
9672
  })()
9011
9673
  ,
9012
- // === 41. ses ./src/error/console.js ===
9674
+ // === 42. ses ./src/error/console.js ===
9013
9675
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,arrayFilter,arrayFlatMap,arrayMap,arrayPop,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,stringIncludes,stringSplit,weaksetAdd,weaksetHas;$h͏_imports([["../commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["stringIncludes",[$h͏_a => (stringIncludes = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);
9014
9676
 
9015
9677
 
@@ -9553,7 +10215,7 @@ freeze(defineCausalConsoleFromLogger);
9553
10215
  freeze(filterConsole);
9554
10216
  })()
9555
10217
  ,
9556
- // === 42. ses ./src/error/unhandled-rejection.js ===
10218
+ // === 43. ses ./src/error/unhandled-rejection.js ===
9557
10219
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FinalizationRegistry,Map,mapGet,mapDelete,WeakMap,mapSet,finalizationRegistryRegister,weakmapSet,weakmapGet,mapEntries,mapHas;$h͏_imports([["../commons.js", [["FinalizationRegistry",[$h͏_a => (FinalizationRegistry = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapDelete",[$h͏_a => (mapDelete = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["finalizationRegistryRegister",[$h͏_a => (finalizationRegistryRegister = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["mapEntries",[$h͏_a => (mapEntries = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]]]]]);
9558
10220
 
9559
10221
 
@@ -9678,7 +10340,7 @@ freeze(filterConsole);
9678
10340
  };$h͏_once.makeRejectionHandlers(makeRejectionHandlers);
9679
10341
  })()
9680
10342
  ,
9681
- // === 43. ses ./src/error/tame-console.js ===
10343
+ // === 44. ses ./src/error/tame-console.js ===
9682
10344
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,apply,defineProperty,freeze,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h͏_imports([["../commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./assert.js", [["loggedErrorHandler",[$h͏_a => (defaultHandler = $h͏_a)]]]],["./console.js", [["makeCausalConsole",[$h͏_a => (makeCausalConsole = $h͏_a)]]]],["./unhandled-rejection.js", [["makeRejectionHandlers",[$h͏_a => (makeRejectionHandlers = $h͏_a)]]]]]);
9683
10345
 
9684
10346
 
@@ -9878,8 +10540,10 @@ const wrapLogger = (logger, thisArg) =>
9878
10540
  };$h͏_once.tameConsole(tameConsole);
9879
10541
  })()
9880
10542
  ,
9881
- // === 44. ses ./src/error/tame-v8-error-constructor.js ===
9882
- ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$h͏_imports([["../commons.js", [["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);
10543
+ // === 45. ses ./src/error/tame-v8-error-constructor.js ===
10544
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,freezeRegexp,fromEntries,reflectSet,regexpExec,regexpSearch,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$h͏_imports([["../commons.js", [["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["freezeRegexp",[$h͏_a => (freezeRegexp = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["regexpSearch",[$h͏_a => (regexpSearch = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);
10545
+
10546
+
9883
10547
 
9884
10548
 
9885
10549
 
@@ -9944,27 +10608,33 @@ const safeV8SST = sst => arrayMap(sst, safeV8CallSiteFacet);
9944
10608
  // If it has `/node_modules/` anywhere in it, on Node it is likely
9945
10609
  // to be a dependent package of the current package, and so to
9946
10610
  // be an infrastructure frame to be dropped from concise stack traces.
9947
- const FILENAME_NODE_DEPENDENTS_CENSOR = /\/node_modules\//;
10611
+ const FILENAME_NODE_DEPENDENTS_CENSOR = freezeRegexp(/\/node_modules\//);
9948
10612
 
9949
10613
  // If it begins with `internal/` or `node:internal` then it is likely
9950
10614
  // part of the node infrustructre itself, to be dropped from concise
9951
10615
  // stack traces.
9952
- const FILENAME_NODE_INTERNALS_CENSOR = /^(?:node:)?internal\//;
10616
+ const FILENAME_NODE_INTERNALS_CENSOR = freezeRegexp(/^(?:node:)?internal\//);
9953
10617
 
9954
10618
  // Frames within SES `assert.js` should be dropped from concise stack traces, as
9955
10619
  // these are just steps towards creating the error object in question.
9956
- const FILENAME_ASSERT_CENSOR = /\/packages\/ses\/src\/error\/assert\.js$/;
10620
+ const FILENAME_ASSERT_CENSOR = freezeRegexp(
10621
+ /\/packages\/ses\/src\/error\/assert\.js$/,
10622
+ );
9957
10623
 
9958
10624
  // Frames within the `eventual-send` shim should be dropped so that concise
9959
10625
  // deep stacks omit the internals of the eventual-sending mechanism causing
9960
10626
  // asynchronous messages to be sent.
9961
10627
  // Note that the eventual-send package will move from agoric-sdk to
9962
10628
  // Endo, so this rule will be of general interest.
9963
- const FILENAME_EVENTUAL_SEND_CENSOR = /\/packages\/eventual-send\/src\//;
10629
+ const FILENAME_EVENTUAL_SEND_CENSOR = freezeRegexp(
10630
+ /\/packages\/eventual-send\/src\//,
10631
+ );
9964
10632
 
9965
10633
  // Frames within the `ses-ava` package should be dropped from concise stack
9966
10634
  // traces, as they just support exposing error details to AVA.
9967
- const FILENAME_SES_AVA_CENSOR = /\/packages\/ses-ava\/src\/ses-ava-test\.js$/;
10635
+ const FILENAME_SES_AVA_CENSOR = freezeRegexp(
10636
+ /\/packages\/ses-ava\/src\/ses-ava-test\.js$/,
10637
+ );
9968
10638
 
9969
10639
  // Any stack frame whose `fileName` matches any of these censor patterns
9970
10640
  // will be omitted from concise stacks.
@@ -9987,7 +10657,7 @@ const FILENAME_CENSORS = [
9987
10657
  return false;
9988
10658
  }
9989
10659
  for (const filter of FILENAME_CENSORS) {
9990
- if (regexpExec(filter, fileName)) {
10660
+ if (regexpSearch(filter, fileName) !== -1) {
9991
10661
  return false;
9992
10662
  }
9993
10663
  }
@@ -10004,7 +10674,9 @@ const FILENAME_CENSORS = [
10004
10674
  //
10005
10675
  // See thread starting at
10006
10676
  // https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
10007
- $h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1=/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/;
10677
+ $h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1=freezeRegexp(
10678
+ /^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/,
10679
+ );
10008
10680
 
10009
10681
  // The ad-hoc rule of the current pattern is that any likely-file-path or
10010
10682
  // likely url-path prefix consisting of `.../` should get dropped.
@@ -10016,7 +10688,7 @@ $h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1=/^((?:
10016
10688
  //
10017
10689
  // See thread starting at
10018
10690
  // https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
10019
- const CALLSITE_ELLIPSIS_PATTERN2 = /^((?:.*[( ])?)\.\.\.\/(.+)$/;
10691
+ const CALLSITE_ELLIPSIS_PATTERN2 = freezeRegexp(/^((?:.*[( ])?)\.\.\.\/(.+)$/);
10020
10692
 
10021
10693
  // The ad-hoc rule of the current pattern is that any likely-file-path or
10022
10694
  // likely url-path prefix, ending in a `/` and prior to `package/` should get
@@ -10028,7 +10700,9 @@ const CALLSITE_ELLIPSIS_PATTERN2 = /^((?:.*[( ])?)\.\.\.\/(.+)$/;
10028
10700
  // `'Object.bar (packages/errors/test/deep-send.test.js:13:21)'`.
10029
10701
  // Note that `/packages/` is a convention for monorepos encouraged by
10030
10702
  // lerna.
10031
- const CALLSITE_PACKAGES_PATTERN = /^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/;
10703
+ const CALLSITE_PACKAGES_PATTERN = freezeRegexp(
10704
+ /^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/,
10705
+ );
10032
10706
 
10033
10707
  // The ad-hoc rule of the current pattern is that any likely-file-path or
10034
10708
  // likely url-path prefix of the form `file://` but not `file:///` gets
@@ -10044,7 +10718,9 @@ const CALLSITE_PACKAGES_PATTERN = /^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/;
10044
10718
  // clickable without removing the `file:///`, whereas `file://` usually precedes
10045
10719
  // a relative path which, for whatever vscode reason, is not clickable until the
10046
10720
  // `file://` is removed.
10047
- const CALLSITE_FILE_2SLASH_PATTERN = /^((?:.*[( ])?)file:\/\/([^/].*)$/;
10721
+ const CALLSITE_FILE_2SLASH_PATTERN = freezeRegexp(
10722
+ /^((?:.*[( ])?)file:\/\/([^/].*)$/,
10723
+ );
10048
10724
 
10049
10725
  // The use of these callSite patterns below assumes that any match will bind
10050
10726
  // capture groups containing the parts of the original string we want
@@ -10270,7 +10946,7 @@ const CALLSITE_PATTERNS = [
10270
10946
  };$h͏_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
10271
10947
  })()
10272
10948
  ,
10273
- // === 45. ses ./src/error/tame-error-constructor.js ===
10949
+ // === 46. ses ./src/error/tame-error-constructor.js ===
10274
10950
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_ERROR,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,getOwnPropertyDescriptors,NativeErrors,tameV8ErrorConstructor;$h͏_imports([["../commons.js", [["FERAL_ERROR",[$h͏_a => (FERAL_ERROR = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["../permits.js", [["NativeErrors",[$h͏_a => (NativeErrors = $h͏_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor",[$h͏_a => (tameV8ErrorConstructor = $h͏_a)]]]]]);
10275
10951
 
10276
10952
 
@@ -10315,10 +10991,16 @@ let initialGetStackString = tamedMethods.getStackString;
10315
10991
  typeof originalCaptureStackTrace === 'function' ? 'v8' : 'unknown';
10316
10992
 
10317
10993
  const makeErrorConstructor = (_ = {}) => {
10994
+ /**
10995
+ * @this {ErrorConstructor}
10996
+ * @param {...any} rest
10997
+ */
10318
10998
  // eslint-disable-next-line no-shadow
10319
10999
  const ResultError = function Error(...rest) {
10320
11000
  let error;
10321
11001
  if (new.target === undefined) {
11002
+ // Forward caller's `this` to FERAL_ERROR to keep the shim transparent.
11003
+ // Error() as a function ignores `this` per spec, but do not narrow it.
10322
11004
  error = apply(FERAL_ERROR, this, rest);
10323
11005
  } else {
10324
11006
  error = construct(FERAL_ERROR, rest, new.target);
@@ -10557,7 +11239,7 @@ let initialGetStackString = tamedMethods.getStackString;
10557
11239
  }$h͏_once.default( tameErrorConstructor);
10558
11240
  })()
10559
11241
  ,
10560
- // === 46. ses ./src/module-load.js ===
11242
+ // === 47. ses ./src/module-load.js ===
10561
11243
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,Map,Set,TypeError,arrayJoin,arrayMap,arrayPush,arraySome,create,freeze,generatorNext,generatorThrow,getOwnPropertyNames,isArray,isPrimitive,mapGet,mapHas,mapSet,promiseThen,setAdd,values,weakmapGet,weakmapHas,makeError,annotateError,q,b,X;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["generatorNext",[$h͏_a => (generatorNext = $h͏_a)]],["generatorThrow",[$h͏_a => (generatorThrow = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["values",[$h͏_a => (values = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]]]],["./error/assert.js", [["makeError",[$h͏_a => (makeError = $h͏_a)]],["annotateError",[$h͏_a => (annotateError = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]],["b",[$h͏_a => (b = $h͏_a)]],["X",[$h͏_a => (X = $h͏_a)]]]]]);
10562
11244
 
10563
11245
 
@@ -11279,7 +11961,7 @@ const preferAsync = (asyncImpl, _syncImpl) => asyncImpl;
11279
11961
  };$h͏_once.loadNow(loadNow);
11280
11962
  })()
11281
11963
  ,
11282
- // === 47. ses ./src/module-proxy.js ===
11964
+ // === 48. ses ./src/module-proxy.js ===
11283
11965
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,toStringTagSymbol,weakmapSet,assert;$h͏_imports([["./module-load.js", [["makeAlias",[$h͏_a => (makeAlias = $h͏_a)]]]],["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["reflectGet",[$h͏_a => (reflectGet = $h͏_a)]],["reflectGetOwnPropertyDescriptor",[$h͏_a => (reflectGetOwnPropertyDescriptor = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["reflectIsExtensible",[$h͏_a => (reflectIsExtensible = $h͏_a)]],["reflectPreventExtensions",[$h͏_a => (reflectPreventExtensions = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
11284
11966
 
11285
11967
 
@@ -11482,7 +12164,7 @@ const { quote: q } = assert;
11482
12164
  };$h͏_once.getDeferredExports(getDeferredExports);
11483
12165
  })()
11484
12166
  ,
11485
- // === 48. ses ./src/compartment-evaluate.js ===
12167
+ // === 49. ses ./src/compartment-evaluate.js ===
11486
12168
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,arrayPush,create,getOwnPropertyDescriptors,evadeHtmlCommentTest,evadeImportExpressionTest,rejectSomeDirectEvalExpressions,makeSafeEvaluator;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./transforms.js", [["evadeHtmlCommentTest",[$h͏_a => (evadeHtmlCommentTest = $h͏_a)]],["evadeImportExpressionTest",[$h͏_a => (evadeImportExpressionTest = $h͏_a)]],["rejectSomeDirectEvalExpressions",[$h͏_a => (rejectSomeDirectEvalExpressions = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);
11487
12169
 
11488
12170
 
@@ -11578,7 +12260,7 @@ const { quote: q } = assert;
11578
12260
  };$h͏_once.compartmentEvaluate(compartmentEvaluate);
11579
12261
  })()
11580
12262
  ,
11581
- // === 49. ses ./src/module-instance.js ===
12263
+ // === 50. ses ./src/module-instance.js ===
11582
12264
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,reflectHas,assign,compartmentEvaluate;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./commons.js", [["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["arraySort",[$h͏_a => (arraySort = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["keys",[$h͏_a => (keys = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]]]);
11583
12265
 
11584
12266
 
@@ -12082,7 +12764,7 @@ $h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleI
12082
12764
  };$h͏_once.makeModuleInstance(makeModuleInstance);
12083
12765
  })()
12084
12766
  ,
12085
- // === 50. ses ./src/module-link.js ===
12767
+ // === 51. ses ./src/module-link.js ===
12086
12768
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,makeModuleInstance,makeVirtualModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isPrimitive,mapGet,mapHas,mapSet,weakmapGet;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-instance.js", [["makeModuleInstance",[$h͏_a => (makeModuleInstance = $h͏_a)]],["makeVirtualModuleInstance",[$h͏_a => (makeVirtualModuleInstance = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]]]]]);
12087
12769
 
12088
12770
 
@@ -12244,7 +12926,7 @@ function validateModuleSource(moduleSource, moduleSpecifier) {
12244
12926
  };$h͏_once.instantiate(instantiate);
12245
12927
  })()
12246
12928
  ,
12247
- // === 51. ses ./src/compartment.js ===
12929
+ // === 52. ses ./src/compartment.js ===
12248
12930
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Map,TypeError,WeakMap,arrayFlatMap,assign,defineProperties,identity,promiseThen,toStringTagSymbol,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,assert,assertEqual,q,sharedGlobalPropertyNames,load,loadNow,link,getDeferredExports,compartmentEvaluate,makeSafeEvaluator;$h͏_imports([["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectSymbolUnscopables",[$h͏_a => (setGlobalObjectSymbolUnscopables = $h͏_a)]],["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["assertEqual",[$h͏_a => (assertEqual = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]]]],["./permits.js", [["sharedGlobalPropertyNames",[$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]]]],["./module-load.js", [["load",[$h͏_a => (load = $h͏_a)]],["loadNow",[$h͏_a => (loadNow = $h͏_a)]]]],["./module-link.js", [["link",[$h͏_a => (link = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);
12249
12931
 
12250
12932
 
@@ -12582,7 +13264,7 @@ defineProperties(InertCompartment, {
12582
13264
  { parentCompartment = undefined, enforceNew = false } = {},
12583
13265
  ) => {
12584
13266
  /**
12585
- *
13267
+ * @this {Compartment}
12586
13268
  * @param {CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
12587
13269
  */
12588
13270
  function Compartment(...args) {
@@ -12606,7 +13288,9 @@ defineProperties(InertCompartment, {
12606
13288
  importMetaHook,
12607
13289
  __noNamespaceBox__: noNamespaceBox = false,
12608
13290
  noAggregateLoadErrors = false,
12609
- } = compartmentOptions(...args);
13291
+ } = compartmentOptions(
13292
+ .../** @type {Parameters<typeof compartmentOptions>} */ (args),
13293
+ );
12610
13294
  const globalTransforms = arrayFlatMap(
12611
13295
  [transforms, __shimTransforms__],
12612
13296
  identity,
@@ -12623,7 +13307,7 @@ defineProperties(InertCompartment, {
12623
13307
 
12624
13308
  const globalObject = {};
12625
13309
 
12626
- const compartment = this;
13310
+ const compartment = /** @type {Compartment} */ (this);
12627
13311
 
12628
13312
  setGlobalObjectSymbolUnscopables(globalObject);
12629
13313
 
@@ -12644,7 +13328,7 @@ defineProperties(InertCompartment, {
12644
13328
  intrinsics,
12645
13329
  newGlobalPropertyNames: sharedGlobalPropertyNames,
12646
13330
  makeCompartmentConstructor: targetMakeCompartmentConstructor,
12647
- parentCompartment: this,
13331
+ parentCompartment: compartment,
12648
13332
  markVirtualizedNativeFunction,
12649
13333
  });
12650
13334
 
@@ -12696,7 +13380,7 @@ defineProperties(InertCompartment, {
12696
13380
  return exportsProxy;
12697
13381
  };
12698
13382
 
12699
- weakmapSet(privateFields, this, {
13383
+ weakmapSet(privateFields, compartment, {
12700
13384
  name: `${name}`,
12701
13385
  globalTransforms,
12702
13386
  globalObject,
@@ -12724,7 +13408,7 @@ defineProperties(InertCompartment, {
12724
13408
  };$h͏_once.makeCompartmentConstructor(makeCompartmentConstructor);
12725
13409
  })()
12726
13410
  ,
12727
- // === 52. ses ./src/get-anonymous-intrinsics.js ===
13411
+ // === 53. ses ./src/get-anonymous-intrinsics.js ===
12728
13412
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,FERAL_FLOAT64_ARRAY,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,globalThis,assign,AsyncGeneratorFunctionInstance,ArrayBuffer,InertCompartment;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_FLOAT64_ARRAY",[$h͏_a => (FERAL_FLOAT64_ARRAY = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["iterateArray",[$h͏_a => (iterateArray = $h͏_a)]],["iterateMap",[$h͏_a => (iterateMap = $h͏_a)]],["iterateSet",[$h͏_a => (iterateSet = $h͏_a)]],["iterateString",[$h͏_a => (iterateString = $h͏_a)]],["matchAllRegExp",[$h͏_a => (matchAllRegExp = $h͏_a)]],["matchAllSymbol",[$h͏_a => (matchAllSymbol = $h͏_a)]],["regexpPrototype",[$h͏_a => (regexpPrototype = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["AsyncGeneratorFunctionInstance",[$h͏_a => (AsyncGeneratorFunctionInstance = $h͏_a)]],["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]]]],["./compartment.js", [["InertCompartment",[$h͏_a => (InertCompartment = $h͏_a)]]]]]);
12729
13413
 
12730
13414
 
@@ -12787,7 +13471,7 @@ function makeArguments() {
12787
13471
 
12788
13472
  // 21.2.7.1 The %RegExpStringIteratorPrototype% Object
12789
13473
  const RegExpStringIterator =
12790
- regexpPrototype[matchAllSymbol] && matchAllRegExp(/./);
13474
+ regexpPrototype[matchAllSymbol] && matchAllRegExp(/./, '');
12791
13475
  const RegExpStringIteratorPrototype =
12792
13476
  RegExpStringIterator && getPrototypeOf(RegExpStringIterator);
12793
13477
 
@@ -12907,7 +13591,7 @@ function makeArguments() {
12907
13591
  };$h͏_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
12908
13592
  })()
12909
13593
  ,
12910
- // === 53. ses ./src/tame-harden.js ===
13594
+ // === 54. ses ./src/tame-harden.js ===
12911
13595
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let freeze;$h͏_imports([["./commons.js", [["freeze",[$h͏_a => (freeze = $h͏_a)]]]]]);
12912
13596
 
12913
13597
 
@@ -12939,7 +13623,7 @@ function makeArguments() {
12939
13623
  freeze(tameHarden);
12940
13624
  })()
12941
13625
  ,
12942
- // === 54. ses ./src/tame-symbol-constructor.js ===
13626
+ // === 55. ses ./src/tame-symbol-constructor.js ===
12943
13627
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap,functionBind;$h͏_imports([["./commons.js", [["Symbol",[$h͏_a => (Symbol = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["functionBind",[$h͏_a => (functionBind = $h͏_a)]]]]]);
12944
13628
 
12945
13629
 
@@ -13006,7 +13690,7 @@ freeze(tameHarden);
13006
13690
  };$h͏_once.tameSymbolConstructor(tameSymbolConstructor);
13007
13691
  })()
13008
13692
  ,
13009
- // === 55. ses ./src/tame-faux-data-properties.js ===
13693
+ // === 56. ses ./src/tame-faux-data-properties.js ===
13010
13694
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getOwnPropertyDescriptor,apply,defineProperty,toStringTagSymbol;$h͏_imports([["./commons.js", [["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);
13011
13695
 
13012
13696
 
@@ -13219,7 +13903,7 @@ const throws = thunk => {
13219
13903
  };$h͏_once.tameFauxDataProperties(tameFauxDataProperties);
13220
13904
  })()
13221
13905
  ,
13222
- // === 56. ses ./src/tame-regenerator-runtime.js ===
13906
+ // === 57. ses ./src/tame-regenerator-runtime.js ===
13223
13907
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let defineProperty,iteratorPrototype,iteratorSymbol,hasOwn;$h͏_imports([["./commons.js", [["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["iteratorPrototype",[$h͏_a => (iteratorPrototype = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]]]);
13224
13908
 
13225
13909
 
@@ -13251,7 +13935,7 @@ const throws = thunk => {
13251
13935
  };$h͏_once.tameRegeneratorRuntime(tameRegeneratorRuntime);
13252
13936
  })()
13253
13937
  ,
13254
- // === 57. ses ./src/shim-arraybuffer-transfer.js ===
13938
+ // === 58. ses ./src/shim-arraybuffer-transfer.js ===
13255
13939
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let ArrayBuffer,arrayBufferPrototype,arrayBufferSlice,arrayBufferGetByteLength,Uint8Array,typedArraySet,globalThis,TypeError,defineProperty;$h͏_imports([["./commons.js", [["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]],["arrayBufferPrototype",[$h͏_a => (arrayBufferPrototype = $h͏_a)]],["arrayBufferSlice",[$h͏_a => (arrayBufferSlice = $h͏_a)]],["arrayBufferGetByteLength",[$h͏_a => (arrayBufferGetByteLength = $h͏_a)]],["Uint8Array",[$h͏_a => (Uint8Array = $h͏_a)]],["typedArraySet",[$h͏_a => (typedArraySet = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);
13256
13940
 
13257
13941
 
@@ -13339,7 +14023,7 @@ const throws = thunk => {
13339
14023
  };$h͏_once.shimArrayBufferTransfer(shimArrayBufferTransfer);
13340
14024
  })()
13341
14025
  ,
13342
- // === 58. ses ./src/reporting.js ===
14026
+ // === 59. ses ./src/reporting.js ===
13343
14027
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,assert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);
13344
14028
 
13345
14029
 
@@ -13483,8 +14167,9 @@ const mute = () => {};
13483
14167
  };$h͏_once.reportInGroup(reportInGroup);
13484
14168
  })()
13485
14169
  ,
13486
- // === 59. ses ./src/lockdown.js ===
13487
- ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,symbolFor,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameNaNSideChannel,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["@endo/immutable-arraybuffer/shim.js", []],["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["noEvalEvaluate",[$h͏_a => (noEvalEvaluate = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener",[$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector",[$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default",[$h͏_a => (removeUnpermittedIntrinsics = $h͏_a)]]]],["./tame-function-constructors.js", [["default",[$h͏_a => (tameFunctionConstructors = $h͏_a)]]]],["./tame-date-constructor.js", [["default",[$h͏_a => (tameDateConstructor = $h͏_a)]]]],["./tame-math-object.js", [["default",[$h͏_a => (tameMathObject = $h͏_a)]]]],["./tame-nan-sidechannel.js", [["tameNaNSideChannel",[$h͏_a => (tameNaNSideChannel = $h͏_a)]]]],["./tame-regexp-constructor.js", [["default",[$h͏_a => (tameRegExpConstructor = $h͏_a)]]]],["./enable-property-overrides.js", [["default",[$h͏_a => (enablePropertyOverrides = $h͏_a)]]]],["./tame-locale-methods.js", [["default",[$h͏_a => (tameLocaleMethods = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]],["./permits.js", [["initialGlobalPropertyNames",[$h͏_a => (initialGlobalPropertyNames = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./tame-domains.js", [["tameDomains",[$h͏_a => (tameDomains = $h͏_a)]]]],["./tame-module-source.js", [["tameModuleSource",[$h͏_a => (tameModuleSource = $h͏_a)]]]],["./error/tame-console.js", [["tameConsole",[$h͏_a => (tameConsole = $h͏_a)]]]],["./error/tame-error-constructor.js", [["default",[$h͏_a => (tameErrorConstructor = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics",[$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden",[$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor",[$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties",[$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime",[$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer",[$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup",[$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);
14170
+ // === 60. ses ./src/lockdown.js ===
14171
+ ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,symbolFor,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameTemporalObject,tameNaNSideChannel,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["@endo/immutable-arraybuffer/shim.js", []],["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["noEvalEvaluate",[$h͏_a => (noEvalEvaluate = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener",[$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector",[$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default",[$h͏_a => (removeUnpermittedIntrinsics = $h͏_a)]]]],["./tame-function-constructors.js", [["default",[$h͏_a => (tameFunctionConstructors = $h͏_a)]]]],["./tame-date-constructor.js", [["default",[$h͏_a => (tameDateConstructor = $h͏_a)]]]],["./tame-math-object.js", [["default",[$h͏_a => (tameMathObject = $h͏_a)]]]],["./tame-temporal-object.js", [["default",[$h͏_a => (tameTemporalObject = $h͏_a)]]]],["./tame-nan-sidechannel.js", [["tameNaNSideChannel",[$h͏_a => (tameNaNSideChannel = $h͏_a)]]]],["./tame-regexp-constructor.js", [["default",[$h͏_a => (tameRegExpConstructor = $h͏_a)]]]],["./enable-property-overrides.js", [["default",[$h͏_a => (enablePropertyOverrides = $h͏_a)]]]],["./tame-locale-methods.js", [["default",[$h͏_a => (tameLocaleMethods = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]],["./permits.js", [["initialGlobalPropertyNames",[$h͏_a => (initialGlobalPropertyNames = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./tame-domains.js", [["tameDomains",[$h͏_a => (tameDomains = $h͏_a)]]]],["./tame-module-source.js", [["tameModuleSource",[$h͏_a => (tameModuleSource = $h͏_a)]]]],["./error/tame-console.js", [["tameConsole",[$h͏_a => (tameConsole = $h͏_a)]]]],["./error/tame-error-constructor.js", [["default",[$h͏_a => (tameErrorConstructor = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics",[$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden",[$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor",[$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties",[$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime",[$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer",[$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup",[$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);
14172
+
13488
14173
 
13489
14174
 
13490
14175
 
@@ -13840,6 +14525,7 @@ const probeHostEvaluators = () => {
13840
14525
  addIntrinsics(tameDateConstructor());
13841
14526
  addIntrinsics(tameErrorConstructor(errorTaming, stackFiltering));
13842
14527
  addIntrinsics(tameMathObject());
14528
+ addIntrinsics(tameTemporalObject());
13843
14529
  tameNaNSideChannel();
13844
14530
  addIntrinsics(tameRegExpConstructor(regExpTaming));
13845
14531
  addIntrinsics(tameSymbolConstructor());
@@ -14068,7 +14754,7 @@ const probeHostEvaluators = () => {
14068
14754
  };$h͏_once.repairIntrinsics(repairIntrinsics);
14069
14755
  })()
14070
14756
  ,
14071
- // === 60. ses ./src/lockdown-shim.js ===
14757
+ // === 61. ses ./src/lockdown-shim.js ===
14072
14758
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,repairIntrinsics;$h͏_imports([["./assert-sloppy-mode.js", []],["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./lockdown.js", [["repairIntrinsics",[$h͏_a => (repairIntrinsics = $h͏_a)]]]]]);
14073
14759
 
14074
14760
 
@@ -14108,7 +14794,7 @@ globalThis.repairIntrinsics = options => {
14108
14794
  };
14109
14795
  })()
14110
14796
  ,
14111
- // === 61. ses ./src/compartment-shim.js ===
14797
+ // === 62. ses ./src/compartment-shim.js ===
14112
14798
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics,chooseReporter;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./intrinsics.js", [["getGlobalIntrinsics",[$h͏_a => (getGlobalIntrinsics = $h͏_a)]]]],["./reporting.js", [["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);
14113
14799
 
14114
14800
 
@@ -14133,14 +14819,14 @@ globalThis.Compartment = makeCompartmentConstructor(
14133
14819
  );
14134
14820
  })()
14135
14821
  ,
14136
- // === 62. ses ./src/assert-shim.js ===
14822
+ // === 63. ses ./src/assert-shim.js ===
14137
14823
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeAssert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]]]);
14138
14824
 
14139
14825
 
14140
14826
  globalThis.assert = makeAssert(undefined, true);
14141
14827
  })()
14142
14828
  ,
14143
- // === 63. ses ./src/console-shim.js ===
14829
+ // === 64. ses ./src/console-shim.js ===
14144
14830
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let symbolFor,globalThis,defineCausalConsoleFromLogger,loggedErrorHandler;$h͏_imports([["./commons.js", [["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/console.js", [["defineCausalConsoleFromLogger",[$h͏_a => (defineCausalConsoleFromLogger = $h͏_a)]]]],["./error/assert.js", [["loggedErrorHandler",[$h͏_a => (loggedErrorHandler = $h͏_a)]]]]]);
14145
14831
 
14146
14832
 
@@ -14193,7 +14879,7 @@ globalThis[MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA] =
14193
14879
  makeCausalConsoleFromLoggerForSesAva;
14194
14880
  })()
14195
14881
  ,
14196
- // === 64. ses ./index.js ===
14882
+ // === 65. ses ./index.js ===
14197
14883
  ({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/lockdown-shim.js", []],["./src/compartment-shim.js", []],["./src/assert-shim.js", []],["./src/console-shim.js", []]]);
14198
14884
  })()
14199
14885
  ,