porffor 0.37.20 → 0.37.21

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.
@@ -4,7 +4,7 @@ export const __Porffor_object_underlying = (obj: any): any => {
4
4
  const t: i32 = Porffor.rawType(obj);
5
5
  if (t == Porffor.TYPES.object) return obj;
6
6
 
7
- if (Porffor.fastAnd(t > 0x05, t != Porffor.TYPES.string, t != Porffor.TYPES.bytestring, t != Porffor.TYPES.undefined)) {
7
+ if (Porffor.fastAnd(t > 0x05, t != Porffor.TYPES.undefined)) {
8
8
  let idx: i32 = underlyingKeys.indexOf(obj);
9
9
  if (idx == -1) {
10
10
  const underlying: object = {};
@@ -22,6 +22,47 @@ export const __Porffor_object_underlying = (obj: any): any => {
22
22
  }
23
23
  }
24
24
 
25
+ if (t == Porffor.TYPES.array) {
26
+ const arr: any[] = obj;
27
+ const len: i32 = arr.length;
28
+
29
+ const key3: bytestring = 'length';
30
+ __Porffor_object_expr_initWithFlags(underlying, key3, len, 0b1000);
31
+
32
+ // todo: this should somehow be kept in sync?
33
+ for (let i: i32 = 0; i < len; i++) {
34
+ __Porffor_object_expr_initWithFlags(underlying, __Number_prototype_toString(i), arr[i], 0b1110);
35
+ }
36
+ }
37
+
38
+ if (t == Porffor.TYPES.string) {
39
+ const str: string = obj;
40
+ const len: i32 = str.length;
41
+
42
+ const key3: bytestring = 'length';
43
+ __Porffor_object_expr_initWithFlags(underlying, key1, len, 0b0000);
44
+
45
+ for (let i: i32 = 0; i < len; i++) {
46
+ __Porffor_object_expr_initWithFlags(underlying, __Number_prototype_toString(i), str[i], 0b0100);
47
+ }
48
+
49
+ Porffor.object.preventExtensions(underlying);
50
+ }
51
+
52
+ if (t == Porffor.TYPES.bytestring) {
53
+ const str: bytestring = obj;
54
+ const len: i32 = str.length;
55
+
56
+ const key3: bytestring = 'length';
57
+ __Porffor_object_expr_initWithFlags(underlying, key1, len, 0b0000);
58
+
59
+ for (let i: i32 = 0; i < len; i++) {
60
+ __Porffor_object_expr_initWithFlags(underlying, __Number_prototype_toString(i), str[i], 0b0100);
61
+ }
62
+
63
+ Porffor.object.preventExtensions(underlying);
64
+ }
65
+
25
66
  Porffor.array.fastPush(underlyingVals, underlying);
26
67
  idx = Porffor.array.fastPush(underlyingKeys, obj) - 1;
27
68
  }
@@ -18,6 +18,7 @@ export const __Object_keys = (obj: any): any[] => {
18
18
  if (obj == null) throw new TypeError('Argument is nullish, expected object');
19
19
  const out: any[] = Porffor.allocate();
20
20
 
21
+ obj = __Porffor_object_underlying(obj);
21
22
  const t: i32 = Porffor.rawType(obj);
22
23
  if (t == Porffor.TYPES.object) {
23
24
  let ptr: i32 = Porffor.wasm`local.get ${obj}` + 5;
@@ -64,25 +65,6 @@ local.set ${key}`;
64
65
  }
65
66
 
66
67
  out.length = i;
67
- } else {
68
- if (Porffor.fastOr(
69
- t == Porffor.TYPES.array,
70
- t == Porffor.TYPES.bytestring,
71
- t == Porffor.TYPES.string
72
- )) {
73
- const len: i32 = obj.length;
74
- out.length = len;
75
-
76
- for (let i: i32 = 0; i < len; i++) {
77
- out[i] = __Number_prototype_toString(i);
78
- }
79
- }
80
-
81
- obj = __Porffor_object_underlying(obj);
82
- if (Porffor.rawType(obj) == Porffor.TYPES.object) {
83
- const objKeys: any[] = __Object_keys(obj);
84
- for (const x of objKeys) Porffor.array.fastPush(out, x);
85
- }
86
68
  }
87
69
 
88
70
  return out;
@@ -92,6 +74,7 @@ export const __Object_values = (obj: any): any[] => {
92
74
  if (obj == null) throw new TypeError('Argument is nullish, expected object');
93
75
  const out: any[] = Porffor.allocate();
94
76
 
77
+ obj = __Porffor_object_underlying(obj);
95
78
  const t: i32 = Porffor.rawType(obj);
96
79
  if (t == Porffor.TYPES.object) {
97
80
  let ptr: i32 = Porffor.wasm`local.get ${obj}` + 5;
@@ -118,25 +101,6 @@ local.set ${val+1}`;
118
101
  }
119
102
 
120
103
  out.length = i;
121
- } else {
122
- if (Porffor.fastOr(
123
- t == Porffor.TYPES.array,
124
- t == Porffor.TYPES.bytestring,
125
- t == Porffor.TYPES.string
126
- )) {
127
- const len: i32 = obj.length;
128
- out.length = len;
129
-
130
- for (let i: i32 = 0; i < len; i++) {
131
- out[i] = obj[i];
132
- }
133
- }
134
-
135
- obj = __Porffor_object_underlying(obj);
136
- if (Porffor.rawType(obj) == Porffor.TYPES.object) {
137
- const objVals: any[] = __Object_values(obj);
138
- for (const x of objVals) Porffor.array.fastPush(out, x);
139
- }
140
104
  }
141
105
 
142
106
  return out;
@@ -454,6 +418,7 @@ export const __Object_getOwnPropertyNames = (obj: any): any[] => {
454
418
  if (obj == null) throw new TypeError('Argument is nullish, expected object');
455
419
  const out: any[] = Porffor.allocate();
456
420
 
421
+ obj = __Porffor_object_underlying(obj);
457
422
  const t: i32 = Porffor.rawType(obj);
458
423
  if (t == Porffor.TYPES.object) {
459
424
  let ptr: i32 = Porffor.wasm`local.get ${obj}` + 5;
@@ -499,25 +464,6 @@ local.set ${key}`;
499
464
  }
500
465
 
501
466
  out.length = i;
502
- } else {
503
- if (Porffor.fastOr(
504
- t == Porffor.TYPES.array,
505
- t == Porffor.TYPES.bytestring,
506
- t == Porffor.TYPES.string
507
- )) {
508
- const len: i32 = obj.length;
509
- out.length = len;
510
-
511
- for (let i: i32 = 0; i < len; i++) {
512
- out[i] = __Number_prototype_toString(i);
513
- }
514
- }
515
-
516
- obj = __Porffor_object_underlying(obj);
517
- if (Porffor.rawType(obj) == Porffor.TYPES.object) {
518
- const objKeys: any[] = __Object_getOwnPropertyNames(obj);
519
- for (const x of objKeys) Porffor.array.fastPush(out, x);
520
- }
521
467
  }
522
468
 
523
469
  return out;
@@ -366,7 +366,6 @@ export const __Promise_allSettled = (promises: any): Promise => {
366
366
  _allLen++;
367
367
  if (__ecma262_IsPromise(x)) {
368
368
  x.then(r => {
369
- // Porffor.print(r);
370
369
  const o = {};
371
370
  let status: bytestring = '';
372
371
  status = 'fulfilled';
@@ -3,11 +3,11 @@ import { number } from './embedding.js';
3
3
 
4
4
  export const BuiltinFuncs = function() {
5
5
  this.__Porffor_object_underlying = {
6
- wasm:(_,{allocPage,glbl,builtin})=>[[32,1],[184],[34,2],[68,7],[97],[4,64],[32,0],[32,1],[15],[11],[32,2],[68,5],[100],[32,2],[68,67],[98],[113],[32,2],[68,195],[98],[113],[32,2],[68,128],[98],[113],[4,64],...glbl(35,'underlyingKeys',124),[33,4],[65,208,0],[33,5],[32,4],[32,5],[32,0],[32,1],[68,0],[65,128,1],[16,builtin('__Array_prototype_indexOf')],[33,6],[34,3],[68,-1],[97],[4,64],[16,builtin('__Porffor_allocate')],[184],[33,7],[32,2],[68,6],[97],[4,64],[32,0],[252,2],[16,builtin('__Porffor_funcLut_flags')],[183],[34,8],[68,2],[16,builtin('f64_&')],[252,3],[4,64],[16,builtin('__Porffor_allocate')],[184],[33,9],[65,7],[33,10],...number(allocPage(_,'bytestring: __Porffor_object_underlying/key1','i8'),124),[33,11],[32,7],[252,2],[65,7],[32,11],[252,2],[65,195,1],[32,9],[32,10],[65,8],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],...number(allocPage(_,'bytestring: __Porffor_object_underlying/key2','i8'),124),[33,12],[32,9],[252,2],[32,10],[32,12],[252,2],[65,195,1],[32,0],[32,1],[65,10],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],[11],[11],...glbl(35,'underlyingVals',124),[65,208,0],[32,7],[65,7],[16,builtin('__Porffor_array_fastPush')],[33,6],[26],...glbl(35,'underlyingKeys',124),[65,208,0],[32,0],[32,1],[16,builtin('__Porffor_array_fastPush')],[33,6],[68,1],[161],[33,3],[11],...glbl(35,'underlyingVals',124),[33,13],[32,3],[34,14],[252,3],[65,9],[108],[32,13],[252,3],[106],[34,15],[43,0,4],[32,15],[45,0,12],[34,6],[15],[11],[32,0],[32,1],[15]],
6
+ wasm:(_,{allocPage,glbl,builtin})=>[[32,1],[184],[34,2],[68,7],[97],[4,64],[32,0],[32,1],[15],[11],[32,2],[68,5],[100],[32,2],[68,128],[98],[113],[4,64],...glbl(35,'underlyingKeys',124),[33,4],[65,208,0],[33,5],[32,4],[32,5],[32,0],[32,1],[68,0],[65,128,1],[16,builtin('__Array_prototype_indexOf')],[33,6],[34,3],[68,-1],[97],[4,64],[16,builtin('__Porffor_allocate')],[184],[33,7],[32,2],[68,6],[97],[4,64],[32,0],[252,2],[16,builtin('__Porffor_funcLut_flags')],[183],[34,8],[68,2],[16,builtin('f64_&')],[252,3],[4,64],[16,builtin('__Porffor_allocate')],[184],[33,9],[65,7],[33,10],...number(allocPage(_,'bytestring: __Porffor_object_underlying/key1','i8'),124),[33,11],[32,7],[252,2],[65,7],[32,11],[252,2],[65,195,1],[32,9],[32,10],[65,8],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],...number(allocPage(_,'bytestring: __Porffor_object_underlying/key2','i8'),124),[33,12],[32,9],[252,2],[32,10],[32,12],[252,2],[65,195,1],[32,0],[32,1],[65,10],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],[11],[11],[32,2],[68,80],[97],[4,64],[32,0],[34,13],[252,3],[40,1,0],[184],[33,14],...number(allocPage(_,'bytestring: __Porffor_object_underlying/key3','i8'),124),[33,15],[32,7],[252,2],[65,7],[32,15],[252,2],[65,195,1],[32,14],[65,1],[65,8],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],[68,0],[33,16],[3,64],[32,16],[32,14],[99],[4,64],[32,7],[252,2],[65,7],[32,16],[65,1],[68,0],[65,128,1],[16,builtin('__Number_prototype_toString')],[33,6],[252,2],[32,6],[32,13],[33,17],[32,16],[34,18],[252,3],[65,9],[108],[32,17],[252,3],[106],[34,19],[43,0,4],[32,19],[45,0,12],[34,6],[65,14],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],[32,16],[68,1],[160],[33,16],[12,1],[11],[11],[11],[32,2],[68,67],[97],[4,64],[32,0],[34,20],[252,3],[40,1,0],[184],[33,14],[32,15],[252,3],[34,21],[65,6],[54,1,0],[32,21],[65,236,0],[58,0,4],[32,21],[65,229,0],[58,0,5],[32,21],[65,238,0],[58,0,6],[32,21],[65,231,0],[58,0,7],[32,21],[65,244,0],[58,0,8],[32,21],[65,232,0],[58,0,9],[32,21],[184],[33,15],[32,7],[252,2],[65,7],[32,11],[252,2],[65,195,1],[32,14],[65,1],[65,0],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],[68,0],[33,16],[3,64],[32,16],[32,14],[99],[4,64],[32,7],[252,2],[65,7],[32,16],[65,1],[68,0],[65,128,1],[16,builtin('__Number_prototype_toString')],[33,6],[252,2],[32,6],[32,20],[33,17],[32,16],[33,18],[16,builtin('__Porffor_allocate')],[34,22],[65,1],[54,0,0],[32,22],[32,18],[252,3],[65,2],[108],[32,17],[252,3],[106],[47,0,4],[59,0,4],[32,22],[184],[65,195,0],[33,6],[65,195,0],[65,4],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],[32,16],[68,1],[160],[33,16],[12,1],[11],[11],[32,7],[252,2],[65,7],[16,builtin('__Porffor_object_preventExtensions')],[33,6],[183],[26],[11],[32,2],[68,195],[97],[4,64],[32,0],[34,20],[252,3],[40,1,0],[184],[33,14],[32,15],[252,3],[34,21],[65,6],[54,1,0],[32,21],[65,236,0],[58,0,4],[32,21],[65,229,0],[58,0,5],[32,21],[65,238,0],[58,0,6],[32,21],[65,231,0],[58,0,7],[32,21],[65,244,0],[58,0,8],[32,21],[65,232,0],[58,0,9],[32,21],[184],[33,15],[32,7],[252,2],[65,7],[32,11],[252,2],[65,195,1],[32,14],[65,1],[65,0],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],[68,0],[33,16],[3,64],[32,16],[32,14],[99],[4,64],[32,7],[252,2],[65,7],[32,16],[65,1],[68,0],[65,128,1],[16,builtin('__Number_prototype_toString')],[33,6],[252,2],[32,6],[32,20],[33,17],[32,16],[33,18],[16,builtin('__Porffor_allocate')],[34,22],[65,1],[54,0,0],[32,22],[32,18],[252,3],[32,17],[252,3],[106],[45,0,4],[58,0,4],[32,22],[184],[65,195,1],[33,6],[65,195,1],[65,4],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,6],[183],[26],[32,16],[68,1],[160],[33,16],[12,1],[11],[11],[32,7],[252,2],[65,7],[16,builtin('__Porffor_object_preventExtensions')],[33,6],[183],[26],[11],...glbl(35,'underlyingVals',124),[65,208,0],[32,7],[65,7],[16,builtin('__Porffor_array_fastPush')],[33,6],[26],...glbl(35,'underlyingKeys',124),[65,208,0],[32,0],[32,1],[16,builtin('__Porffor_array_fastPush')],[33,6],[68,1],[161],[33,3],[11],...glbl(35,'underlyingVals',124),[33,17],[32,3],[34,18],[252,3],[65,9],[108],[32,17],[252,3],[106],[34,19],[43,0,4],[32,19],[45,0,12],[34,6],[15],[11],[32,0],[32,1],[15]],
7
7
  params:[124,127],typedParams:1,returns:[124,127],typedReturns:1,
8
- locals:[124,124,124,127,127,124,124,124,127,124,124,124,124,127],localNames:["obj","obj#type","t","idx","#proto_target","#proto_target#type","#last_type","underlying","flags","proto","proto#type","key1","key2","#member_obj","#member_prop","#loadArray_offset"],
9
- usedTypes:[80,7,195],
10
- globalInits:{underlyingKeys:(_,{allocPage,glbl,loc})=>[...number(allocPage(_,'array: __internal_object.ts/underlyingKeys','f64'),124),...glbl(36,'underlyingKeys',124),...glbl(35,'underlyingKeys',124),[252,3],[33,loc('#makearray_pointer_tmp',127)],[32,loc('#makearray_pointer_tmp',127)],[65,0],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[68,0],[252,3],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[26]],underlyingVals:(_,{allocPage,glbl,loc})=>[...number(allocPage(_,'array: __internal_object.ts/underlyingVals','f64'),124),...glbl(36,'underlyingVals',124),...glbl(35,'underlyingVals',124),[252,3],[33,loc('#makearray_pointer_tmp',127)],[32,loc('#makearray_pointer_tmp',127)],[65,0],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[68,0],[252,3],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[26]]},data:{"bytestring: __Porffor_object_underlying/key1":[9,0,0,0,112,114,111,116,111,116,121,112,101],"bytestring: __Porffor_object_underlying/key2":[11,0,0,0,99,111,110,115,116,114,117,99,116,111,114]},
8
+ locals:[124,124,124,127,127,124,124,124,127,124,124,124,124,124,124,124,124,127,124,127,127],localNames:["obj","obj#type","t","idx","#proto_target","#proto_target#type","#last_type","underlying","flags","proto","proto#type","key1","key2","arr","len","key3","i","#member_obj","#member_prop","#loadArray_offset","str","#makearray_pointer_tmp","#member_allocd"],
9
+ usedTypes:[80,7,195,67],
10
+ globalInits:{underlyingKeys:(_,{allocPage,glbl,loc})=>[...number(allocPage(_,'array: __internal_object.ts/underlyingKeys','f64'),124),...glbl(36,'underlyingKeys',124),...glbl(35,'underlyingKeys',124),[252,3],[33,loc('#makearray_pointer_tmp',127)],[32,loc('#makearray_pointer_tmp',127)],[65,0],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[68,0],[252,3],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[26]],underlyingVals:(_,{allocPage,glbl,loc})=>[...number(allocPage(_,'array: __internal_object.ts/underlyingVals','f64'),124),...glbl(36,'underlyingVals',124),...glbl(35,'underlyingVals',124),[252,3],[33,loc('#makearray_pointer_tmp',127)],[32,loc('#makearray_pointer_tmp',127)],[65,0],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[68,0],[252,3],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[26]]},data:{"bytestring: __Porffor_object_underlying/key1":[9,0,0,0,112,114,111,116,111,116,121,112,101],"bytestring: __Porffor_object_underlying/key2":[11,0,0,0,99,111,110,115,116,114,117,99,116,111,114],"bytestring: __Porffor_object_underlying/key3":[6,0,0,0,108,101,110,103,116,104]},
11
11
  };
12
12
  this.__Porffor_strcmp = {
13
13
  wasm:()=>[[32,0],[32,2],[70],[4,64],[65,1],[65,2],[15],[11],[32,0],[40,0,0],[33,4],[32,2],[40,0,0],[33,5],[32,4],[32,5],[71],[4,64],[65,0],[65,2],[15],[11],[32,1],[65,195,1],[70],[4,64],[32,3],[65,195,1],[70],[4,64],[32,0],[65,28],[107],[33,6],[32,2],[65,28],[107],[33,7],[32,0],[65,4],[107],[33,8],[32,2],[65,4],[107],[33,9],[32,4],[65,32],[78],[4,64],[3,64],[32,6],[32,4],[106],[253,0,0,0],[32,7],[32,4],[106],[253,0,0,0],[253,81],[32,6],[32,4],[106],[253,0,0,16],[32,7],[32,4],[106],[253,0,0,16],[253,81],[253,80],[253,83],[4,64],[65,0],[65,2],[15],[11],[32,4],[65,32],[107],[34,4],[65,32],[78],[13,0],[11],[11],[32,4],[65,8],[78],[4,64],[3,64],[32,8],[32,4],[106],[41,0,0],[32,9],[32,4],[106],[41,0,0],[82],[4,64],[65,0],[65,2],[15],[11],[32,4],[65,8],[107],[34,4],[65,8],[78],[13,0],[11],[11],[32,4],[65,2],[78],[4,64],[3,64],[32,0],[32,4],[106],[47,0,2],[32,2],[32,4],[106],[47,0,2],[71],[4,64],[65,0],[65,2],[15],[11],[32,4],[65,2],[107],[34,4],[65,2],[78],[13,0],[11],[11],[32,4],[65,1],[70],[4,64],[32,0],[45,0,4],[32,2],[45,0,4],[71],[4,64],[65,0],[65,2],[15],[11],[11],[65,1],[65,2],[15],[5],[65,0],[33,10],[3,64],[32,10],[32,4],[72],[4,64],[32,0],[32,10],[106],[45,0,4],[32,2],[32,10],[65,2],[108],[106],[47,0,4],[71],[4,64],[65,0],[65,2],[15],[11],[32,10],[65,1],[106],[33,10],[12,1],[11],[11],[65,1],[65,2],[15],[11],[5],[32,3],[65,195,1],[70],[4,64],[65,0],[33,10],[3,64],[32,10],[32,4],[72],[4,64],[32,0],[32,10],[65,2],[108],[106],[47,0,4],[32,2],[32,10],[106],[45,0,4],[71],[4,64],[65,0],[65,2],[15],[11],[32,10],[65,1],[106],[33,10],[12,1],[11],[11],[65,1],[65,2],[15],[5],[32,0],[65,4],[107],[33,11],[32,2],[65,4],[107],[33,12],[3,64],[32,11],[32,4],[65,2],[108],[106],[41,0,0],[32,12],[32,4],[65,2],[108],[106],[41,0,0],[82],[4,64],[65,0],[65,2],[15],[11],[32,4],[65,4],[107],[34,4],[65,4],[78],[13,0],[11],[65,0],[33,10],[3,64],[32,10],[32,4],[72],[4,64],[32,0],[32,10],[65,2],[108],[106],[47,0,4],[32,2],[32,10],[65,2],[108],[106],[47,0,4],[71],[4,64],[65,0],[65,2],[15],[11],[32,10],[65,1],[106],[33,10],[12,1],[11],[11],[65,1],[65,2],[15],[11],[11],[65,0],[65,128,1],[15]],
@@ -1698,16 +1698,16 @@ usedTypes:[7],
1698
1698
  constr:1,
1699
1699
  };
1700
1700
  this.__Object_keys = {
1701
- wasm:(_,{t,builtin,internalThrow})=>[[32,0],[33,2],[32,1],[33,3],[2,127],...t([0,128],()=>[[32,3],[65,0],[70],[32,3],[65,128,1],[70],[114],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,3],[65,7],[70],[4,64],[32,2],[68,0],[97],[12,1],[11]]),[65,0],[11],[4,64],...internalThrow(_,'TypeError',`Argument is nullish, expected object`),[11],[16,builtin('__Porffor_allocate')],[183],[33,4],[32,1],[184],[34,5],[68,7],[97],[4,64],[32,0],[68,5],[160],[34,6],[32,0],[252,2],[40,0,0],[183],[68,14],[162],[160],[33,7],[68,0],[33,8],[3,64],[32,6],[32,7],[99],[4,64],[2,64],[32,6],[252,2],[65,1],[16,builtin('__Porffor_object_isEnumerable')],[33,9],[183],[33,2],[32,9],[33,3],[2,124],...t([67,195],()=>[[32,3],[65,195,0],[70],[32,3],[65,195,1],[70],[114],[4,64],[32,2],[252,3],[40,1,0],[69],[184],[12,1],[11]]),[32,2],[68,0],[97],[184],[11],[252,3],[4,64],[12,1],[11],[32,6],[252,3],[40,0,0],[34,12],[65,30],[118],[34,13],[4,127],[65,5],[65,195,0],[32,13],[65,3],[70],[27],[33,11],[32,12],[65,255,255,255,255,3],[113],[5],[65,195,1],[33,11],[32,12],[11],[184],[33,10],[32,4],[33,16],[32,8],[32,8],[68,1],[160],[33,8],[33,17],[32,16],[252,3],[32,17],[252,3],[65,9],[108],[106],[34,15],[32,10],[34,14],[57,0,4],[32,15],[32,11],[58,0,12],[11],[32,6],[68,14],[160],[34,6],[12,1],[11],[11],[32,4],[252,3],[34,19],[32,8],[34,18],[252,3],[54,1,0],[5],[32,5],[68,80],[97],[32,5],[68,195],[97],[114],[32,5],[68,67],[97],[114],[4,64],[32,0],[252,3],[40,1,0],[184],[33,20],[32,4],[252,3],[34,19],[32,20],[34,18],[252,3],[54,1,0],[68,0],[33,8],[3,64],[32,8],[32,20],[99],[4,64],[32,4],[33,16],[32,8],[33,17],[32,16],[252,3],[32,17],[252,3],[65,9],[108],[106],[34,15],[32,8],[65,1],[68,0],[65,128,1],[16,builtin('__Number_prototype_toString')],[33,9],[34,14],[57,0,4],[32,15],[32,9],[58,0,12],[32,8],[68,1],[160],[33,8],[12,1],[11],[11],[11],[32,0],[32,1],[16,builtin('__Porffor_object_underlying')],[34,9],[33,1],[33,0],[32,1],[184],[68,7],[97],[4,64],[32,0],[32,1],[16,builtin('__Object_keys')],[33,9],[34,21],[252,3],[33,22],[65,208,0],[33,25],[65,0],[33,24],[32,25],[65,208,0],[70],[32,25],[65,19],[70],[114],[32,25],[65,195,0],[70],[114],[32,25],[65,195,1],[70],[114],[32,25],[65,216,0],[78],[32,25],[65,224,0],[76],[113],[114],[69],[4,64],...internalThrow(_,'TypeError',`Tried for..of on non-iterable type`),[11],[32,22],[40,1,0],[34,23],[4,64],[32,25],[33,3],[2,64],...t([19],()=>[[32,3],[65,19],[70],[4,64],[3,64],[32,22],[43,0,4],[33,26],[32,22],[45,0,12],[33,27],[32,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,22],[65,9],[106],[33,22],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([67],()=>[[32,3],[65,195,0],[70],[4,64],[65,195,0],[33,27],[16,builtin('__Porffor_allocate')],[34,30],[65,1],[54,0,0],[3,64],[32,30],[32,22],[47,0,4],[59,0,4],[32,30],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,22],[65,2],[106],[33,22],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([80],()=>[[32,3],[65,208,0],[70],[4,64],[3,64],[32,22],[43,0,4],[33,26],[32,22],[45,0,12],[33,27],[32,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,22],[65,9],[106],[33,22],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([88],()=>[[32,3],[65,216,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[106],[45,0,4],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([89],()=>[[32,3],[65,217,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[106],[44,0,4],[183],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([90],()=>[[32,3],[65,218,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[106],[45,0,4],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([91],()=>[[32,3],[65,219,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,2],[108],[106],[47,0,4],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([92],()=>[[32,3],[65,220,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,2],[108],[106],[46,0,4],[183],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([93],()=>[[32,3],[65,221,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,4],[108],[106],[40,0,4],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([94],()=>[[32,3],[65,222,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,4],[108],[106],[40,0,4],[183],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([95],()=>[[32,3],[65,223,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,4],[108],[106],[42,0,4],[187],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([96],()=>[[32,3],[65,224,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,8],[108],[106],[43,0,4],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([195],()=>[[32,3],[65,195,1],[70],[4,64],[65,195,1],[33,27],[16,builtin('__Porffor_allocate')],[34,30],[65,1],[54,0,0],[3,64],[32,30],[32,22],[32,24],[106],[45,0,4],[58,0,4],[32,30],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...internalThrow(_,'TypeError',`Tried for..of on non-iterable type`),[11],[11],[11],[11],[32,4],[65,208,0],[15]],
1701
+ wasm:(_,{t,builtin,internalThrow})=>[[32,0],[33,2],[32,1],[33,3],[2,127],...t([0,128],()=>[[32,3],[65,0],[70],[32,3],[65,128,1],[70],[114],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,3],[65,7],[70],[4,64],[32,2],[68,0],[97],[12,1],[11]]),[65,0],[11],[4,64],...internalThrow(_,'TypeError',`Argument is nullish, expected object`),[11],[16,builtin('__Porffor_allocate')],[183],[33,4],[32,0],[32,1],[16,builtin('__Porffor_object_underlying')],[34,5],[33,1],[33,0],[32,1],[184],[34,6],[68,7],[97],[4,64],[32,0],[68,5],[160],[34,7],[32,0],[252,2],[40,0,0],[183],[68,14],[162],[160],[33,8],[68,0],[33,9],[3,64],[32,7],[32,8],[99],[4,64],[2,64],[32,7],[252,2],[65,1],[16,builtin('__Porffor_object_isEnumerable')],[33,5],[183],[33,2],[32,5],[33,3],[2,124],...t([67,195],()=>[[32,3],[65,195,0],[70],[32,3],[65,195,1],[70],[114],[4,64],[32,2],[252,3],[40,1,0],[69],[184],[12,1],[11]]),[32,2],[68,0],[97],[184],[11],[252,3],[4,64],[12,1],[11],[32,7],[252,3],[40,0,0],[34,12],[65,30],[118],[34,13],[4,127],[65,5],[65,195,0],[32,13],[65,3],[70],[27],[33,11],[32,12],[65,255,255,255,255,3],[113],[5],[65,195,1],[33,11],[32,12],[11],[184],[33,10],[32,4],[33,16],[32,9],[32,9],[68,1],[160],[33,9],[33,17],[32,16],[252,3],[32,17],[252,3],[65,9],[108],[106],[34,15],[32,10],[34,14],[57,0,4],[32,15],[32,11],[58,0,12],[11],[32,7],[68,14],[160],[34,7],[12,1],[11],[11],[32,4],[252,3],[34,19],[32,9],[34,18],[252,3],[54,1,0],[11],[32,4],[65,208,0],[15]],
1702
1702
  params:[124,127],typedParams:1,returns:[124,127],typedReturns:1,
1703
- locals:[124,127,124,124,124,124,124,127,124,127,127,127,124,127,124,124,124,127,124,124,127,127,127,127,124,127,124,127,127],localNames:["obj","obj#type","#logicinner_tmp","#typeswitch_tmp1","out","t","ptr","endPtr","i","#last_type","key","key#type","raw","msb","#member_setter_val_tmp","#member_setter_ptr_tmp","#member_obj","#member_prop_assign","__length_setter_tmp","__member_setter_ptr_tmp","len","objKeys","#forof_base_pointer0","#forof_length0","#forof_counter0","#forof_itertype0","#forof_tmp0","#forof_tmp0#type","x","x#type","#forof_allocd"],
1704
- usedTypes:[80,67,195],
1703
+ locals:[124,127,124,127,124,124,124,124,124,127,127,127,124,127,124,124,124,127],localNames:["obj","obj#type","#logicinner_tmp","#typeswitch_tmp1","out","#last_type","t","ptr","endPtr","i","key","key#type","raw","msb","#member_setter_val_tmp","#member_setter_ptr_tmp","#member_obj","#member_prop_assign","__length_setter_tmp","__member_setter_ptr_tmp"],
1704
+ usedTypes:[80],
1705
1705
  };
1706
1706
  this.__Object_values = {
1707
- wasm:(_,{t,builtin,internalThrow})=>[[32,0],[33,2],[32,1],[33,3],[2,127],...t([0,128],()=>[[32,3],[65,0],[70],[32,3],[65,128,1],[70],[114],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,3],[65,7],[70],[4,64],[32,2],[68,0],[97],[12,1],[11]]),[65,0],[11],[4,64],...internalThrow(_,'TypeError',`Argument is nullish, expected object`),[11],[16,builtin('__Porffor_allocate')],[183],[33,4],[32,1],[184],[34,5],[68,7],[97],[4,64],[32,0],[68,5],[160],[34,6],[32,0],[252,2],[40,0,0],[183],[68,14],[162],[160],[33,7],[68,0],[33,8],[3,64],[32,6],[32,7],[99],[4,64],[2,64],[32,6],[252,2],[65,1],[16,builtin('__Porffor_object_isEnumerable')],[33,9],[183],[33,2],[32,9],[33,3],[2,124],...t([67,195],()=>[[32,3],[65,195,0],[70],[32,3],[65,195,1],[70],[114],[4,64],[32,2],[252,3],[40,1,0],[69],[184],[12,1],[11]]),[32,2],[68,0],[97],[184],[11],[252,3],[4,64],[12,1],[11],[32,6],[252,3],[34,12],[43,0,4],[33,10],[32,12],[45,0,13],[33,11],[32,4],[33,15],[32,8],[32,8],[68,1],[160],[33,8],[33,16],[32,15],[252,3],[32,16],[252,3],[65,9],[108],[106],[34,14],[32,10],[34,13],[57,0,4],[32,14],[32,11],[58,0,12],[11],[32,6],[68,14],[160],[34,6],[12,1],[11],[11],[32,4],[252,3],[34,18],[32,8],[34,17],[252,3],[54,1,0],[5],[32,5],[68,80],[97],[32,5],[68,195],[97],[114],[32,5],[68,67],[97],[114],[4,64],[32,0],[252,3],[40,1,0],[184],[33,19],[32,4],[252,3],[34,18],[32,19],[34,17],[252,3],[54,1,0],[68,0],[33,8],[3,64],[32,8],[32,19],[99],[4,64],[2,64],[32,4],[33,15],[32,8],[33,16],[32,15],[252,3],[32,16],[252,3],[65,9],[108],[106],[34,14],[32,0],[33,15],[32,8],[33,20],[32,1],[33,3],[2,124],...t([67],()=>[[32,3],[65,195,0],[70],[4,64],[16,builtin('__Porffor_allocate')],[34,21],[65,1],[54,0,0],[32,21],[32,20],[252,3],[65,2],[108],[32,15],[252,3],[106],[47,0,4],[59,0,4],[32,21],[184],[65,195,0],[33,9],[12,1],[11]]),...t([80],()=>[[32,3],[65,208,0],[70],[4,64],[32,20],[252,3],[65,9],[108],[32,15],[252,3],[106],[34,22],[43,0,4],[32,22],[45,0,12],[33,9],[12,1],[11]]),...t([88],()=>[[32,3],[65,216,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[106],[45,0,4],[184],[65,1],[33,9],[12,1],[11]]),...t([89],()=>[[32,3],[65,217,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[106],[44,0,4],[183],[65,1],[33,9],[12,1],[11]]),...t([90],()=>[[32,3],[65,218,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[106],[45,0,4],[184],[65,1],[33,9],[12,1],[11]]),...t([91],()=>[[32,3],[65,219,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,1],[33,9],[12,1],[11]]),...t([92],()=>[[32,3],[65,220,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,1],[33,9],[12,1],[11]]),...t([93],()=>[[32,3],[65,221,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,1],[33,9],[12,1],[11]]),...t([94],()=>[[32,3],[65,222,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,1],[33,9],[12,1],[11]]),...t([95],()=>[[32,3],[65,223,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,1],[33,9],[12,1],[11]]),...t([96],()=>[[32,3],[65,224,0],[70],[4,64],[32,15],[252,3],[40,0,4],[32,20],[252,3],[65,8],[108],[106],[43,0,4],[65,1],[33,9],[12,1],[11]]),...t([128],()=>[[32,3],[65,128,1],[70],[4,64],...internalThrow(_,'TypeError',`Cannot read property of undefined`),[68,0],[12,1],[11]]),...t([195],()=>[[32,3],[65,195,1],[70],[4,64],[16,builtin('__Porffor_allocate')],[34,21],[65,1],[54,0,0],[32,21],[32,20],[252,3],[32,15],[252,3],[106],[45,0,4],[58,0,4],[32,21],[184],[65,195,1],[33,9],[12,1],[11]]),[32,15],[252,3],[32,1],[32,20],[65,1],[16,builtin('__ecma262_ToPropertyKey')],[33,23],[252,3],[32,23],[16,builtin('__Porffor_object_get')],[33,9],[11],[34,13],[57,0,4],[32,14],[32,9],[58,0,12],[11],[32,8],[68,1],[160],[33,8],[12,1],[11],[11],[11],[32,0],[32,1],[16,builtin('__Porffor_object_underlying')],[34,9],[33,1],[33,0],[32,1],[184],[68,7],[97],[4,64],[32,0],[32,1],[16,builtin('__Object_values')],[33,9],[34,24],[252,3],[33,25],[65,208,0],[33,28],[65,0],[33,27],[32,28],[65,208,0],[70],[32,28],[65,19],[70],[114],[32,28],[65,195,0],[70],[114],[32,28],[65,195,1],[70],[114],[32,28],[65,216,0],[78],[32,28],[65,224,0],[76],[113],[114],[69],[4,64],...internalThrow(_,'TypeError',`Tried for..of on non-iterable type`),[11],[32,25],[40,1,0],[34,26],[4,64],[32,28],[33,3],[2,64],...t([19],()=>[[32,3],[65,19],[70],[4,64],[3,64],[32,25],[43,0,4],[33,29],[32,25],[45,0,12],[33,30],[32,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,25],[65,9],[106],[33,25],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([67],()=>[[32,3],[65,195,0],[70],[4,64],[65,195,0],[33,30],[16,builtin('__Porffor_allocate')],[34,33],[65,1],[54,0,0],[3,64],[32,33],[32,25],[47,0,4],[59,0,4],[32,33],[184],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,25],[65,2],[106],[33,25],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([80],()=>[[32,3],[65,208,0],[70],[4,64],[3,64],[32,25],[43,0,4],[33,29],[32,25],[45,0,12],[33,30],[32,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,25],[65,9],[106],[33,25],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([88],()=>[[32,3],[65,216,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[106],[45,0,4],[184],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([89],()=>[[32,3],[65,217,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[106],[44,0,4],[183],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([90],()=>[[32,3],[65,218,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[106],[45,0,4],[184],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([91],()=>[[32,3],[65,219,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[65,2],[108],[106],[47,0,4],[184],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([92],()=>[[32,3],[65,220,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[65,2],[108],[106],[46,0,4],[183],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([93],()=>[[32,3],[65,221,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[65,4],[108],[106],[40,0,4],[184],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([94],()=>[[32,3],[65,222,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[65,4],[108],[106],[40,0,4],[183],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([95],()=>[[32,3],[65,223,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[65,4],[108],[106],[42,0,4],[187],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([96],()=>[[32,3],[65,224,0],[70],[4,64],[65,1],[33,30],[3,64],[32,25],[40,0,4],[32,27],[65,8],[108],[106],[43,0,4],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...t([195],()=>[[32,3],[65,195,1],[70],[4,64],[65,195,1],[33,30],[16,builtin('__Porffor_allocate')],[34,33],[65,1],[54,0,0],[3,64],[32,33],[32,25],[32,27],[106],[45,0,4],[58,0,4],[32,33],[184],[34,29],[33,31],[32,30],[33,32],[2,64],[32,4],[65,208,0],[32,31],[32,32],[16,builtin('__Porffor_array_fastPush')],[33,9],[26],[32,27],[65,1],[106],[34,27],[32,26],[71],[13,1],[11],[11],[12,1],[11]]),...internalThrow(_,'TypeError',`Tried for..of on non-iterable type`),[11],[11],[11],[11],[32,4],[65,208,0],[15]],
1707
+ wasm:(_,{t,builtin,internalThrow})=>[[32,0],[33,2],[32,1],[33,3],[2,127],...t([0,128],()=>[[32,3],[65,0],[70],[32,3],[65,128,1],[70],[114],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,3],[65,7],[70],[4,64],[32,2],[68,0],[97],[12,1],[11]]),[65,0],[11],[4,64],...internalThrow(_,'TypeError',`Argument is nullish, expected object`),[11],[16,builtin('__Porffor_allocate')],[183],[33,4],[32,0],[32,1],[16,builtin('__Porffor_object_underlying')],[34,5],[33,1],[33,0],[32,1],[184],[34,6],[68,7],[97],[4,64],[32,0],[68,5],[160],[34,7],[32,0],[252,2],[40,0,0],[183],[68,14],[162],[160],[33,8],[68,0],[33,9],[3,64],[32,7],[32,8],[99],[4,64],[2,64],[32,7],[252,2],[65,1],[16,builtin('__Porffor_object_isEnumerable')],[33,5],[183],[33,2],[32,5],[33,3],[2,124],...t([67,195],()=>[[32,3],[65,195,0],[70],[32,3],[65,195,1],[70],[114],[4,64],[32,2],[252,3],[40,1,0],[69],[184],[12,1],[11]]),[32,2],[68,0],[97],[184],[11],[252,3],[4,64],[12,1],[11],[32,7],[252,3],[34,12],[43,0,4],[33,10],[32,12],[45,0,13],[33,11],[32,4],[33,15],[32,9],[32,9],[68,1],[160],[33,9],[33,16],[32,15],[252,3],[32,16],[252,3],[65,9],[108],[106],[34,14],[32,10],[34,13],[57,0,4],[32,14],[32,11],[58,0,12],[11],[32,7],[68,14],[160],[34,7],[12,1],[11],[11],[32,4],[252,3],[34,18],[32,9],[34,17],[252,3],[54,1,0],[11],[32,4],[65,208,0],[15]],
1708
1708
  params:[124,127],typedParams:1,returns:[124,127],typedReturns:1,
1709
- locals:[124,127,124,124,124,124,124,127,124,127,127,124,127,124,124,124,127,124,124,127,127,127,124,127,127,127,127,124,127,124,127,127],localNames:["obj","obj#type","#logicinner_tmp","#typeswitch_tmp1","out","t","ptr","endPtr","i","#last_type","val","val#type","ptr32","#member_setter_val_tmp","#member_setter_ptr_tmp","#member_obj","#member_prop_assign","__length_setter_tmp","__member_setter_ptr_tmp","len","#member_prop","#member_allocd","#loadArray_offset","#swap","objVals","#forof_base_pointer0","#forof_length0","#forof_counter0","#forof_itertype0","#forof_tmp0","#forof_tmp0#type","x","x#type","#forof_allocd"],
1710
- usedTypes:[80,67,195],
1709
+ locals:[124,127,124,127,124,124,124,124,124,127,127,124,127,124,124,124,127],localNames:["obj","obj#type","#logicinner_tmp","#typeswitch_tmp1","out","#last_type","t","ptr","endPtr","i","val","val#type","ptr32","#member_setter_val_tmp","#member_setter_ptr_tmp","#member_obj","#member_prop_assign","__length_setter_tmp","__member_setter_ptr_tmp"],
1710
+ usedTypes:[80],
1711
1711
  };
1712
1712
  this.__Object_entries = {
1713
1713
  wasm:(_,{builtin})=>[[16,builtin('__Porffor_allocate')],[183],[33,2],[32,0],[32,1],[16,builtin('__Object_keys')],[33,4],[33,3],[32,0],[32,1],[16,builtin('__Object_values')],[33,4],[33,5],[32,3],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[34,8],[32,6],[34,7],[252,3],[54,1,0],[68,0],[33,9],[3,64],[32,9],[32,6],[99],[4,64],[16,builtin('__Porffor_allocate')],[183],[34,10],[252,3],[34,8],[68,2],[34,7],[252,3],[54,1,0],[32,10],[33,13],[68,0],[33,14],[32,13],[252,3],[32,14],[252,3],[65,9],[108],[106],[34,12],[32,3],[33,13],[32,9],[34,15],[252,3],[65,9],[108],[32,13],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,4],[34,11],[57,0,4],[32,12],[32,4],[58,0,12],[32,10],[33,13],[68,1],[33,14],[32,13],[252,3],[32,14],[252,3],[65,9],[108],[106],[34,12],[32,5],[33,13],[32,9],[34,15],[252,3],[65,9],[108],[32,13],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,4],[34,11],[57,0,4],[32,12],[32,4],[58,0,12],[32,2],[33,13],[32,9],[33,14],[32,13],[252,3],[32,14],[252,3],[65,9],[108],[106],[34,12],[32,10],[34,11],[57,0,4],[32,12],[65,208,0],[58,0,12],[32,9],[68,1],[160],[33,9],[12,1],[11],[11],[32,2],[65,208,0],[15]],
@@ -1812,10 +1812,10 @@ locals:[124,127,124,127,127,127,127,124,127,124,127,124,127,124,124,127,127,127]
1812
1812
  usedTypes:[7,80,67,195],
1813
1813
  };
1814
1814
  this.__Object_getOwnPropertyNames = {
1815
- wasm:(_,{t,builtin,internalThrow})=>[[32,0],[33,2],[32,1],[33,3],[2,127],...t([0,128],()=>[[32,3],[65,0],[70],[32,3],[65,128,1],[70],[114],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,3],[65,7],[70],[4,64],[32,2],[68,0],[97],[12,1],[11]]),[65,0],[11],[4,64],...internalThrow(_,'TypeError',`Argument is nullish, expected object`),[11],[16,builtin('__Porffor_allocate')],[183],[33,4],[32,1],[184],[34,5],[68,7],[97],[4,64],[32,0],[68,5],[160],[34,6],[32,0],[252,2],[40,0,0],[183],[68,14],[162],[160],[33,7],[68,0],[33,8],[3,64],[32,6],[32,7],[99],[4,64],[2,64],[32,6],[252,3],[40,0,0],[34,11],[65,30],[118],[34,12],[4,127],[65,5],[65,195,0],[32,12],[65,3],[70],[27],[33,10],[32,11],[65,255,255,255,255,3],[113],[5],[65,195,1],[33,10],[32,11],[11],[184],[33,9],[32,10],[184],[68,5],[97],[4,64],[12,1],[11],[32,4],[33,15],[32,8],[32,8],[68,1],[160],[33,8],[33,16],[32,15],[252,3],[32,16],[252,3],[65,9],[108],[106],[34,14],[32,9],[34,13],[57,0,4],[32,14],[32,10],[58,0,12],[11],[32,6],[68,14],[160],[34,6],[12,1],[11],[11],[32,4],[252,3],[34,18],[32,8],[34,17],[252,3],[54,1,0],[5],[32,5],[68,80],[97],[32,5],[68,195],[97],[114],[32,5],[68,67],[97],[114],[4,64],[32,0],[252,3],[40,1,0],[184],[33,19],[32,4],[252,3],[34,18],[32,19],[34,17],[252,3],[54,1,0],[68,0],[33,8],[3,64],[32,8],[32,19],[99],[4,64],[32,4],[33,15],[32,8],[33,16],[32,15],[252,3],[32,16],[252,3],[65,9],[108],[106],[34,14],[32,8],[65,1],[68,0],[65,128,1],[16,builtin('__Number_prototype_toString')],[33,20],[34,13],[57,0,4],[32,14],[32,20],[58,0,12],[32,8],[68,1],[160],[33,8],[12,1],[11],[11],[11],[32,0],[32,1],[16,builtin('__Porffor_object_underlying')],[34,20],[33,1],[33,0],[32,1],[184],[68,7],[97],[4,64],[32,0],[32,1],[16,builtin('__Object_getOwnPropertyNames')],[33,20],[34,21],[252,3],[33,22],[65,208,0],[33,25],[65,0],[33,24],[32,25],[65,208,0],[70],[32,25],[65,19],[70],[114],[32,25],[65,195,0],[70],[114],[32,25],[65,195,1],[70],[114],[32,25],[65,216,0],[78],[32,25],[65,224,0],[76],[113],[114],[69],[4,64],...internalThrow(_,'TypeError',`Tried for..of on non-iterable type`),[11],[32,22],[40,1,0],[34,23],[4,64],[32,25],[33,3],[2,64],...t([19],()=>[[32,3],[65,19],[70],[4,64],[3,64],[32,22],[43,0,4],[33,26],[32,22],[45,0,12],[33,27],[32,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,22],[65,9],[106],[33,22],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([67],()=>[[32,3],[65,195,0],[70],[4,64],[65,195,0],[33,27],[16,builtin('__Porffor_allocate')],[34,30],[65,1],[54,0,0],[3,64],[32,30],[32,22],[47,0,4],[59,0,4],[32,30],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,22],[65,2],[106],[33,22],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([80],()=>[[32,3],[65,208,0],[70],[4,64],[3,64],[32,22],[43,0,4],[33,26],[32,22],[45,0,12],[33,27],[32,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,22],[65,9],[106],[33,22],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([88],()=>[[32,3],[65,216,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[106],[45,0,4],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([89],()=>[[32,3],[65,217,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[106],[44,0,4],[183],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([90],()=>[[32,3],[65,218,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[106],[45,0,4],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([91],()=>[[32,3],[65,219,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,2],[108],[106],[47,0,4],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([92],()=>[[32,3],[65,220,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,2],[108],[106],[46,0,4],[183],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([93],()=>[[32,3],[65,221,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,4],[108],[106],[40,0,4],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([94],()=>[[32,3],[65,222,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,4],[108],[106],[40,0,4],[183],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([95],()=>[[32,3],[65,223,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,4],[108],[106],[42,0,4],[187],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([96],()=>[[32,3],[65,224,0],[70],[4,64],[65,1],[33,27],[3,64],[32,22],[40,0,4],[32,24],[65,8],[108],[106],[43,0,4],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...t([195],()=>[[32,3],[65,195,1],[70],[4,64],[65,195,1],[33,27],[16,builtin('__Porffor_allocate')],[34,30],[65,1],[54,0,0],[3,64],[32,30],[32,22],[32,24],[106],[45,0,4],[58,0,4],[32,30],[184],[34,26],[33,28],[32,27],[33,29],[2,64],[32,4],[65,208,0],[32,28],[32,29],[16,builtin('__Porffor_array_fastPush')],[33,20],[26],[32,24],[65,1],[106],[34,24],[32,23],[71],[13,1],[11],[11],[12,1],[11]]),...internalThrow(_,'TypeError',`Tried for..of on non-iterable type`),[11],[11],[11],[11],[32,4],[65,208,0],[15]],
1815
+ wasm:(_,{t,builtin,internalThrow})=>[[32,0],[33,2],[32,1],[33,3],[2,127],...t([0,128],()=>[[32,3],[65,0],[70],[32,3],[65,128,1],[70],[114],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,3],[65,7],[70],[4,64],[32,2],[68,0],[97],[12,1],[11]]),[65,0],[11],[4,64],...internalThrow(_,'TypeError',`Argument is nullish, expected object`),[11],[16,builtin('__Porffor_allocate')],[183],[33,4],[32,0],[32,1],[16,builtin('__Porffor_object_underlying')],[34,5],[33,1],[33,0],[32,1],[184],[34,6],[68,7],[97],[4,64],[32,0],[68,5],[160],[34,7],[32,0],[252,2],[40,0,0],[183],[68,14],[162],[160],[33,8],[68,0],[33,9],[3,64],[32,7],[32,8],[99],[4,64],[2,64],[32,7],[252,3],[40,0,0],[34,12],[65,30],[118],[34,13],[4,127],[65,5],[65,195,0],[32,13],[65,3],[70],[27],[33,11],[32,12],[65,255,255,255,255,3],[113],[5],[65,195,1],[33,11],[32,12],[11],[184],[33,10],[32,11],[184],[68,5],[97],[4,64],[12,1],[11],[32,4],[33,16],[32,9],[32,9],[68,1],[160],[33,9],[33,17],[32,16],[252,3],[32,17],[252,3],[65,9],[108],[106],[34,15],[32,10],[34,14],[57,0,4],[32,15],[32,11],[58,0,12],[11],[32,7],[68,14],[160],[34,7],[12,1],[11],[11],[32,4],[252,3],[34,19],[32,9],[34,18],[252,3],[54,1,0],[11],[32,4],[65,208,0],[15]],
1816
1816
  params:[124,127],typedParams:1,returns:[124,127],typedReturns:1,
1817
- locals:[124,127,124,124,124,124,124,124,127,127,127,124,127,124,124,124,127,124,127,124,127,127,127,127,124,127,124,127,127],localNames:["obj","obj#type","#logicinner_tmp","#typeswitch_tmp1","out","t","ptr","endPtr","i","key","key#type","raw","msb","#member_setter_val_tmp","#member_setter_ptr_tmp","#member_obj","#member_prop_assign","__length_setter_tmp","__member_setter_ptr_tmp","len","#last_type","objKeys","#forof_base_pointer0","#forof_length0","#forof_counter0","#forof_itertype0","#forof_tmp0","#forof_tmp0#type","x","x#type","#forof_allocd"],
1818
- usedTypes:[80,67,195],
1817
+ locals:[124,127,124,127,124,124,124,124,124,127,127,127,124,127,124,124,124,127],localNames:["obj","obj#type","#logicinner_tmp","#typeswitch_tmp1","out","#last_type","t","ptr","endPtr","i","key","key#type","raw","msb","#member_setter_val_tmp","#member_setter_ptr_tmp","#member_obj","#member_prop_assign","__length_setter_tmp","__member_setter_ptr_tmp"],
1818
+ usedTypes:[80],
1819
1819
  };
1820
1820
  this.__Object_getOwnPropertySymbols = {
1821
1821
  wasm:(_,{t,builtin,internalThrow})=>[[32,0],[33,2],[32,1],[33,3],[2,127],...t([0,128],()=>[[32,3],[65,0],[70],[32,3],[65,128,1],[70],[114],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,3],[65,7],[70],[4,64],[32,2],[68,0],[97],[12,1],[11]]),[65,0],[11],[4,64],...internalThrow(_,'TypeError',`Argument is nullish, expected object`),[11],[16,builtin('__Porffor_allocate')],[183],[33,4],[32,0],[32,1],[16,builtin('__Porffor_object_underlying')],[34,5],[33,1],[33,0],[32,1],[184],[34,6],[68,7],[97],[4,64],[32,0],[68,5],[160],[34,7],[32,0],[252,2],[40,0,0],[183],[68,14],[162],[160],[33,8],[68,0],[33,9],[3,64],[32,7],[32,8],[99],[4,64],[2,64],[32,7],[252,3],[40,0,0],[34,12],[65,30],[118],[34,13],[4,127],[65,5],[65,195,0],[32,13],[65,3],[70],[27],[33,11],[32,12],[65,255,255,255,255,3],[113],[5],[65,195,1],[33,11],[32,12],[11],[184],[33,10],[32,11],[184],[68,5],[98],[4,64],[12,1],[11],[32,4],[33,16],[32,9],[32,9],[68,1],[160],[33,9],[33,17],[32,16],[252,3],[32,17],[252,3],[65,9],[108],[106],[34,15],[32,10],[34,14],[57,0,4],[32,15],[32,11],[58,0,12],[11],[32,7],[68,14],[160],[34,7],[12,1],[11],[11],[32,4],[252,3],[34,19],[32,9],[34,18],[252,3],[54,1,0],[11],[32,4],[65,208,0],[15]],
package/compiler/prefs.js CHANGED
@@ -1,4 +1,4 @@
1
- const onByDefault = [ 'treeshakeWasmImports', 'alwaysMemory', 'indirectCalls', 'optUnused', 'data', 'passiveData', 'rmUnusedTypes' ];
1
+ const onByDefault = [ 'treeshakeWasmImports', 'alwaysMemory', 'indirectCalls', 'optUnused', 'data', 'passiveData', 'rmUnusedTypes', 'optTypes' ];
2
2
 
3
3
  const nameToKey = x => x.replace(/[a-z]\-[a-z]/g, y => `${y[0]}${y[2].toUpperCase()}`);
4
4
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.37.20+228357b4c",
4
+ "version": "0.37.21+86dc1d6a1",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.37.20+228357b4c';
3
+ globalThis.version = '0.37.21+86dc1d6a1';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {