porffor 0.24.4 → 0.24.5
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.
@@ -368,31 +368,31 @@ export const __Date_UTC = (year: unknown, month: unknown, date: unknown, hours:
|
|
368
368
|
// todo: passing undefined to params should not act like no arg was passed
|
369
369
|
|
370
370
|
// 1. Let y be ? ToNumber(year).
|
371
|
-
const y: number =
|
371
|
+
const y: number = ecma262.ToNumber(year);
|
372
372
|
|
373
373
|
// 2. If month is present, let m be ? ToNumber(month); else let m be +0𝔽.
|
374
374
|
let m: number = 0;
|
375
|
-
if (Porffor.rawType(month) != Porffor.TYPES.undefined) m =
|
375
|
+
if (Porffor.rawType(month) != Porffor.TYPES.undefined) m = ecma262.ToNumber(month);
|
376
376
|
|
377
377
|
// 3. If date is present, let dt be ? ToNumber(date); else let dt be 1𝔽.
|
378
378
|
let dt: number = 1;
|
379
|
-
if (Porffor.rawType(date) != Porffor.TYPES.undefined) dt =
|
379
|
+
if (Porffor.rawType(date) != Porffor.TYPES.undefined) dt = ecma262.ToNumber(date);
|
380
380
|
|
381
381
|
// 4. If hours is present, let h be ? ToNumber(hours); else let h be +0𝔽.
|
382
382
|
let h: number = 0;
|
383
|
-
if (Porffor.rawType(hours) != Porffor.TYPES.undefined) h =
|
383
|
+
if (Porffor.rawType(hours) != Porffor.TYPES.undefined) h = ecma262.ToNumber(hours);
|
384
384
|
|
385
385
|
// 5. If minutes is present, let min be ? ToNumber(minutes); else let min be +0𝔽.
|
386
386
|
let min: number = 0;
|
387
|
-
if (Porffor.rawType(minutes) != Porffor.TYPES.undefined) min =
|
387
|
+
if (Porffor.rawType(minutes) != Porffor.TYPES.undefined) min = ecma262.ToNumber(minutes);
|
388
388
|
|
389
389
|
// 6. If seconds is present, let s be ? ToNumber(seconds); else let s be +0𝔽.
|
390
390
|
let s: number = 0;
|
391
|
-
if (Porffor.rawType(seconds) != Porffor.TYPES.undefined) s =
|
391
|
+
if (Porffor.rawType(seconds) != Porffor.TYPES.undefined) s = ecma262.ToNumber(seconds);
|
392
392
|
|
393
393
|
// 7. If ms is present, let milli be ? ToNumber(ms); else let milli be +0𝔽.
|
394
394
|
let milli: number = 0;
|
395
|
-
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) h =
|
395
|
+
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) h = ecma262.ToNumber(ms);
|
396
396
|
|
397
397
|
// 8. Let yr be MakeFullYear(y).
|
398
398
|
const yr: number = __ecma262_MakeFullYear(y);
|
@@ -977,7 +977,7 @@ export const __Date_prototype_setDate = (_this: Date, date: any) => {
|
|
977
977
|
let t: number = __Porffor_date_read(_this);
|
978
978
|
|
979
979
|
// 4. Let dt be ? ToNumber(date).
|
980
|
-
const dt: number =
|
980
|
+
const dt: number = ecma262.ToNumber(date);
|
981
981
|
|
982
982
|
// 5. If t is NaN, return NaN.
|
983
983
|
if (Number.isNaN(t)) return NaN;
|
@@ -1007,7 +1007,7 @@ export const __Date_prototype_setFullYear = (_this: Date, year: any, month: any,
|
|
1007
1007
|
let t: number = __Porffor_date_read(_this);
|
1008
1008
|
|
1009
1009
|
// 4. Let y be ? ToNumber(year).
|
1010
|
-
const y: number =
|
1010
|
+
const y: number = ecma262.ToNumber(year);
|
1011
1011
|
|
1012
1012
|
// 5. If t is NaN, set t to +0𝔽; otherwise, set t to LocalTime(t).
|
1013
1013
|
if (Number.isNaN(t)) t = 0;
|
@@ -1016,12 +1016,12 @@ export const __Date_prototype_setFullYear = (_this: Date, year: any, month: any,
|
|
1016
1016
|
// 6. If month is not present, let m be MonthFromTime(t); otherwise, let m be ? ToNumber(month).
|
1017
1017
|
let m: number;
|
1018
1018
|
if (Porffor.rawType(month) == Porffor.TYPES.undefined) m = __ecma262_MonthFromTime(t);
|
1019
|
-
else m =
|
1019
|
+
else m = ecma262.ToNumber(month);
|
1020
1020
|
|
1021
1021
|
// 7. If date is not present, let dt be DateFromTime(t); otherwise, let dt be ? ToNumber(date).
|
1022
1022
|
let dt: number;
|
1023
1023
|
if (Porffor.rawType(date) == Porffor.TYPES.undefined) dt = __ecma262_DateFromTime(t);
|
1024
|
-
else dt =
|
1024
|
+
else dt = ecma262.ToNumber(date);
|
1025
1025
|
|
1026
1026
|
// 8. Let newDate be MakeDate(MakeDay(y, m, dt), TimeWithinDay(t)).
|
1027
1027
|
const newDate: number = __ecma262_MakeDate(__ecma262_MakeDay(y, m, dt), __ecma262_TimeWithinDay(t));
|
@@ -1045,7 +1045,7 @@ export const __Date_prototype_setHours = (_this: Date, hour: any, min: any, sec:
|
|
1045
1045
|
let t: number = __Porffor_date_read(_this);
|
1046
1046
|
|
1047
1047
|
// 4. Let h be ? ToNumber(hour).
|
1048
|
-
const h: number =
|
1048
|
+
const h: number = ecma262.ToNumber(hour);
|
1049
1049
|
|
1050
1050
|
// we reorder the spec steps in this func for easier arg handling
|
1051
1051
|
|
@@ -1057,19 +1057,19 @@ export const __Date_prototype_setHours = (_this: Date, hour: any, min: any, sec:
|
|
1057
1057
|
|
1058
1058
|
// 5. If min is present, let m be ? ToNumber(min).
|
1059
1059
|
let m: number;
|
1060
|
-
if (Porffor.rawType(min) != Porffor.TYPES.undefined) m =
|
1060
|
+
if (Porffor.rawType(min) != Porffor.TYPES.undefined) m = ecma262.ToNumber(min);
|
1061
1061
|
// 10. If min is not present, let m be MinFromTime(t).
|
1062
1062
|
else m = __ecma262_MinFromTime(t);
|
1063
1063
|
|
1064
1064
|
// 6. If sec is present, let s be ? ToNumber(sec).
|
1065
1065
|
let s: number;
|
1066
|
-
if (Porffor.rawType(sec) != Porffor.TYPES.undefined) s =
|
1066
|
+
if (Porffor.rawType(sec) != Porffor.TYPES.undefined) s = ecma262.ToNumber(sec);
|
1067
1067
|
// 11. If sec is not present, let s be SecFromTime(t).
|
1068
1068
|
else s = __ecma262_SecFromTime(t);
|
1069
1069
|
|
1070
1070
|
// 7. If ms is present, let milli be ? ToNumber(ms).
|
1071
1071
|
let milli: number;
|
1072
|
-
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli =
|
1072
|
+
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli = ecma262.ToNumber(ms);
|
1073
1073
|
// 12. If ms is not present, let milli be msFromTime(t).
|
1074
1074
|
else milli = __ecma262_msFromTime(t);
|
1075
1075
|
|
@@ -1096,7 +1096,7 @@ export const __Date_prototype_setMilliseconds = (_this: Date, ms: any) => {
|
|
1096
1096
|
|
1097
1097
|
// ignore old-style spec setting arg instead of having let
|
1098
1098
|
// 4. Set ms to ? ToNumber(ms).
|
1099
|
-
const milli: number =
|
1099
|
+
const milli: number = ecma262.ToNumber(ms);
|
1100
1100
|
|
1101
1101
|
// 5. If t is NaN, return NaN.
|
1102
1102
|
if (Number.isNaN(t)) return NaN;
|
@@ -1126,7 +1126,7 @@ export const __Date_prototype_setMinutes = (_this: Date, min: any, sec: any, ms:
|
|
1126
1126
|
let t: number = __Porffor_date_read(_this);
|
1127
1127
|
|
1128
1128
|
// 4. Let m be ? ToNumber(min).
|
1129
|
-
const m: number =
|
1129
|
+
const m: number = ecma262.ToNumber(min);
|
1130
1130
|
|
1131
1131
|
// we reorder the spec steps in this func for easier arg handling
|
1132
1132
|
|
@@ -1138,13 +1138,13 @@ export const __Date_prototype_setMinutes = (_this: Date, min: any, sec: any, ms:
|
|
1138
1138
|
|
1139
1139
|
// 5. If sec is present, let s be ? ToNumber(sec).
|
1140
1140
|
let s: number;
|
1141
|
-
if (Porffor.rawType(sec) != Porffor.TYPES.undefined) s =
|
1141
|
+
if (Porffor.rawType(sec) != Porffor.TYPES.undefined) s = ecma262.ToNumber(sec);
|
1142
1142
|
// 9. If sec is not present, let s be SecFromTime(t).
|
1143
1143
|
else s = __ecma262_SecFromTime(t);
|
1144
1144
|
|
1145
1145
|
// 6. If ms is present, let milli be ? ToNumber(ms).
|
1146
1146
|
let milli: number;
|
1147
|
-
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli =
|
1147
|
+
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli = ecma262.ToNumber(ms);
|
1148
1148
|
// 10. If ms is not present, let milli be msFromTime(t).
|
1149
1149
|
else milli = __ecma262_msFromTime(t);
|
1150
1150
|
|
@@ -1170,7 +1170,7 @@ export const __Date_prototype_setMonth = (_this: Date, month: any, date: any) =>
|
|
1170
1170
|
let t: number = __Porffor_date_read(_this);
|
1171
1171
|
|
1172
1172
|
// 4. Let m be ? ToNumber(month).
|
1173
|
-
const m: number =
|
1173
|
+
const m: number = ecma262.ToNumber(month);
|
1174
1174
|
|
1175
1175
|
// we reorder the spec steps in this func for easier arg handling
|
1176
1176
|
|
@@ -1182,7 +1182,7 @@ export const __Date_prototype_setMonth = (_this: Date, month: any, date: any) =>
|
|
1182
1182
|
|
1183
1183
|
// 5. If date is present, let dt be ? ToNumber(date).
|
1184
1184
|
let dt: number;
|
1185
|
-
if (Porffor.rawType(date) != Porffor.TYPES.undefined) dt =
|
1185
|
+
if (Porffor.rawType(date) != Porffor.TYPES.undefined) dt = ecma262.ToNumber(date);
|
1186
1186
|
// 8. If date is not present, let dt be DateFromTime(t).
|
1187
1187
|
else dt = __ecma262_DateFromTime(t);
|
1188
1188
|
|
@@ -1208,7 +1208,7 @@ export const __Date_prototype_setSeconds = (_this: Date, sec: any, ms: any) => {
|
|
1208
1208
|
let t: number = __Porffor_date_read(_this);
|
1209
1209
|
|
1210
1210
|
// 4. Let s be ? ToNumber(sec).
|
1211
|
-
const s: number =
|
1211
|
+
const s: number = ecma262.ToNumber(sec);
|
1212
1212
|
|
1213
1213
|
// we reorder the spec steps in this func for easier arg handling
|
1214
1214
|
|
@@ -1220,7 +1220,7 @@ export const __Date_prototype_setSeconds = (_this: Date, sec: any, ms: any) => {
|
|
1220
1220
|
|
1221
1221
|
// 5. If ms is present, let milli be ? ToNumber(ms).
|
1222
1222
|
let milli: number;
|
1223
|
-
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli =
|
1223
|
+
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli = ecma262.ToNumber(ms);
|
1224
1224
|
// 8. If ms is not present, let milli be msFromTime(t).
|
1225
1225
|
else milli = __ecma262_msFromTime(t);
|
1226
1226
|
|
@@ -1244,7 +1244,7 @@ export const __Date_prototype_setTime = (_this: Date, time: any) => {
|
|
1244
1244
|
// 1. Let dateObject be the this value.
|
1245
1245
|
// 2. Perform ? RequireInternalSlot(dateObject, [[DateValue]]).
|
1246
1246
|
// 3. Let t be ? ToNumber(time).
|
1247
|
-
const t: number =
|
1247
|
+
const t: number = ecma262.ToNumber(time);
|
1248
1248
|
|
1249
1249
|
// 4. Let v be TimeClip(t).
|
1250
1250
|
const v: number = __ecma262_TimeClip(t);
|
@@ -1265,7 +1265,7 @@ export const __Date_prototype_setUTCDate = (_this: Date, date: any) => {
|
|
1265
1265
|
const t: number = __Porffor_date_read(_this);
|
1266
1266
|
|
1267
1267
|
// 4. Let dt be ? ToNumber(date).
|
1268
|
-
const dt: number =
|
1268
|
+
const dt: number = ecma262.ToNumber(date);
|
1269
1269
|
|
1270
1270
|
// 5. If t is NaN, return NaN.
|
1271
1271
|
if (Number.isNaN(t)) return NaN;
|
@@ -1295,17 +1295,17 @@ export const __Date_prototype_setUTCFullYear = (_this: Date, year: any, month: a
|
|
1295
1295
|
if (Number.isNaN(t)) t = 0;
|
1296
1296
|
|
1297
1297
|
// 5. Let y be ? ToNumber(year).
|
1298
|
-
const y: number =
|
1298
|
+
const y: number = ecma262.ToNumber(year);
|
1299
1299
|
|
1300
1300
|
// 6. If month is not present, let m be MonthFromTime(t); otherwise, let m be ? ToNumber(month).
|
1301
1301
|
let m: number;
|
1302
1302
|
if (Porffor.rawType(month) == Porffor.TYPES.undefined) m = __ecma262_MonthFromTime(t);
|
1303
|
-
else m =
|
1303
|
+
else m = ecma262.ToNumber(month);
|
1304
1304
|
|
1305
1305
|
// 7. If date is not present, let dt be DateFromTime(t); otherwise, let dt be ? ToNumber(date).
|
1306
1306
|
let dt: number;
|
1307
1307
|
if (Porffor.rawType(date) == Porffor.TYPES.undefined) dt = __ecma262_DateFromTime(t);
|
1308
|
-
else dt =
|
1308
|
+
else dt = ecma262.ToNumber(date);
|
1309
1309
|
|
1310
1310
|
// 8. Let newDate be MakeDate(MakeDay(y, m, dt), TimeWithinDay(t)).
|
1311
1311
|
const newDate: number = __ecma262_MakeDate(__ecma262_MakeDay(y, m, dt), __ecma262_TimeWithinDay(t));
|
@@ -1329,7 +1329,7 @@ export const __Date_prototype_setUTCHours = (_this: Date, hour: any, min: any, s
|
|
1329
1329
|
let t: number = __Porffor_date_read(_this);
|
1330
1330
|
|
1331
1331
|
// 4. Let h be ? ToNumber(hour).
|
1332
|
-
const h: number =
|
1332
|
+
const h: number = ecma262.ToNumber(hour);
|
1333
1333
|
|
1334
1334
|
// we reorder the spec steps in this func for easier arg handling
|
1335
1335
|
|
@@ -1338,19 +1338,19 @@ export const __Date_prototype_setUTCHours = (_this: Date, hour: any, min: any, s
|
|
1338
1338
|
|
1339
1339
|
// 5. If min is present, let m be ? ToNumber(min).
|
1340
1340
|
let m: number;
|
1341
|
-
if (Porffor.rawType(min) != Porffor.TYPES.undefined) m =
|
1341
|
+
if (Porffor.rawType(min) != Porffor.TYPES.undefined) m = ecma262.ToNumber(min);
|
1342
1342
|
// 9. If min is not present, let m be MinFromTime(t).
|
1343
1343
|
else m = __ecma262_MinFromTime(t);
|
1344
1344
|
|
1345
1345
|
// 6. If sec is present, let s be ? ToNumber(sec).
|
1346
1346
|
let s: number;
|
1347
|
-
if (Porffor.rawType(sec) != Porffor.TYPES.undefined) s =
|
1347
|
+
if (Porffor.rawType(sec) != Porffor.TYPES.undefined) s = ecma262.ToNumber(sec);
|
1348
1348
|
// 10. If sec is not present, let s be SecFromTime(t).
|
1349
1349
|
else s = __ecma262_SecFromTime(t);
|
1350
1350
|
|
1351
1351
|
// 7. If ms is present, let milli be ? ToNumber(ms).
|
1352
1352
|
let milli: number;
|
1353
|
-
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli =
|
1353
|
+
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli = ecma262.ToNumber(ms);
|
1354
1354
|
// 11. If ms is not present, let milli be msFromTime(t).
|
1355
1355
|
else milli = __ecma262_msFromTime(t);
|
1356
1356
|
|
@@ -1377,7 +1377,7 @@ export const __Date_prototype_setUTCMilliseconds = (_this: Date, ms: any) => {
|
|
1377
1377
|
|
1378
1378
|
// ignore old-style spec setting arg instead of having let
|
1379
1379
|
// 4. Set ms to ? ToNumber(ms).
|
1380
|
-
const milli: number =
|
1380
|
+
const milli: number = ecma262.ToNumber(ms);
|
1381
1381
|
|
1382
1382
|
// 5. If t is NaN, return NaN.
|
1383
1383
|
if (Number.isNaN(t)) return NaN;
|
@@ -1404,7 +1404,7 @@ export const __Date_prototype_setUTCMinutes = (_this: Date, min: any, sec: any,
|
|
1404
1404
|
let t: number = __Porffor_date_read(_this);
|
1405
1405
|
|
1406
1406
|
// 4. Let m be ? ToNumber(min).
|
1407
|
-
const m: number =
|
1407
|
+
const m: number = ecma262.ToNumber(min);
|
1408
1408
|
|
1409
1409
|
// we reorder the spec steps in this func for easier arg handling
|
1410
1410
|
|
@@ -1413,13 +1413,13 @@ export const __Date_prototype_setUTCMinutes = (_this: Date, min: any, sec: any,
|
|
1413
1413
|
|
1414
1414
|
// 5. If sec is present, let s be ? ToNumber(sec).
|
1415
1415
|
let s: number;
|
1416
|
-
if (Porffor.rawType(sec) != Porffor.TYPES.undefined) s =
|
1416
|
+
if (Porffor.rawType(sec) != Porffor.TYPES.undefined) s = ecma262.ToNumber(sec);
|
1417
1417
|
// 8. If sec is not present, let s be SecFromTime(t).
|
1418
1418
|
else s = __ecma262_SecFromTime(t);
|
1419
1419
|
|
1420
1420
|
// 6. If ms is present, let milli be ? ToNumber(ms).
|
1421
1421
|
let milli: number;
|
1422
|
-
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli =
|
1422
|
+
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli = ecma262.ToNumber(ms);
|
1423
1423
|
// 9. If ms is not present, let milli be msFromTime(t).
|
1424
1424
|
else milli = __ecma262_msFromTime(t);
|
1425
1425
|
|
@@ -1445,7 +1445,7 @@ export const __Date_prototype_setUTCMonth = (_this: Date, month: any, date: any)
|
|
1445
1445
|
let t: number = __Porffor_date_read(_this);
|
1446
1446
|
|
1447
1447
|
// 4. Let m be ? ToNumber(month).
|
1448
|
-
const m: number =
|
1448
|
+
const m: number = ecma262.ToNumber(month);
|
1449
1449
|
|
1450
1450
|
// we reorder the spec steps in this func for easier arg handling
|
1451
1451
|
|
@@ -1454,7 +1454,7 @@ export const __Date_prototype_setUTCMonth = (_this: Date, month: any, date: any)
|
|
1454
1454
|
|
1455
1455
|
// 5. If date is present, let dt be ? ToNumber(date).
|
1456
1456
|
let dt: number;
|
1457
|
-
if (Porffor.rawType(date) != Porffor.TYPES.undefined) dt =
|
1457
|
+
if (Porffor.rawType(date) != Porffor.TYPES.undefined) dt = ecma262.ToNumber(date);
|
1458
1458
|
// 7. If date is not present, let dt be DateFromTime(t).
|
1459
1459
|
else dt = __ecma262_DateFromTime(t);
|
1460
1460
|
|
@@ -1480,7 +1480,7 @@ export const __Date_prototype_setUTCSeconds = (_this: Date, sec: any, ms: any) =
|
|
1480
1480
|
let t: number = __Porffor_date_read(_this);
|
1481
1481
|
|
1482
1482
|
// 4. Let s be ? ToNumber(sec).
|
1483
|
-
const s: number =
|
1483
|
+
const s: number = ecma262.ToNumber(sec);
|
1484
1484
|
|
1485
1485
|
// we reorder the spec steps in this func for easier arg handling
|
1486
1486
|
|
@@ -1489,7 +1489,7 @@ export const __Date_prototype_setUTCSeconds = (_this: Date, sec: any, ms: any) =
|
|
1489
1489
|
|
1490
1490
|
// 5. If ms is present, let milli be ? ToNumber(ms).
|
1491
1491
|
let milli: number;
|
1492
|
-
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli =
|
1492
|
+
if (Porffor.rawType(ms) != Porffor.TYPES.undefined) milli = ecma262.ToNumber(ms);
|
1493
1493
|
// 7. If ms is not present, let milli be msFromTime(t).
|
1494
1494
|
else milli = __ecma262_msFromTime(t);
|
1495
1495
|
|
@@ -1644,7 +1644,7 @@ export const __Date_prototype_toISOString = (_this: Date) => {
|
|
1644
1644
|
export const __Date_prototype_toJSON = (_this: Date, key: any) => {
|
1645
1645
|
// 1. Let O be ? ToObject(this value).
|
1646
1646
|
// 2. Let tv be ? ToPrimitive(O, number).
|
1647
|
-
// todo: use generic
|
1647
|
+
// todo: use generic ecma262.ToNumber() once it supports Date
|
1648
1648
|
const tv: number = __Porffor_date_read(_this);
|
1649
1649
|
|
1650
1650
|
// 3. If tv is a Number and tv is not finite, return null.
|
@@ -1964,7 +1964,7 @@ export const Date = function (v0: unknown, v1: unknown, v2: unknown, v3: unknown
|
|
1964
1964
|
} else {
|
1965
1965
|
// iii. Else,
|
1966
1966
|
// 1. Let tv be ? ToNumber(v).
|
1967
|
-
tv =
|
1967
|
+
tv = ecma262.ToNumber(value);
|
1968
1968
|
}
|
1969
1969
|
}
|
1970
1970
|
|
@@ -1975,30 +1975,30 @@ export const Date = function (v0: unknown, v1: unknown, v2: unknown, v3: unknown
|
|
1975
1975
|
// a. Assert: numberOfArgs ≥ 2.
|
1976
1976
|
|
1977
1977
|
// b. Let y be ? ToNumber(values[0]).
|
1978
|
-
const y: number =
|
1978
|
+
const y: number = ecma262.ToNumber(v0);
|
1979
1979
|
|
1980
1980
|
// c. Let m be ? ToNumber(values[1]).
|
1981
|
-
const m: number =
|
1981
|
+
const m: number = ecma262.ToNumber(v1);
|
1982
1982
|
|
1983
1983
|
// d. If numberOfArgs > 2, let dt be ? ToNumber(values[2]); else let dt be 1𝔽.
|
1984
1984
|
let dt: number = 1;
|
1985
|
-
if (numberOfArgs > 2) dt =
|
1985
|
+
if (numberOfArgs > 2) dt = ecma262.ToNumber(v2);
|
1986
1986
|
|
1987
1987
|
// e. If numberOfArgs > 3, let h be ? ToNumber(values[3]); else let h be +0𝔽.
|
1988
1988
|
let h: number = 0;
|
1989
|
-
if (numberOfArgs > 3) h =
|
1989
|
+
if (numberOfArgs > 3) h = ecma262.ToNumber(v3);
|
1990
1990
|
|
1991
1991
|
// f. If numberOfArgs > 4, let min be ? ToNumber(values[4]); else let min be +0𝔽.
|
1992
1992
|
let min: number = 0;
|
1993
|
-
if (numberOfArgs > 4) min =
|
1993
|
+
if (numberOfArgs > 4) min = ecma262.ToNumber(v4);
|
1994
1994
|
|
1995
1995
|
// g. If numberOfArgs > 5, let s be ? ToNumber(values[5]); else let s be +0𝔽.
|
1996
1996
|
let s: number = 0;
|
1997
|
-
if (numberOfArgs > 5) s =
|
1997
|
+
if (numberOfArgs > 5) s = ecma262.ToNumber(v5);
|
1998
1998
|
|
1999
1999
|
// h. If numberOfArgs > 6, let milli be ? ToNumber(values[6]); else let milli be +0𝔽.
|
2000
2000
|
let milli: number = 0;
|
2001
|
-
if (numberOfArgs > 6) milli =
|
2001
|
+
if (numberOfArgs > 6) milli = ecma262.ToNumber(v6);
|
2002
2002
|
|
2003
2003
|
// i. Let yr be MakeFullYear(y).
|
2004
2004
|
const yr: number = __ecma262_MakeFullYear(y);
|
@@ -522,12 +522,18 @@ export const __Number_prototype_valueOf = (_this: number) => {
|
|
522
522
|
};
|
523
523
|
|
524
524
|
|
525
|
-
export const parseInt = (input:
|
525
|
+
export const parseInt = (input: any, radix: any): f64 => {
|
526
526
|
// todo/perf: optimize this instead of doing a naive algo (https://kholdstare.github.io/technical/2020/05/26/faster-integer-parsing.html)
|
527
527
|
// todo/perf: use i32s here once that becomes not annoying
|
528
528
|
|
529
|
+
input = ecma262.ToString(input);
|
530
|
+
|
531
|
+
let defaultRadix: boolean = false;
|
529
532
|
radix = ecma262.ToIntegerOrInfinity(radix);
|
530
|
-
if (radix == 0)
|
533
|
+
if (radix == 0) {
|
534
|
+
defaultRadix = true;
|
535
|
+
radix = 10;
|
536
|
+
}
|
531
537
|
if (radix < 2 || radix > 36) return NaN;
|
532
538
|
|
533
539
|
let nMax: f64 = 58;
|
@@ -557,7 +563,7 @@ export const parseInt = (input: string|bytestring, radix: any): f64 => {
|
|
557
563
|
}
|
558
564
|
|
559
565
|
// 0, potential start of hex
|
560
|
-
if (startChr == 48) {
|
566
|
+
if ((defaultRadix || radix == 16) && startChr == 48) {
|
561
567
|
const second: f64 = Porffor.wasm.i32.load8_u(i + 1, 0, 4);
|
562
568
|
// 0x or 0X
|
563
569
|
if (second == 120 || second == 88) {
|
@@ -587,12 +593,10 @@ export const parseInt = (input: string|bytestring, radix: any): f64 => {
|
|
587
593
|
n *= radix;
|
588
594
|
n += chr - 55;
|
589
595
|
} else {
|
590
|
-
|
591
|
-
return n;
|
596
|
+
break;
|
592
597
|
}
|
593
598
|
} else {
|
594
|
-
|
595
|
-
return n;
|
599
|
+
break;
|
596
600
|
}
|
597
601
|
}
|
598
602
|
|
@@ -615,7 +619,7 @@ export const parseInt = (input: string|bytestring, radix: any): f64 => {
|
|
615
619
|
}
|
616
620
|
|
617
621
|
// 0, potential start of hex
|
618
|
-
if (startChr == 48) {
|
622
|
+
if ((defaultRadix || radix == 16) && startChr == 48) {
|
619
623
|
const second: f64 = Porffor.wasm.i32.load16_u(i + 2, 0, 4);
|
620
624
|
// 0x or 0X
|
621
625
|
if (second == 120 || second == 88) {
|
@@ -646,12 +650,10 @@ export const parseInt = (input: string|bytestring, radix: any): f64 => {
|
|
646
650
|
n *= radix;
|
647
651
|
n += chr - 55;
|
648
652
|
} else {
|
649
|
-
|
650
|
-
return n;
|
653
|
+
break;
|
651
654
|
}
|
652
655
|
} else {
|
653
|
-
|
654
|
-
return n;
|
656
|
+
break;
|
655
657
|
}
|
656
658
|
}
|
657
659
|
|
@@ -659,4 +661,32 @@ export const parseInt = (input: string|bytestring, radix: any): f64 => {
|
|
659
661
|
return n;
|
660
662
|
};
|
661
663
|
|
662
|
-
export const __Number_parseInt = (input: any, radix: any): f64 => parseInt(input, radix);
|
664
|
+
export const __Number_parseInt = (input: any, radix: any): f64 => parseInt(input, radix);
|
665
|
+
|
666
|
+
// export const parseFloat = (input: any): f64 => {
|
667
|
+
// input = ecma262.ToString(input);
|
668
|
+
|
669
|
+
// let int: f64 = NaN, dec: f64 = 0;
|
670
|
+
// let negative: boolean = false;
|
671
|
+
|
672
|
+
// let i = 0;
|
673
|
+
// const start: i32 = input.charCodeAt(0);
|
674
|
+
|
675
|
+
// // +, ignore
|
676
|
+
// if (start == 43) {
|
677
|
+
// i++;
|
678
|
+
// }
|
679
|
+
|
680
|
+
// // -, negative
|
681
|
+
// if (start == 45) {
|
682
|
+
// i++;
|
683
|
+
// negative = true;
|
684
|
+
// }
|
685
|
+
|
686
|
+
// const len: i32 = input.length;
|
687
|
+
// while (i < len) {
|
688
|
+
|
689
|
+
// }
|
690
|
+
|
691
|
+
// if (!dec) return int;
|
692
|
+
// };
|
@@ -1,11 +1,61 @@
|
|
1
1
|
// general widely used ecma262/spec functions
|
2
2
|
import type {} from './porffor.d.ts';
|
3
3
|
|
4
|
+
// 7.1.4.1.1 StringToNumber (str)
|
5
|
+
// https://tc39.es/ecma262/#sec-stringtonumber
|
6
|
+
export const __ecma262_StringToNumber = (str: unknown): number => {
|
7
|
+
// nah.
|
8
|
+
return NaN;
|
9
|
+
};
|
10
|
+
|
11
|
+
// 7.1.4 ToNumber (argument)
|
12
|
+
// https://tc39.es/ecma262/#sec-tonumber
|
13
|
+
export const __ecma262_ToNumber = (argument: unknown): number => {
|
14
|
+
const t: i32 = Porffor.rawType(argument);
|
15
|
+
|
16
|
+
// If argument is a Number, return argument.
|
17
|
+
if (t == Porffor.TYPES.number) return argument;
|
18
|
+
|
19
|
+
// 2. If argument is either a Symbol or a BigInt, throw a TypeError exception.
|
20
|
+
if (Porffor.fastOr(
|
21
|
+
t == Porffor.TYPES.symbol,
|
22
|
+
t == Porffor.TYPES.bigint)) throw new TypeError('Cannot convert Symbol or BigInt to a number');
|
23
|
+
|
24
|
+
// 3. If argument is undefined, return NaN.
|
25
|
+
if (Porffor.fastOr(
|
26
|
+
t == Porffor.TYPES.undefined,
|
27
|
+
t == Porffor.TYPES.empty)) return NaN;
|
28
|
+
|
29
|
+
// 4. If argument is either null or false, return +0𝔽.
|
30
|
+
if (Porffor.fastOr(
|
31
|
+
argument === null,
|
32
|
+
argument === false
|
33
|
+
)) return 0;
|
34
|
+
|
35
|
+
// 5. If argument is true, return 1𝔽.
|
36
|
+
if (argument === true) return 1;
|
37
|
+
|
38
|
+
// 6. If argument is a String, return StringToNumber(argument).
|
39
|
+
if (Porffor.fastOr(
|
40
|
+
t == Porffor.TYPES.string,
|
41
|
+
t == Porffor.TYPES.bytestring)) return __ecma262_StringToNumber(argument);
|
42
|
+
|
43
|
+
// 7. Assert: argument is an Object.
|
44
|
+
// 8. Let primValue be ? ToPrimitive(argument, number).
|
45
|
+
// 9. Assert: primValue is not an Object.
|
46
|
+
// 10. Return ? ToNumber(primValue).
|
47
|
+
|
48
|
+
// // todo: I doubt this is spec-compliant
|
49
|
+
// return __ecma262_ToNumber(argument.valueOf());
|
50
|
+
|
51
|
+
return NaN;
|
52
|
+
};
|
53
|
+
|
4
54
|
// 7.1.5 ToIntegerOrInfinity (argument)
|
5
55
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
6
56
|
export const __ecma262_ToIntegerOrInfinity = (argument: unknown): number => {
|
7
57
|
// 1. Let number be ? ToNumber(argument).
|
8
|
-
let number: number =
|
58
|
+
let number: number = __ecma262_ToNumber(argument);
|
9
59
|
|
10
60
|
// 2. If number is one of NaN, +0𝔽, or -0𝔽, return 0.
|
11
61
|
if (Number.isNaN(number)) return 0;
|
@@ -1066,10 +1066,10 @@ export const BuiltinFuncs = function() {
|
|
1066
1066
|
locals: [], localNames: [],
|
1067
1067
|
};
|
1068
1068
|
this.__Date_UTC = {
|
1069
|
-
wasm: (scope, {builtin}) => [[
|
1069
|
+
wasm: (scope, {builtin}) => [[32,0],[32,1],[16, ...builtin('__ecma262_ToNumber')],[26],[33,14],[68,0,0,0,0,0,0,0,0],[33,16],[32,2],[32,3],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,16],[11],[68,0,0,0,0,0,0,240,63],[33,17],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,17],[11],[68,0,0,0,0,0,0,0,0],[33,18],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,6],[32,7],[16, ...builtin('__ecma262_ToNumber')],[26],[33,18],[11],[68,0,0,0,0,0,0,0,0],[33,19],[32,8],[32,9],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,8],[32,9],[16, ...builtin('__ecma262_ToNumber')],[26],[33,19],[11],[68,0,0,0,0,0,0,0,0],[33,20],[32,10],[32,11],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,10],[32,11],[16, ...builtin('__ecma262_ToNumber')],[26],[33,20],[11],[68,0,0,0,0,0,0,0,0],[33,21],[32,12],[32,13],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,12],[32,13],[16, ...builtin('__ecma262_ToNumber')],[26],[33,18],[11],[32,14],[65,1],[16, ...builtin('__ecma262_MakeFullYear')],[26],[34,22],[65,1],[32,16],[65,1],[32,17],[65,1],[16, ...builtin('__ecma262_MakeDay')],[34,15],[32,18],[65,1],[32,19],[65,1],[32,20],[65,1],[32,21],[65,1],[16, ...builtin('__ecma262_MakeTime')],[34,15],[16, ...builtin('__ecma262_MakeDate')],[34,15],[16, ...builtin('__ecma262_TimeClip')],[34,15],[15]],
|
1070
1070
|
params: [124,127,124,127,124,127,124,127,124,127,124,127,124,127], typedParams: 1,
|
1071
1071
|
returns: [124,127], typedReturns: 1,
|
1072
|
-
locals: [124,124,124,124,124,124,124,124
|
1072
|
+
locals: [124,127,124,124,124,124,124,124,124], localNames: ["year","year#type","month","month#type","date","date#type","hours","hours#type","minutes","minutes#type","seconds","seconds#type","ms","ms#type","y","#last_type","m","dt","h","min","s","milli","yr"],
|
1073
1073
|
};
|
1074
1074
|
this.__ecma262_WeekDayName = {
|
1075
1075
|
wasm: (scope, {allocPage,builtin}) => [[32,0],[65,1],[16, ...builtin('__ecma262_WeekDay')],[26],[33,2],...number(allocPage(scope, 'bytestring: __ecma262_WeekDayName/lut', 'i8') * pageSize, 124),[33,4],[65,7],[16, ...builtin('__Porffor_allocateBytes')],[183],[34,5],[252,3],[68,0,0,0,0,0,0,8,64],[34,6],[252,3],[54,1,0],[32,5],[33,7],[32,4],[32,2],[68,0,0,0,0,0,0,8,64],[162],[160],[33,8],[32,7],[32,7],[68,0,0,0,0,0,0,240,63],[160],[33,7],[252,2],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,2],[45,0,4],[58,0,4],[32,7],[32,7],[68,0,0,0,0,0,0,240,63],[160],[33,7],[252,2],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,2],[45,0,4],[58,0,4],[32,7],[252,2],[32,8],[252,2],[45,0,4],[58,0,4],[32,5],[65,195,1],[15]],
|
@@ -1230,91 +1230,91 @@ export const BuiltinFuncs = function() {
|
|
1230
1230
|
locals: [124,127], localNames: ["_this","_this#type","t","#last_type"],
|
1231
1231
|
};
|
1232
1232
|
this.__Date_prototype_setDate = {
|
1233
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,4],[
|
1233
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,4],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,6],[32,4],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,4],[65,1],[16, ...builtin('__ecma262_LocalTime')],[26],[34,4],[65,1],[16, ...builtin('__ecma262_YearFromTime')],[34,5],[32,4],[65,1],[16, ...builtin('__ecma262_MonthFromTime')],[34,5],[32,6],[65,1],[16, ...builtin('__ecma262_MakeDay')],[34,5],[32,4],[65,1],[16, ...builtin('__ecma262_TimeWithinDay')],[34,5],[16, ...builtin('__ecma262_MakeDate')],[26],[34,7],[65,1],[16, ...builtin('__ecma262_UTC')],[34,5],[16, ...builtin('__ecma262_TimeClip')],[26],[33,8],[32,0],[65,18],[32,8],[65,1],[16, ...builtin('__Porffor_date_write')],[33,5],[26],[32,8],[65,1],[15]],
|
1234
1234
|
params: [124,127,124,127], typedParams: 1,
|
1235
1235
|
returns: [124,127], typedReturns: 1,
|
1236
1236
|
locals: [124,127,124,124,124], localNames: ["_this","_this#type","date","date#type","t","#last_type","dt","newDate","u"],
|
1237
1237
|
};
|
1238
1238
|
this.__Date_prototype_setFullYear = {
|
1239
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,8],[
|
1239
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,8],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,10],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[5],[32,8],[65,1],[16, ...builtin('__ecma262_LocalTime')],[26],[33,8],[11],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[97],[4,64],[32,8],[65,1],[16, ...builtin('__ecma262_MonthFromTime')],[26],[33,11],[5],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,11],[11],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[97],[4,64],[32,8],[65,1],[16, ...builtin('__ecma262_DateFromTime')],[26],[33,12],[5],[32,6],[32,7],[16, ...builtin('__ecma262_ToNumber')],[26],[33,12],[11],[32,10],[65,1],[32,11],[65,1],[32,12],[65,1],[16, ...builtin('__ecma262_MakeDay')],[34,9],[32,8],[65,1],[16, ...builtin('__ecma262_TimeWithinDay')],[34,9],[16, ...builtin('__ecma262_MakeDate')],[26],[34,13],[65,1],[16, ...builtin('__ecma262_UTC')],[34,9],[16, ...builtin('__ecma262_TimeClip')],[26],[33,14],[32,0],[65,18],[32,14],[65,1],[16, ...builtin('__Porffor_date_write')],[33,9],[26],[32,14],[65,1],[15]],
|
1240
1240
|
params: [124,127,124,127,124,127,124,127], typedParams: 1,
|
1241
1241
|
returns: [124,127], typedReturns: 1,
|
1242
1242
|
locals: [124,127,124,124,124,124,124], localNames: ["_this","_this#type","year","year#type","month","month#type","date","date#type","t","#last_type","y","m","dt","newDate","u"],
|
1243
1243
|
};
|
1244
1244
|
this.__Date_prototype_setHours = {
|
1245
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,10],[
|
1245
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,10],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,12],[32,10],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,10],[65,1],[16, ...builtin('__ecma262_LocalTime')],[26],[33,10],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,13],[5],[32,10],[65,1],[16, ...builtin('__ecma262_MinFromTime')],[26],[33,13],[11],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,6],[32,7],[16, ...builtin('__ecma262_ToNumber')],[26],[33,14],[5],[32,10],[65,1],[16, ...builtin('__ecma262_SecFromTime')],[26],[33,14],[11],[32,8],[32,9],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,8],[32,9],[16, ...builtin('__ecma262_ToNumber')],[26],[33,15],[5],[32,10],[65,1],[16, ...builtin('__ecma262_msFromTime')],[26],[33,15],[11],[32,10],[65,1],[16, ...builtin('__ecma262_Day')],[34,11],[32,12],[65,1],[32,13],[65,1],[32,14],[65,1],[32,15],[65,1],[16, ...builtin('__ecma262_MakeTime')],[34,11],[16, ...builtin('__ecma262_MakeDate')],[26],[34,16],[65,1],[16, ...builtin('__ecma262_UTC')],[34,11],[16, ...builtin('__ecma262_TimeClip')],[26],[33,17],[32,0],[65,18],[32,17],[65,1],[16, ...builtin('__Porffor_date_write')],[33,11],[26],[32,17],[65,1],[15]],
|
1246
1246
|
params: [124,127,124,127,124,127,124,127,124,127], typedParams: 1,
|
1247
1247
|
returns: [124,127], typedReturns: 1,
|
1248
1248
|
locals: [124,127,124,124,124,124,124,124], localNames: ["_this","_this#type","hour","hour#type","min","min#type","sec","sec#type","ms","ms#type","t","#last_type","h","m","s","milli","date","u"],
|
1249
1249
|
};
|
1250
1250
|
this.__Date_prototype_setMilliseconds = {
|
1251
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,4],[
|
1251
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,4],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,6],[32,4],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,4],[65,1],[16, ...builtin('__ecma262_LocalTime')],[26],[34,4],[65,1],[16, ...builtin('__ecma262_HourFromTime')],[34,5],[32,4],[65,1],[16, ...builtin('__ecma262_MinFromTime')],[34,5],[32,4],[65,1],[16, ...builtin('__ecma262_SecFromTime')],[34,5],[32,6],[65,1],[16, ...builtin('__ecma262_MakeTime')],[26],[33,7],[32,4],[65,1],[16, ...builtin('__ecma262_Day')],[34,5],[32,7],[65,1],[16, ...builtin('__ecma262_MakeDate')],[34,5],[16, ...builtin('__ecma262_UTC')],[34,5],[16, ...builtin('__ecma262_TimeClip')],[26],[33,8],[32,0],[65,18],[32,8],[65,1],[16, ...builtin('__Porffor_date_write')],[33,5],[26],[32,8],[65,1],[15]],
|
1252
1252
|
params: [124,127,124,127], typedParams: 1,
|
1253
1253
|
returns: [124,127], typedReturns: 1,
|
1254
1254
|
locals: [124,127,124,124,124], localNames: ["_this","_this#type","ms","ms#type","t","#last_type","milli","time","u"],
|
1255
1255
|
};
|
1256
1256
|
this.__Date_prototype_setMinutes = {
|
1257
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,8],[
|
1257
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,8],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,10],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,8],[65,1],[16, ...builtin('__ecma262_LocalTime')],[26],[33,8],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,11],[5],[32,8],[65,1],[16, ...builtin('__ecma262_SecFromTime')],[26],[33,11],[11],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,6],[32,7],[16, ...builtin('__ecma262_ToNumber')],[26],[33,12],[5],[32,8],[65,1],[16, ...builtin('__ecma262_msFromTime')],[26],[33,12],[11],[32,8],[65,1],[16, ...builtin('__ecma262_Day')],[34,9],[32,8],[65,1],[16, ...builtin('__ecma262_HourFromTime')],[34,9],[32,10],[65,1],[32,11],[65,1],[32,12],[65,1],[16, ...builtin('__ecma262_MakeTime')],[34,9],[16, ...builtin('__ecma262_MakeDate')],[26],[34,13],[65,1],[16, ...builtin('__ecma262_UTC')],[34,9],[16, ...builtin('__ecma262_TimeClip')],[26],[33,14],[32,0],[65,18],[32,14],[65,1],[16, ...builtin('__Porffor_date_write')],[33,9],[26],[32,14],[65,1],[15]],
|
1258
1258
|
params: [124,127,124,127,124,127,124,127], typedParams: 1,
|
1259
1259
|
returns: [124,127], typedReturns: 1,
|
1260
1260
|
locals: [124,127,124,124,124,124,124], localNames: ["_this","_this#type","min","min#type","sec","sec#type","ms","ms#type","t","#last_type","m","s","milli","date","u"],
|
1261
1261
|
};
|
1262
1262
|
this.__Date_prototype_setMonth = {
|
1263
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,6],[
|
1263
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,6],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,8],[32,6],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,6],[65,1],[16, ...builtin('__ecma262_LocalTime')],[26],[33,6],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,9],[5],[32,6],[65,1],[16, ...builtin('__ecma262_DateFromTime')],[26],[33,9],[11],[32,6],[65,1],[16, ...builtin('__ecma262_YearFromTime')],[34,7],[32,8],[65,1],[32,9],[65,1],[16, ...builtin('__ecma262_MakeDay')],[34,7],[32,6],[65,1],[16, ...builtin('__ecma262_TimeWithinDay')],[34,7],[16, ...builtin('__ecma262_MakeDate')],[26],[34,10],[65,1],[16, ...builtin('__ecma262_UTC')],[34,7],[16, ...builtin('__ecma262_TimeClip')],[26],[33,11],[32,0],[65,18],[32,11],[65,1],[16, ...builtin('__Porffor_date_write')],[33,7],[26],[32,11],[65,1],[15]],
|
1264
1264
|
params: [124,127,124,127,124,127], typedParams: 1,
|
1265
1265
|
returns: [124,127], typedReturns: 1,
|
1266
1266
|
locals: [124,127,124,124,124,124], localNames: ["_this","_this#type","month","month#type","date","date#type","t","#last_type","m","dt","newDate","u"],
|
1267
1267
|
};
|
1268
1268
|
this.__Date_prototype_setSeconds = {
|
1269
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,6],[
|
1269
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,6],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,8],[32,6],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,6],[65,1],[16, ...builtin('__ecma262_LocalTime')],[26],[33,6],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,9],[5],[32,6],[65,1],[16, ...builtin('__ecma262_msFromTime')],[26],[33,9],[11],[32,6],[65,1],[16, ...builtin('__ecma262_Day')],[34,7],[32,6],[65,1],[16, ...builtin('__ecma262_HourFromTime')],[34,7],[32,6],[65,1],[16, ...builtin('__ecma262_MinFromTime')],[34,7],[32,8],[65,1],[32,9],[65,1],[16, ...builtin('__ecma262_MakeTime')],[34,7],[16, ...builtin('__ecma262_MakeDate')],[26],[34,10],[65,1],[16, ...builtin('__ecma262_UTC')],[34,7],[16, ...builtin('__ecma262_TimeClip')],[26],[33,11],[32,0],[65,18],[32,11],[65,1],[16, ...builtin('__Porffor_date_write')],[33,7],[26],[32,11],[65,1],[15]],
|
1270
1270
|
params: [124,127,124,127,124,127], typedParams: 1,
|
1271
1271
|
returns: [124,127], typedReturns: 1,
|
1272
1272
|
locals: [124,127,124,124,124,124], localNames: ["_this","_this#type","sec","sec#type","ms","ms#type","t","#last_type","s","milli","date","u"],
|
1273
1273
|
};
|
1274
1274
|
this.__Date_prototype_setTime = {
|
1275
|
-
wasm: (scope, {builtin}) => [[
|
1275
|
+
wasm: (scope, {builtin}) => [[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[34,4],[65,1],[16, ...builtin('__ecma262_TimeClip')],[26],[33,6],[32,0],[65,18],[32,6],[65,1],[16, ...builtin('__Porffor_date_write')],[33,5],[26],[32,6],[65,1],[15]],
|
1276
1276
|
params: [124,127,124,127], typedParams: 1,
|
1277
1277
|
returns: [124,127], typedReturns: 1,
|
1278
|
-
locals: [124,124
|
1278
|
+
locals: [124,127,124], localNames: ["_this","_this#type","time","time#type","t","#last_type","v"],
|
1279
1279
|
};
|
1280
1280
|
this.__Date_prototype_setUTCDate = {
|
1281
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,4],[
|
1281
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,4],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,6],[32,4],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,4],[65,1],[16, ...builtin('__ecma262_YearFromTime')],[34,5],[32,4],[65,1],[16, ...builtin('__ecma262_MonthFromTime')],[34,5],[32,6],[65,1],[16, ...builtin('__ecma262_MakeDay')],[34,5],[32,4],[65,1],[16, ...builtin('__ecma262_TimeWithinDay')],[34,5],[16, ...builtin('__ecma262_MakeDate')],[26],[34,7],[65,1],[16, ...builtin('__ecma262_TimeClip')],[26],[33,8],[32,0],[65,18],[32,8],[65,1],[16, ...builtin('__Porffor_date_write')],[33,5],[26],[32,8],[65,1],[15]],
|
1282
1282
|
params: [124,127,124,127], typedParams: 1,
|
1283
1283
|
returns: [124,127], typedReturns: 1,
|
1284
1284
|
locals: [124,127,124,124,124], localNames: ["_this","_this#type","date","date#type","t","#last_type","dt","newDate","v"],
|
1285
1285
|
};
|
1286
1286
|
this.__Date_prototype_setUTCFullYear = {
|
1287
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[34,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[
|
1287
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[34,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,10],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[97],[4,64],[32,8],[65,1],[16, ...builtin('__ecma262_MonthFromTime')],[26],[33,11],[5],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,11],[11],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[97],[4,64],[32,8],[65,1],[16, ...builtin('__ecma262_DateFromTime')],[26],[33,12],[5],[32,6],[32,7],[16, ...builtin('__ecma262_ToNumber')],[26],[33,12],[11],[32,10],[65,1],[32,11],[65,1],[32,12],[65,1],[16, ...builtin('__ecma262_MakeDay')],[34,9],[32,8],[65,1],[16, ...builtin('__ecma262_TimeWithinDay')],[34,9],[16, ...builtin('__ecma262_MakeDate')],[26],[34,13],[65,1],[16, ...builtin('__ecma262_TimeClip')],[26],[33,14],[32,0],[65,18],[32,14],[65,1],[16, ...builtin('__Porffor_date_write')],[33,9],[26],[32,14],[65,1],[15]],
|
1288
1288
|
params: [124,127,124,127,124,127,124,127], typedParams: 1,
|
1289
1289
|
returns: [124,127], typedReturns: 1,
|
1290
1290
|
locals: [124,127,124,124,124,124,124], localNames: ["_this","_this#type","year","year#type","month","month#type","date","date#type","t","#last_type","y","m","dt","newDate","v"],
|
1291
1291
|
};
|
1292
1292
|
this.__Date_prototype_setUTCHours = {
|
1293
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,10],[
|
1293
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,10],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,12],[32,10],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,13],[5],[32,10],[65,1],[16, ...builtin('__ecma262_MinFromTime')],[26],[33,13],[11],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,6],[32,7],[16, ...builtin('__ecma262_ToNumber')],[26],[33,14],[5],[32,10],[65,1],[16, ...builtin('__ecma262_SecFromTime')],[26],[33,14],[11],[32,8],[32,9],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,8],[32,9],[16, ...builtin('__ecma262_ToNumber')],[26],[33,15],[5],[32,10],[65,1],[16, ...builtin('__ecma262_msFromTime')],[26],[33,15],[11],[32,10],[65,1],[16, ...builtin('__ecma262_Day')],[34,11],[32,12],[65,1],[32,13],[65,1],[32,14],[65,1],[32,15],[65,1],[16, ...builtin('__ecma262_MakeTime')],[34,11],[16, ...builtin('__ecma262_MakeDate')],[26],[34,16],[65,1],[16, ...builtin('__ecma262_TimeClip')],[26],[33,17],[32,0],[65,18],[32,17],[65,1],[16, ...builtin('__Porffor_date_write')],[33,11],[26],[32,17],[65,1],[15]],
|
1294
1294
|
params: [124,127,124,127,124,127,124,127,124,127], typedParams: 1,
|
1295
1295
|
returns: [124,127], typedReturns: 1,
|
1296
1296
|
locals: [124,127,124,124,124,124,124,124], localNames: ["_this","_this#type","hour","hour#type","min","min#type","sec","sec#type","ms","ms#type","t","#last_type","h","m","s","milli","date","v"],
|
1297
1297
|
};
|
1298
1298
|
this.__Date_prototype_setUTCMilliseconds = {
|
1299
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,4],[
|
1299
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,4],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,6],[32,4],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,4],[65,1],[16, ...builtin('__ecma262_HourFromTime')],[34,5],[32,4],[65,1],[16, ...builtin('__ecma262_MinFromTime')],[34,5],[32,4],[65,1],[16, ...builtin('__ecma262_SecFromTime')],[34,5],[32,6],[65,1],[16, ...builtin('__ecma262_MakeTime')],[26],[33,7],[32,4],[65,1],[16, ...builtin('__ecma262_Day')],[34,5],[32,7],[65,1],[16, ...builtin('__ecma262_MakeDate')],[34,5],[16, ...builtin('__ecma262_TimeClip')],[26],[33,8],[32,0],[65,18],[32,8],[65,1],[16, ...builtin('__Porffor_date_write')],[33,5],[26],[32,8],[65,1],[15]],
|
1300
1300
|
params: [124,127,124,127], typedParams: 1,
|
1301
1301
|
returns: [124,127], typedReturns: 1,
|
1302
1302
|
locals: [124,127,124,124,124], localNames: ["_this","_this#type","ms","ms#type","t","#last_type","milli","time","v"],
|
1303
1303
|
};
|
1304
1304
|
this.__Date_prototype_setUTCMinutes = {
|
1305
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,8],[
|
1305
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,8],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,10],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,11],[5],[32,8],[65,1],[16, ...builtin('__ecma262_SecFromTime')],[26],[33,11],[11],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,6],[32,7],[16, ...builtin('__ecma262_ToNumber')],[26],[33,12],[5],[32,8],[65,1],[16, ...builtin('__ecma262_msFromTime')],[26],[33,12],[11],[32,8],[65,1],[16, ...builtin('__ecma262_Day')],[34,9],[32,8],[65,1],[16, ...builtin('__ecma262_HourFromTime')],[34,9],[32,10],[65,1],[32,11],[65,1],[32,12],[65,1],[16, ...builtin('__ecma262_MakeTime')],[34,9],[16, ...builtin('__ecma262_MakeDate')],[26],[34,13],[65,1],[16, ...builtin('__ecma262_TimeClip')],[26],[33,14],[32,0],[65,18],[32,14],[65,1],[16, ...builtin('__Porffor_date_write')],[33,9],[26],[32,14],[65,1],[15]],
|
1306
1306
|
params: [124,127,124,127,124,127,124,127], typedParams: 1,
|
1307
1307
|
returns: [124,127], typedReturns: 1,
|
1308
1308
|
locals: [124,127,124,124,124,124,124], localNames: ["_this","_this#type","min","min#type","sec","sec#type","ms","ms#type","t","#last_type","m","s","milli","date","v"],
|
1309
1309
|
};
|
1310
1310
|
this.__Date_prototype_setUTCMonth = {
|
1311
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,6],[
|
1311
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,6],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,8],[32,6],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,9],[5],[32,6],[65,1],[16, ...builtin('__ecma262_DateFromTime')],[26],[33,9],[11],[32,6],[65,1],[16, ...builtin('__ecma262_YearFromTime')],[34,7],[32,8],[65,1],[32,9],[65,1],[16, ...builtin('__ecma262_MakeDay')],[34,7],[32,6],[65,1],[16, ...builtin('__ecma262_TimeWithinDay')],[34,7],[16, ...builtin('__ecma262_MakeDate')],[26],[34,10],[65,1],[16, ...builtin('__ecma262_TimeClip')],[26],[33,11],[32,0],[65,18],[32,11],[65,1],[16, ...builtin('__Porffor_date_write')],[33,7],[26],[32,11],[65,1],[15]],
|
1312
1312
|
params: [124,127,124,127,124,127], typedParams: 1,
|
1313
1313
|
returns: [124,127], typedReturns: 1,
|
1314
1314
|
locals: [124,127,124,124,124,124], localNames: ["_this","_this#type","month","month#type","date","date#type","t","#last_type","m","dt","newDate","v"],
|
1315
1315
|
};
|
1316
1316
|
this.__Date_prototype_setUTCSeconds = {
|
1317
|
-
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,6],[
|
1317
|
+
wasm: (scope, {builtin}) => [[32,0],[65,18],[16, ...builtin('__Porffor_date_read')],[26],[33,6],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,8],[32,6],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,9],[5],[32,6],[65,1],[16, ...builtin('__ecma262_msFromTime')],[26],[33,9],[11],[32,6],[65,1],[16, ...builtin('__ecma262_Day')],[34,7],[32,6],[65,1],[16, ...builtin('__ecma262_HourFromTime')],[34,7],[32,6],[65,1],[16, ...builtin('__ecma262_MinFromTime')],[34,7],[32,8],[65,1],[32,9],[65,1],[16, ...builtin('__ecma262_MakeTime')],[34,7],[16, ...builtin('__ecma262_MakeDate')],[26],[34,10],[65,1],[16, ...builtin('__ecma262_TimeClip')],[26],[33,11],[32,0],[65,18],[32,11],[65,1],[16, ...builtin('__Porffor_date_write')],[33,7],[26],[32,11],[65,1],[15]],
|
1318
1318
|
params: [124,127,124,127,124,127], typedParams: 1,
|
1319
1319
|
returns: [124,127], typedReturns: 1,
|
1320
1320
|
locals: [124,127,124,124,124,124], localNames: ["_this","_this#type","sec","sec#type","ms","ms#type","t","#last_type","s","milli","date","v"],
|
@@ -1433,7 +1433,7 @@ export const BuiltinFuncs = function() {
|
|
1433
1433
|
locals: [127], localNames: ["_this","_this#type","#last_type"],
|
1434
1434
|
};
|
1435
1435
|
this.Date = {
|
1436
|
-
wasm: (scope, {builtin}) => [[32,-1],[184],[65,2],[33,14],[33,15],[32,14],[33,16],[2,124],[32,16],[65,195,0],[70],[4,64,"TYPESWITCH|String"],[32,15],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,16],[65,195,1],[70],[4,64,"TYPESWITCH|ByteString"],[32,15],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,15],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],[16, ...builtin('__Date_now')],[34,14],[16, ...builtin('__ecma262_ToDateString')],[34,14],[15],[11],[32,0],[32,1],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[32,2],[32,3],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,8],[32,9],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,10],[32,11],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,12],[32,13],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[33,17],[68,0,0,0,0,0,0,0,0],[33,18],[32,17],[68,0,0,0,0,0,0,0,0],[97],[4,64],[16, ...builtin('__Date_now')],[26],[33,18],[5],[32,17],[68,0,0,0,0,0,0,240,63],[97],[4,64],[32,0],[33,19],[32,1],[33,20],[32,0],[32,1],[16, ...builtin('__Porffor_rawType')],[33,21],[68,0,0,0,0,0,0,0,0],[33,22],[32,21],[68,0,0,0,0,0,0,50,64],[97],[4,64],[32,19],[32,20],[16, ...builtin('__Porffor_date_read')],[26],[33,22],[5],[32,21],[68,0,0,0,0,0,192,80,64],[97],[32,21],[68,0,0,0,0,0,96,104,64],[97],[114],[4,64],[32,19],[32,20],[16, ...builtin('__Date_parse')],[26],[33,22],[5],[
|
1436
|
+
wasm: (scope, {builtin}) => [[32,-1],[184],[65,2],[33,14],[33,15],[32,14],[33,16],[2,124],[32,16],[65,195,0],[70],[4,64,"TYPESWITCH|String"],[32,15],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,16],[65,195,1],[70],[4,64,"TYPESWITCH|ByteString"],[32,15],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,15],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],[16, ...builtin('__Date_now')],[34,14],[16, ...builtin('__ecma262_ToDateString')],[34,14],[15],[11],[32,0],[32,1],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[32,2],[32,3],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,4],[32,5],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,6],[32,7],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,8],[32,9],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,10],[32,11],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[32,12],[32,13],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,96,64],[98],[184],[160],[33,17],[68,0,0,0,0,0,0,0,0],[33,18],[32,17],[68,0,0,0,0,0,0,0,0],[97],[4,64],[16, ...builtin('__Date_now')],[26],[33,18],[5],[32,17],[68,0,0,0,0,0,0,240,63],[97],[4,64],[32,0],[33,19],[32,1],[33,20],[32,0],[32,1],[16, ...builtin('__Porffor_rawType')],[33,21],[68,0,0,0,0,0,0,0,0],[33,22],[32,21],[68,0,0,0,0,0,0,50,64],[97],[4,64],[32,19],[32,20],[16, ...builtin('__Porffor_date_read')],[26],[33,22],[5],[32,21],[68,0,0,0,0,0,192,80,64],[97],[32,21],[68,0,0,0,0,0,96,104,64],[97],[114],[4,64],[32,19],[32,20],[16, ...builtin('__Date_parse')],[26],[33,22],[5],[32,19],[32,20],[16, ...builtin('__ecma262_ToNumber')],[26],[33,22],[11],[11],[32,22],[65,1],[16, ...builtin('__ecma262_TimeClip')],[26],[33,18],[5],[32,0],[32,1],[16, ...builtin('__ecma262_ToNumber')],[26],[33,23],[32,2],[32,3],[16, ...builtin('__ecma262_ToNumber')],[26],[33,24],[68,0,0,0,0,0,0,240,63],[33,25],[32,17],[68,0,0,0,0,0,0,0,64],[100],[4,64],[32,4],[32,5],[16, ...builtin('__ecma262_ToNumber')],[26],[33,25],[11],[68,0,0,0,0,0,0,0,0],[33,26],[32,17],[68,0,0,0,0,0,0,8,64],[100],[4,64],[32,6],[32,7],[16, ...builtin('__ecma262_ToNumber')],[26],[33,26],[11],[68,0,0,0,0,0,0,0,0],[33,27],[32,17],[68,0,0,0,0,0,0,16,64],[100],[4,64],[32,8],[32,9],[16, ...builtin('__ecma262_ToNumber')],[26],[33,27],[11],[68,0,0,0,0,0,0,0,0],[33,28],[32,17],[68,0,0,0,0,0,0,20,64],[100],[4,64],[32,10],[32,11],[16, ...builtin('__ecma262_ToNumber')],[26],[33,28],[11],[68,0,0,0,0,0,0,0,0],[33,29],[32,17],[68,0,0,0,0,0,0,24,64],[100],[4,64],[32,12],[32,13],[16, ...builtin('__ecma262_ToNumber')],[26],[33,29],[11],[32,23],[65,1],[16, ...builtin('__ecma262_MakeFullYear')],[26],[34,30],[65,1],[32,24],[65,1],[32,25],[65,1],[16, ...builtin('__ecma262_MakeDay')],[34,14],[32,26],[65,1],[32,27],[65,1],[32,28],[65,1],[32,29],[65,1],[16, ...builtin('__ecma262_MakeTime')],[34,14],[16, ...builtin('__ecma262_MakeDate')],[26],[34,31],[65,1],[16, ...builtin('__ecma262_UTC')],[34,14],[16, ...builtin('__ecma262_TimeClip')],[26],[33,18],[11],[11],[65,8],[16, ...builtin('__Porffor_allocateBytes')],[183],[34,32],[65,18],[32,18],[65,1],[16, ...builtin('__Porffor_date_write')],[33,14],[26],[32,32],[65,18],[15]],
|
1437
1437
|
params: [124,127,124,127,124,127,124,127,124,127,124,127,124,127], typedParams: 1,
|
1438
1438
|
returns: [124,127], typedReturns: 1,
|
1439
1439
|
locals: [127,124,127,124,124,124,127,124,124,124,124,124,124,124,124,124,124,124,124], localNames: ["v0","v0#type","v1","v1#type","v2","v2#type","v3","v3#type","v4","v4#type","v5","v5#type","v6","v6#type","#last_type","#logicinner_tmp","#typeswitch_tmp","numberOfArgs","dv","value","value#type","valueType","tv","y","m","dt","h","min","s","milli","yr","finalDate","O"],
|
@@ -1681,10 +1681,10 @@ export const BuiltinFuncs = function() {
|
|
1681
1681
|
locals: [], localNames: ["_this","_this#type"],
|
1682
1682
|
};
|
1683
1683
|
this.parseInt = {
|
1684
|
-
wasm: (scope, {builtin}) => [[32,2],[32,3],[16, ...builtin('__ecma262_ToIntegerOrInfinity')],[33,3],[34,2],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,0,36,64],[34,2],[65,1],[33,3],[26],[11],[32,2],[68,0,0,0,0,0,0,0,64],[99],[34,
|
1684
|
+
wasm: (scope, {builtin}) => [[32,0],[32,1],[16, ...builtin('__ecma262_ToString')],[33,1],[33,0],[68,0,0,0,0,0,0,0,0],[33,5],[32,2],[32,3],[16, ...builtin('__ecma262_ToIntegerOrInfinity')],[33,3],[34,2],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,5],[68,0,0,0,0,0,0,36,64],[34,2],[65,1],[33,3],[26],[11],[32,2],[68,0,0,0,0,0,0,0,64],[99],[34,6],[69],[4,127],[32,2],[68,0,0,0,0,0,0,66,64],[100],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[68,0,0,0,0,0,0,77,64],[33,7],[32,2],[68,0,0,0,0,0,0,36,64],[99],[4,64],[68,0,0,0,0,0,0,72,64],[32,2],[160],[33,7],[11],[68,0,0,0,0,0,0,248,127],[33,8],[32,0],[34,9],[252,2],[40,0,0],[183],[33,10],[32,9],[33,11],[68,0,0,0,0,0,0,0,0],[33,12],[32,0],[32,1],[16, ...builtin('__Porffor_rawType')],[68,0,0,0,0,0,96,104,64],[97],[4,64],[32,11],[32,10],[160],[33,13],[32,11],[252,2],[45,0,4],[183],[34,14],[68,0,0,0,0,0,128,69,64],[97],[4,64],[32,11],[68,0,0,0,0,0,0,240,63],[160],[33,11],[11],[32,14],[68,0,0,0,0,0,128,70,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,12],[32,11],[68,0,0,0,0,0,0,240,63],[160],[33,11],[11],[32,5],[34,15],[68,0,0,0,0,0,0,0,0],[97],[4,124],[32,2],[68,0,0,0,0,0,0,48,64],[97],[184],[65,2],[33,4],[5],[32,15],[65,2],[33,4],[11],[34,15],[33,16],[32,4],[33,17],[2,127],[32,17],[65,195,0],[70],[4,64,"TYPESWITCH|String"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,17],[65,195,1],[70],[4,64,"TYPESWITCH|ByteString"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,16],[252,3],[11,"TYPESWITCH_end"],[4,124],[32,14],[68,0,0,0,0,0,0,72,64],[97],[184],[65,2],[33,4],[5],[32,15],[32,4],[33,4],[11],[33,16],[32,4],[33,17],[2,127],[32,17],[65,195,0],[70],[4,64,"TYPESWITCH|String"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,17],[65,195,1],[70],[4,64,"TYPESWITCH|ByteString"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,16],[252,3],[11,"TYPESWITCH_end"],[4,64],[32,11],[68,0,0,0,0,0,0,240,63],[160],[252,2],[45,0,4],[183],[34,18],[68,0,0,0,0,0,0,94,64],[97],[34,6],[69],[4,127],[32,18],[68,0,0,0,0,0,0,86,64],[97],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[32,11],[68,0,0,0,0,0,0,0,64],[160],[33,11],[68,0,0,0,0,0,0,48,64],[34,2],[65,1],[33,3],[26],[11],[11],[3,64],[32,11],[32,13],[99],[4,64],[32,11],[32,11],[68,0,0,0,0,0,0,240,63],[160],[33,11],[252,2],[45,0,4],[183],[34,19],[68,0,0,0,0,0,0,72,64],[102],[34,6],[4,127],[32,19],[32,7],[99],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[32,8],[32,2],[162],[34,8],[32,19],[68,0,0,0,0,0,0,72,64],[161],[160],[33,8],[5],[32,2],[68,0,0,0,0,0,0,36,64],[100],[4,64],[32,19],[68,0,0,0,0,0,64,88,64],[102],[34,6],[4,127],[32,19],[68,0,0,0,0,0,192,85,64],[32,2],[160],[99],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[32,8],[32,2],[162],[34,8],[32,19],[68,0,0,0,0,0,192,85,64],[161],[160],[33,8],[5],[32,19],[68,0,0,0,0,0,64,80,64],[102],[34,6],[4,127],[32,19],[68,0,0,0,0,0,128,75,64],[32,2],[160],[99],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[32,8],[32,2],[162],[34,8],[32,19],[68,0,0,0,0,0,128,75,64],[161],[160],[33,8],[5],[12,4],[11],[11],[5],[12,2],[11],[11],[12,1],[11],[11],[32,12],[252,3],[4,64],[32,8],[154],[65,1],[15],[11],[32,8],[65,1],[15],[11],[32,11],[32,10],[68,0,0,0,0,0,0,0,64],[162],[160],[33,13],[32,11],[252,2],[47,0,4],[183],[34,14],[68,0,0,0,0,0,128,69,64],[97],[4,64],[32,11],[68,0,0,0,0,0,0,0,64],[160],[33,11],[11],[32,14],[68,0,0,0,0,0,128,70,64],[97],[4,64],[68,0,0,0,0,0,0,240,63],[33,12],[32,11],[68,0,0,0,0,0,0,0,64],[160],[33,11],[11],[32,5],[34,15],[68,0,0,0,0,0,0,0,0],[97],[4,124],[32,2],[68,0,0,0,0,0,0,48,64],[97],[184],[65,2],[33,4],[5],[32,15],[65,2],[33,4],[11],[34,15],[33,16],[32,4],[33,17],[2,127],[32,17],[65,195,0],[70],[4,64,"TYPESWITCH|String"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,17],[65,195,1],[70],[4,64,"TYPESWITCH|ByteString"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,16],[252,3],[11,"TYPESWITCH_end"],[4,124],[32,14],[68,0,0,0,0,0,0,72,64],[97],[184],[65,2],[33,4],[5],[32,15],[32,4],[33,4],[11],[33,16],[32,4],[33,17],[2,127],[32,17],[65,195,0],[70],[4,64,"TYPESWITCH|String"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,17],[65,195,1],[70],[4,64,"TYPESWITCH|ByteString"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,16],[252,3],[11,"TYPESWITCH_end"],[4,64],[32,11],[68,0,0,0,0,0,0,0,64],[160],[252,2],[47,0,4],[183],[34,18],[68,0,0,0,0,0,0,94,64],[97],[34,6],[69],[4,127],[32,18],[68,0,0,0,0,0,0,86,64],[97],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[32,11],[68,0,0,0,0,0,0,16,64],[160],[33,11],[68,0,0,0,0,0,0,48,64],[34,2],[65,1],[33,3],[26],[11],[11],[3,64],[32,11],[32,13],[99],[4,64],[32,11],[252,2],[47,0,4],[183],[33,19],[32,11],[68,0,0,0,0,0,0,0,64],[160],[33,11],[32,19],[68,0,0,0,0,0,0,72,64],[102],[34,6],[4,127],[32,19],[32,7],[99],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[32,8],[32,2],[162],[34,8],[32,19],[68,0,0,0,0,0,0,72,64],[161],[160],[33,8],[5],[32,2],[68,0,0,0,0,0,0,36,64],[100],[4,64],[32,19],[68,0,0,0,0,0,64,88,64],[102],[34,6],[4,127],[32,19],[68,0,0,0,0,0,192,85,64],[32,2],[160],[99],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[32,8],[32,2],[162],[34,8],[32,19],[68,0,0,0,0,0,192,85,64],[161],[160],[33,8],[5],[32,19],[68,0,0,0,0,0,64,80,64],[102],[34,6],[4,127],[32,19],[68,0,0,0,0,0,128,75,64],[32,2],[160],[99],[65,2],[33,4],[5],[32,6],[65,2],[33,4],[11],[4,64],[32,8],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[11],[32,8],[32,2],[162],[34,8],[32,19],[68,0,0,0,0,0,128,75,64],[161],[160],[33,8],[5],[12,4],[11],[11],[5],[12,2],[11],[11],[12,1],[11],[11],[32,12],[252,3],[4,64],[32,8],[154],[65,1],[15],[11],[32,8],[65,1],[15]],
|
1685
1685
|
params: [124,127,124,127], typedParams: 1,
|
1686
1686
|
returns: [124,127], typedReturns: 1,
|
1687
|
-
locals: [127,127,124,124,124,124,124,124,124,124,124,124], localNames: ["input","input#type","radix","radix#type","#last_type","logictmpi","nMax","n","inputPtr","len","i","negative","endPtr","startChr","second","chr"],
|
1687
|
+
locals: [127,124,127,124,124,124,124,124,124,124,124,124,124,127,124,124], localNames: ["input","input#type","radix","radix#type","#last_type","defaultRadix","logictmpi","nMax","n","inputPtr","len","i","negative","endPtr","startChr","logictmp","#logicinner_tmp","#typeswitch_tmp","second","chr"],
|
1688
1688
|
};
|
1689
1689
|
this.__Number_parseInt = {
|
1690
1690
|
wasm: (scope, {builtin}) => [[32,0],[32,1],[32,2],[32,3],[16, ...builtin('parseInt')],[34,4],[15]],
|
@@ -4430,11 +4430,23 @@ export const BuiltinFuncs = function() {
|
|
4430
4430
|
returns: [124,127], typedReturns: 1,
|
4431
4431
|
locals: [127], localNames: ["_this","_this#type","#last_type"],
|
4432
4432
|
};
|
4433
|
+
this.__ecma262_StringToNumber = {
|
4434
|
+
wasm: (scope, {}) => [[68,0,0,0,0,0,0,248,127],[65,1],[15]],
|
4435
|
+
params: [124,127], typedParams: 1,
|
4436
|
+
returns: [124,127], typedReturns: 1,
|
4437
|
+
locals: [], localNames: ["str","str#type"],
|
4438
|
+
};
|
4439
|
+
this.__ecma262_ToNumber = {
|
4440
|
+
wasm: (scope, {builtin,internalThrow}) => [[32,0],[32,1],[16, ...builtin('__Porffor_rawType')],[34,2],[68,0,0,0,0,0,0,240,63],[97],[4,64],[32,0],[32,1],[15],[11],[32,2],[68,0,0,0,0,0,0,20,64],[97],[32,2],[68,0,0,0,0,0,0,16,64],[97],[114],[4,64],...internalThrow(scope, 'TypeError', `Cannot convert Symbol or BigInt to a number`),[11],[32,2],[68,0,0,0,0,0,0,96,64],[97],[32,2],[68,0,0,0,0,0,0,0,0],[97],[114],[4,64],[68,0,0,0,0,0,0,248,127],[65,1],[15],[11],[32,0],[68,0,0,0,0,0,0,0,0],[97],[32,1],[65,128,1],[114],[65,7],[65,128,1],[114],[70],[113],[32,0],[68,0,0,0,0,0,0,0,0],[97],[32,1],[65,128,1],[114],[65,2],[65,128,1],[114],[70],[113],[114],[4,64],[68,0,0,0,0,0,0,0,0],[65,1],[15],[11],[32,0],[68,0,0,0,0,0,0,240,63],[97],[32,1],[65,128,1],[114],[65,2],[65,128,1],[114],[70],[113],[4,64],[68,0,0,0,0,0,0,240,63],[65,1],[15],[11],[32,2],[68,0,0,0,0,0,192,80,64],[97],[32,2],[68,0,0,0,0,0,96,104,64],[97],[114],[4,64],[32,0],[32,1],[16, ...builtin('__ecma262_StringToNumber')],[34,3],[15],[11],[68,0,0,0,0,0,0,248,127],[65,1],[15]],
|
4441
|
+
params: [124,127], typedParams: 1,
|
4442
|
+
returns: [124,127], typedReturns: 1,
|
4443
|
+
locals: [124,127], localNames: ["argument","argument#type","t","#last_type"],
|
4444
|
+
};
|
4433
4445
|
this.__ecma262_ToIntegerOrInfinity = {
|
4434
|
-
wasm: (scope, {builtin}) => [[
|
4446
|
+
wasm: (scope, {builtin}) => [[32,0],[32,1],[16, ...builtin('__ecma262_ToNumber')],[26],[34,2],[16, ...builtin('__Number_isNaN')],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[65,1],[15],[11],[32,2],[16, ...builtin('__Number_isFinite')],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,2],[65,1],[15],[11],[32,2],[16, ...builtin('__Math_trunc')],[34,2],[68,0,0,0,0,0,0,0,0],[97],[4,64],[68,0,0,0,0,0,0,0,0],[65,1],[15],[11],[32,2],[65,1],[15]],
|
4435
4447
|
params: [124,127], typedParams: 1,
|
4436
4448
|
returns: [124,127], typedReturns: 1,
|
4437
|
-
locals: [124], localNames: ["argument","argument#type","number"],
|
4449
|
+
locals: [124,127], localNames: ["argument","argument#type","number","#last_type"],
|
4438
4450
|
};
|
4439
4451
|
this.__ecma262_ToString = {
|
4440
4452
|
wasm: (scope, {allocPage,builtin,internalThrow}) => [[32,0],[32,1],[16, ...builtin('__Porffor_rawType')],[34,2],[68,0,0,0,0,0,192,80,64],[97],[32,2],[68,0,0,0,0,0,96,104,64],[97],[114],[4,64],[32,0],[32,1],[15],[11],[32,2],[68,0,0,0,0,0,0,20,64],[97],[4,64],...internalThrow(scope, 'TypeError', `Cannot convert a Symbol value to a string`),[11],[16, ...builtin('__Porffor_allocate')],[183],[33,3],[32,2],[68,0,0,0,0,0,0,96,64],[97],[32,2],[68,0,0,0,0,0,0,0,0],[97],[114],[4,64],...number(allocPage(scope, 'bytestring: __ecma262_ToString/out', 'i8') * pageSize, 124),[34,3],[65,195,1],[15],[11],[32,2],[68,0,0,0,0,0,0,28,64],[97],[32,0],[68,0,0,0,0,0,0,0,0],[97],[113],[4,64],[32,3],[252,3],[34,4],[65,4],[54,1,0],[32,4],[65,238,0],[58,0,4],[32,4],[65,245,0],[58,0,5],[32,4],[65,236,0],[58,0,6],[32,4],[65,236,0],[58,0,7],[32,4],[184],[34,3],[65,195,1],[15],[11],[32,2],[68,0,0,0,0,0,0,0,64],[97],[4,64],[32,0],[68,0,0,0,0,0,0,240,63],[97],[4,64],[32,3],[252,3],[34,4],[65,4],[54,1,0],[32,4],[65,244,0],[58,0,4],[32,4],[65,242,0],[58,0,5],[32,4],[65,245,0],[58,0,6],[32,4],[65,229,0],[58,0,7],[32,4],[184],[34,3],[65,195,1],[15],[11],[32,3],[252,3],[34,4],[65,5],[54,1,0],[32,4],[65,230,0],[58,0,4],[32,4],[65,225,0],[58,0,5],[32,4],[65,236,0],[58,0,6],[32,4],[65,243,0],[58,0,7],[32,4],[65,229,0],[58,0,8],[32,4],[184],[34,3],[65,195,1],[15],[11],[32,0],[33,5],[32,1],[34,6],[33,8],[2,124],[32,8],[65,1],[70],[4,64,"TYPESWITCH|Number"],[32,5],[32,6],[68,0,0,0,0,0,0,0,0],[65,128,1],[16, ...builtin('__Number_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,2],[70],[4,64,"TYPESWITCH|Boolean"],[32,5],[32,6],[16, ...builtin('__Boolean_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,5],[70],[4,64,"TYPESWITCH|Symbol"],[32,5],[32,6],[16, ...builtin('__Symbol_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,6],[70],[4,64,"TYPESWITCH|Function"],[32,5],[32,6],[16, ...builtin('__Function_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,7],[70],[4,64,"TYPESWITCH|Object"],[32,5],[32,6],[16, ...builtin('__Object_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,18],[70],[4,64,"TYPESWITCH|Date"],[32,5],[32,6],[16, ...builtin('__Date_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,19],[70],[4,64,"TYPESWITCH|Set"],[32,5],[32,6],[16, ...builtin('__Set_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,20],[70],[4,64,"TYPESWITCH|Map"],[32,5],[32,6],[16, ...builtin('__Map_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,33],[70],[4,64,"TYPESWITCH|WeakRef"],[32,5],[32,6],[16, ...builtin('__WeakRef_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,34],[70],[4,64,"TYPESWITCH|WeakSet"],[32,5],[32,6],[16, ...builtin('__WeakSet_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,35],[70],[4,64,"TYPESWITCH|WeakMap"],[32,5],[32,6],[16, ...builtin('__WeakMap_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,195,0],[70],[4,64,"TYPESWITCH|String"],[32,5],[252,2],[32,6],[16, ...builtin('__String_prototype_toString')],[33,7],[183],[12,1],[11],[32,8],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,5],[32,6],[16, ...builtin('__Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,216,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,5],[32,6],[16, ...builtin('__Uint8Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,217,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,5],[32,6],[16, ...builtin('__Int8Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,218,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,5],[32,6],[16, ...builtin('__Uint8ClampedArray_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,219,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,5],[32,6],[16, ...builtin('__Uint16Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,220,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,5],[32,6],[16, ...builtin('__Int16Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,221,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,5],[32,6],[16, ...builtin('__Uint32Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,222,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,5],[32,6],[16, ...builtin('__Int32Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,223,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,5],[32,6],[16, ...builtin('__Float32Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,224,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,5],[32,6],[16, ...builtin('__Float64Array_prototype_toString')],[33,7],[12,1],[11],[32,8],[65,195,1],[70],[4,64,"TYPESWITCH|ByteString"],[32,5],[252,2],[32,6],[16, ...builtin('__ByteString_prototype_toString')],[33,7],[183],[12,1],[11],...internalThrow(scope, 'TypeError', `'toString' proto func tried to be called on a type without an impl`),[11,"TYPESWITCH_end"],[32,7],[15]],
|
package/package.json
CHANGED