porffor 0.14.0-b5a80d8e3 → 0.14.0-c6edfd328

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.
@@ -146,78 +146,10 @@ export const __Array_prototype_valueOf = (_this: any[]) => {
146
146
  return _this;
147
147
  };
148
148
 
149
-
150
- export const __Array_prototype_forEach = (_this: any[], callbackFn: any) => {
149
+ export const __Array_prototype_forEach = (_this: any[], callbackFn: Function) => {
151
150
  const len: i32 = _this.length;
152
151
  let i: i32 = 0;
153
152
  while (i < len) {
154
153
  callbackFn(_this[i], i++, _this);
155
154
  }
156
- };
157
-
158
- export const __Array_prototype_filter = (_this: any[], callbackFn: any) => {
159
- const out: any[] = [];
160
-
161
- const len: i32 = _this.length;
162
- let i: i32 = 0;
163
- while (i < len) {
164
- const el: any = _this[i];
165
- if (callbackFn(el, i++, _this)) out.push(el);
166
- }
167
-
168
- return out;
169
- };
170
-
171
- export const __Array_prototype_map = (_this: any[], callbackFn: any) => {
172
- const out: any[] = [];
173
-
174
- const len: i32 = _this.length;
175
- let i: i32 = 0;
176
- while (i < len) {
177
- out.push(callbackFn(_this[i], i++, _this));
178
- }
179
-
180
- return out;
181
- };
182
-
183
- export const __Array_prototype_find = (_this: any[], callbackFn: any) => {
184
- const len: i32 = _this.length;
185
- let i: i32 = 0;
186
- while (i < len) {
187
- const el: any = _this[i];
188
- if (callbackFn(el, i++, _this)) return el;
189
- }
190
- };
191
-
192
- export const __Array_prototype_findLast = (_this: any[], callbackFn: any) => {
193
- let i: i32 = _this.length;
194
- while (i > 0) {
195
- const el: any = _this[--i];
196
- if (callbackFn(el, i, _this)) return el;
197
- }
198
- };
199
-
200
- export const __Array_prototype_findIndex = (_this: any[], callbackFn: any) => {
201
- const len: i32 = _this.length;
202
- let i: i32 = 0;
203
- while (i < len) {
204
- if (callbackFn(_this[i], i++, _this)) return i;
205
- }
206
- };
207
-
208
- export const __Array_prototype_findLastIndex = (_this: any[], callbackFn: any) => {
209
- let i: i32 = _this.length;
210
- while (i > 0) {
211
- if (callbackFn(_this[--i], i, _this)) return i;
212
- }
213
- };
214
-
215
- export const __Array_prototype_every = (_this: any[], callbackFn: any) => {
216
- const len: i32 = _this.length;
217
- let i: i32 = 0;
218
- while (i < len) {
219
- if (!callbackFn(_this[i], i++, _this)) return false;
220
- }
221
-
222
- return true;
223
155
  };
@@ -3144,18 +3144,14 @@ const generateThrow = (scope, decl) => {
3144
3144
  };
3145
3145
 
3146
3146
  const generateTry = (scope, decl) => {
3147
- // todo: handle control-flow pre-exit for finally
3148
- // "Immediately before a control-flow statement (return, throw, break, continue) is executed in the try block or catch block."
3147
+ if (decl.finalizer) return todo(scope, 'try finally not implemented yet');
3149
3148
 
3150
3149
  const out = [];
3151
3150
 
3152
- const finalizer = decl.finalizer ? generate(scope, decl.finalizer) : [];
3153
-
3154
3151
  out.push([ Opcodes.try, Blocktype.void ]);
3155
3152
  depth.push('try');
3156
3153
 
3157
3154
  out.push(...generate(scope, decl.block));
3158
- out.push(...finalizer);
3159
3155
 
3160
3156
  if (decl.handler) {
3161
3157
  depth.pop();
@@ -3163,7 +3159,6 @@ const generateTry = (scope, decl) => {
3163
3159
 
3164
3160
  out.push([ Opcodes.catch_all ]);
3165
3161
  out.push(...generate(scope, decl.handler.body));
3166
- out.push(...finalizer);
3167
3162
  }
3168
3163
 
3169
3164
  out.push([ Opcodes.end ]);
@@ -300,83 +300,13 @@ export const BuiltinFuncs = function() {
300
300
  localNames: ["_this","_this#type"],
301
301
  };
302
302
  this.__Array_prototype_forEach = {
303
- wasm: (scope, {internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,3],[33,15],[2,124],[32,15],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,5],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,6],[43,0,4],[32,6],[45,0,12],[33,7],[65,0],[33,8],[33,9],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[32,7],[33,10],[33,11],[32,0],[65,16],[33,12],[33,13],[32,2],[252,3],[33,14],[2,124],[2,64],[2,64],[2,64],[2,64],[32,14],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,14],[17,0,0],[33,7],[12,3],[11],[32,9],[32,8],[32,14],[17,1,0],[33,7],[12,2],[11],[32,9],[32,8],[32,11],[32,10],[32,14],[17,2,0],[33,7],[12,1],[11],[32,9],[32,8],[32,11],[32,10],[32,13],[32,12],[32,14],[17,3,0],[33,7],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[26],[12,1],[11],[11],[68,0,0,0,0,0,0,0,0],[65,3],[15]],
303
+ wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,6],[43,0,4],[32,6],[45,0,12],[33,7],[65,0],[33,8],[33,9],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[32,7],[33,10],[33,11],[32,0],[65,16],[33,12],[33,13],[32,2],[252,3],[33,14],[2,124],[2,64],[2,64],[2,64],[2,64],[32,14],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,14],[17,0,0],[33,7],[12,3],[11],[32,9],[32,8],[32,14],[17,1,0],[33,7],[12,2],[11],[32,9],[32,8],[32,11],[32,10],[32,14],[17,2,0],[33,7],[12,1],[11],[32,9],[32,8],[32,11],[32,10],[32,13],[32,12],[32,14],[17,3,0],[33,7],[11],[26],[12,1],[11],[11],[68,0,0,0,0,0,0,0,0],[65,3],[15]],
304
304
  params: [124,127,124,127],
305
305
  typedParams: true,
306
306
  returns: [124,127],
307
307
  typedReturns: true,
308
- locals: [124,124,127,127,127,124,127,124,127,124,127,127],
309
- localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#typeswitch_tmp"],
310
- table: true
311
- };
312
- this.__Array_prototype_filter = {
313
- wasm: (scope, {allocPage,internalThrow,}) => [...number(allocPage(scope, 'array: __Array_prototype_filter/out', 'f64') * pageSize, 124),[34,4],[252,3],[34,5],[65,0],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,6],[68,0,0,0,0,0,0,0,0],[33,7],[3,64],[32,7],[32,6],[99],[4,64],[32,7],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,10],[43,0,4],[32,10],[45,0,12],[33,11],[33,8],[65,0],[33,9],[32,3],[33,19],[2,124],[32,19],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,8],[32,9],[33,12],[33,13],[32,7],[32,7],[68,0,0,0,0,0,0,240,63],[160],[33,7],[32,11],[33,14],[33,15],[32,0],[65,16],[33,16],[33,17],[32,2],[252,3],[33,18],[2,124],[2,64],[2,64],[2,64],[2,64],[32,18],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,18],[17,0,0],[33,11],[12,3],[11],[32,13],[32,12],[32,18],[17,1,0],[33,11],[12,2],[11],[32,13],[32,12],[32,15],[32,14],[32,18],[17,2,0],[33,11],[12,1],[11],[32,13],[32,12],[32,15],[32,14],[32,17],[32,16],[32,18],[17,3,0],[33,11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,20],[32,11],[33,19],[2,127],[32,19],[65,2],[70],[4,64,"TYPESWITCH|String"],[32,20],[252,3],[40,1,0],[12,1],[11],[32,19],[65,16],[70],[4,64,"TYPESWITCH|Array"],[65,1],[12,1],[11],[32,19],[65,18],[70],[4,64,"TYPESWITCH|ByteString"],[32,20],[252,3],[40,1,0],[12,1],[11],[32,20],[252,3],[11,"TYPESWITCH_end"],[4,64],[32,4],[252,3],[34,22],[40,1,0],[34,21],[65,9],[108],[32,22],[106],[34,23],[32,8],[57,0,4],[32,23],[32,9],[58,0,12],[32,22],[32,21],[65,1],[106],[54,1,0],[11],[12,1],[11],[11],[32,4],[65,16],[15]],
314
- params: [124,127,124,127],
315
- typedParams: true,
316
- returns: [124,127],
317
- typedReturns: true,
318
- locals: [124,127,124,124,124,127,127,127,127,124,127,124,127,124,127,127,124,127,127,127],
319
- localNames: ["_this","_this#type","callbackFn","callbackFn#type","out","#makearray_pointer_tmp","len","i","el","el#type","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#typeswitch_tmp","#logicinner_tmp","__proto_length_cache","__proto_pointer_cache","__push_tmp"],
320
- table: true
321
- };
322
- this.__Array_prototype_map = {
323
- wasm: (scope, {allocPage,internalThrow,}) => [...number(allocPage(scope, 'array: __Array_prototype_map/out', 'f64') * pageSize, 124),[34,4],[252,3],[34,5],[65,0],[54,1,0],[32,0],[252,3],[40,1,0],[184],[33,6],[68,0,0,0,0,0,0,0,0],[33,7],[3,64],[32,7],[32,6],[99],[4,64],[32,4],[252,3],[34,9],[40,1,0],[33,8],[2,64],[32,8],[65,9],[108],[32,9],[106],[34,10],[32,3],[33,20],[2,124],[32,20],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,7],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,11],[43,0,4],[32,11],[45,0,12],[33,12],[65,0],[33,13],[33,14],[32,7],[32,7],[68,0,0,0,0,0,0,240,63],[160],[33,7],[32,12],[33,15],[33,16],[32,0],[65,16],[33,17],[33,18],[32,2],[252,3],[33,19],[2,124],[2,64],[2,64],[2,64],[2,64],[32,19],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,19],[17,0,0],[33,12],[12,3],[11],[32,14],[32,13],[32,19],[17,1,0],[33,12],[12,2],[11],[32,14],[32,13],[32,16],[32,15],[32,19],[17,2,0],[33,12],[12,1],[11],[32,14],[32,13],[32,16],[32,15],[32,18],[32,17],[32,19],[17,3,0],[33,12],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[57,0,4],[32,10],[32,12],[58,0,12],[32,9],[32,8],[65,1],[106],[54,1,0],[11],[12,1],[11],[11],[32,4],[65,16],[15]],
324
- params: [124,127,124,127],
325
- typedParams: true,
326
- returns: [124,127],
327
- typedReturns: true,
328
- locals: [124,127,124,124,127,127,127,127,127,127,124,127,124,127,124,127,127],
329
- localNames: ["_this","_this#type","callbackFn","callbackFn#type","out","#makearray_pointer_tmp","len","i","__proto_length_cache","__proto_pointer_cache","__push_tmp","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#typeswitch_tmp"],
330
- table: true
331
- };
332
- this.__Array_prototype_find = {
333
- wasm: (scope, {internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,5],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,8],[43,0,4],[32,8],[45,0,12],[33,9],[33,6],[65,0],[33,7],[32,3],[33,17],[2,124],[32,17],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,6],[32,7],[33,10],[33,11],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[32,9],[33,12],[33,13],[32,0],[65,16],[33,14],[33,15],[32,2],[252,3],[33,16],[2,124],[2,64],[2,64],[2,64],[2,64],[32,16],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,16],[17,0,0],[33,9],[12,3],[11],[32,11],[32,10],[32,16],[17,1,0],[33,9],[12,2],[11],[32,11],[32,10],[32,13],[32,12],[32,16],[17,2,0],[33,9],[12,1],[11],[32,11],[32,10],[32,13],[32,12],[32,15],[32,14],[32,16],[17,3,0],[33,9],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,18],[32,9],[33,17],[2,127],[32,17],[65,2],[70],[4,64,"TYPESWITCH|String"],[32,18],[252,3],[40,1,0],[12,1],[11],[32,17],[65,16],[70],[4,64,"TYPESWITCH|Array"],[65,1],[12,1],[11],[32,17],[65,18],[70],[4,64,"TYPESWITCH|ByteString"],[32,18],[252,3],[40,1,0],[12,1],[11],[32,18],[252,3],[11,"TYPESWITCH_end"],[4,64],[32,6],[32,7],[15],[11],[12,1],[11],[11],[68,0,0,0,0,0,0,0,0],[65,3],[15]],
334
- params: [124,127,124,127],
335
- typedParams: true,
336
- returns: [124,127],
337
- typedReturns: true,
338
- locals: [124,124,124,127,127,127,127,124,127,124,127,124,127,127,124],
339
- localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","el","el#type","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#typeswitch_tmp","#logicinner_tmp"],
340
- table: true
341
- };
342
- this.__Array_prototype_findLast = {
343
- wasm: (scope, {internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[3,64],[32,4],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,4],[68,0,0,0,0,0,0,240,63],[161],[34,4],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,7],[43,0,4],[32,7],[45,0,12],[33,8],[33,5],[65,0],[33,6],[32,3],[33,16],[2,124],[32,16],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,5],[32,6],[33,9],[33,10],[32,4],[65,0],[33,11],[33,12],[32,0],[65,16],[33,13],[33,14],[32,2],[252,3],[33,15],[2,124],[2,64],[2,64],[2,64],[2,64],[32,15],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,15],[17,0,0],[33,8],[12,3],[11],[32,10],[32,9],[32,15],[17,1,0],[33,8],[12,2],[11],[32,10],[32,9],[32,12],[32,11],[32,15],[17,2,0],[33,8],[12,1],[11],[32,10],[32,9],[32,12],[32,11],[32,14],[32,13],[32,15],[17,3,0],[33,8],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,17],[32,8],[33,16],[2,127],[32,16],[65,2],[70],[4,64,"TYPESWITCH|String"],[32,17],[252,3],[40,1,0],[12,1],[11],[32,16],[65,16],[70],[4,64,"TYPESWITCH|Array"],[65,1],[12,1],[11],[32,16],[65,18],[70],[4,64,"TYPESWITCH|ByteString"],[32,17],[252,3],[40,1,0],[12,1],[11],[32,17],[252,3],[11,"TYPESWITCH_end"],[4,64],[32,5],[32,6],[15],[11],[12,1],[11],[11],[68,0,0,0,0,0,0,0,0],[65,3],[15]],
344
- params: [124,127,124,127],
345
- typedParams: true,
346
- returns: [124,127],
347
- typedReturns: true,
348
- locals: [124,124,127,127,127,127,124,127,124,127,124,127,127,124],
349
- localNames: ["_this","_this#type","callbackFn","callbackFn#type","i","el","el#type","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#typeswitch_tmp","#logicinner_tmp"],
350
- table: true
351
- };
352
- this.__Array_prototype_findIndex = {
353
- wasm: (scope, {internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,3],[33,15],[2,124],[32,15],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,5],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,6],[43,0,4],[32,6],[45,0,12],[33,7],[65,0],[33,8],[33,9],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[32,7],[33,10],[33,11],[32,0],[65,16],[33,12],[33,13],[32,2],[252,3],[33,14],[2,124],[2,64],[2,64],[2,64],[2,64],[32,14],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,14],[17,0,0],[33,7],[12,3],[11],[32,9],[32,8],[32,14],[17,1,0],[33,7],[12,2],[11],[32,9],[32,8],[32,11],[32,10],[32,14],[17,2,0],[33,7],[12,1],[11],[32,9],[32,8],[32,11],[32,10],[32,13],[32,12],[32,14],[17,3,0],[33,7],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,16],[32,7],[33,15],[2,127],[32,15],[65,2],[70],[4,64,"TYPESWITCH|String"],[32,16],[252,3],[40,1,0],[12,1],[11],[32,15],[65,16],[70],[4,64,"TYPESWITCH|Array"],[65,1],[12,1],[11],[32,15],[65,18],[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,5],[65,0],[15],[11],[12,1],[11],[11],[68,0,0,0,0,0,0,0,0],[65,3],[15]],
354
- params: [124,127,124,127],
355
- typedParams: true,
356
- returns: [124,127],
357
- typedReturns: true,
358
- locals: [124,124,127,127,127,124,127,124,127,124,127,127,124],
359
- localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#typeswitch_tmp","#logicinner_tmp"],
360
- table: true
361
- };
362
- this.__Array_prototype_findLastIndex = {
363
- wasm: (scope, {internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[3,64],[32,4],[68,0,0,0,0,0,0,0,0],[100],[4,64],[32,3],[33,14],[2,124],[32,14],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,4],[68,0,0,0,0,0,0,240,63],[161],[34,4],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,5],[43,0,4],[32,5],[45,0,12],[33,6],[65,0],[33,7],[33,8],[32,4],[65,0],[33,9],[33,10],[32,0],[65,16],[33,11],[33,12],[32,2],[252,3],[33,13],[2,124],[2,64],[2,64],[2,64],[2,64],[32,13],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,13],[17,0,0],[33,6],[12,3],[11],[32,8],[32,7],[32,13],[17,1,0],[33,6],[12,2],[11],[32,8],[32,7],[32,10],[32,9],[32,13],[17,2,0],[33,6],[12,1],[11],[32,8],[32,7],[32,10],[32,9],[32,12],[32,11],[32,13],[17,3,0],[33,6],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,15],[32,6],[33,14],[2,127],[32,14],[65,2],[70],[4,64,"TYPESWITCH|String"],[32,15],[252,3],[40,1,0],[12,1],[11],[32,14],[65,16],[70],[4,64,"TYPESWITCH|Array"],[65,1],[12,1],[11],[32,14],[65,18],[70],[4,64,"TYPESWITCH|ByteString"],[32,15],[252,3],[40,1,0],[12,1],[11],[32,15],[252,3],[11,"TYPESWITCH_end"],[4,64],[32,4],[65,0],[15],[11],[12,1],[11],[11],[68,0,0,0,0,0,0,0,0],[65,3],[15]],
364
- params: [124,127,124,127],
365
- typedParams: true,
366
- returns: [124,127],
367
- typedReturns: true,
368
- locals: [124,127,127,127,124,127,124,127,124,127,127,124],
369
- localNames: ["_this","_this#type","callbackFn","callbackFn#type","i","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#typeswitch_tmp","#logicinner_tmp"],
370
- table: true
371
- };
372
- this.__Array_prototype_every = {
373
- wasm: (scope, {internalThrow,}) => [[32,0],[252,3],[40,1,0],[184],[33,4],[68,0,0,0,0,0,0,0,0],[33,5],[3,64],[32,5],[32,4],[99],[4,64],[32,3],[33,15],[2,124],[32,15],[65,5],[70],[4,64,"TYPESWITCH|Function"],[32,5],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,6],[43,0,4],[32,6],[45,0,12],[33,7],[65,0],[33,8],[33,9],[32,5],[32,5],[68,0,0,0,0,0,0,240,63],[160],[33,5],[32,7],[33,10],[33,11],[32,0],[65,16],[33,12],[33,13],[32,2],[252,3],[33,14],[2,124],[2,64],[2,64],[2,64],[2,64],[32,14],[65,2],[108],[47,0,128,128,12,"read_argc"],[14,4,0,1,2,3,0],[11],[32,14],[17,0,0],[33,7],[12,3],[11],[32,9],[32,8],[32,14],[17,1,0],[33,7],[12,2],[11],[32,9],[32,8],[32,11],[32,10],[32,14],[17,2,0],[33,7],[12,1],[11],[32,9],[32,8],[32,11],[32,10],[32,13],[32,12],[32,14],[17,3,0],[33,7],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `callbackFn is not a function`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[33,16],[32,7],[33,15],[2,124],[32,15],[65,2],[70],[4,64,"TYPESWITCH|String"],[32,16],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,15],[65,16],[70],[4,64,"TYPESWITCH|Array"],[68,0,0,0,0,0,0,0,0],[12,1],[11],[32,15],[65,18],[70],[4,64,"TYPESWITCH|ByteString"],[32,16],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,16],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],[68,0,0,0,0,0,0,0,0],[65,1],[15],[11],[12,1],[11],[11],[68,0,0,0,0,0,0,240,63],[65,1],[15]],
374
- params: [124,127,124,127],
375
- typedParams: true,
376
- returns: [124,127],
377
- typedReturns: true,
378
- locals: [124,124,127,127,127,124,127,124,127,124,127,127,124],
379
- localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func","#typeswitch_tmp","#logicinner_tmp"],
308
+ locals: [124,124,127,127,127,124,127,124,127,124,127],
309
+ localNames: ["_this","_this#type","callbackFn","callbackFn#type","len","i","#loadArray_offset","#last_type","#indirect_arg0_type","#indirect_arg0_val","#indirect_arg1_type","#indirect_arg1_val","#indirect_arg2_type","#indirect_arg2_val","#indirect_func"],
380
310
  table: true
381
311
  };
382
312
  this.btoa = {
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.14.0-b5a80d8e3",
4
+ "version": "0.14.0-c6edfd328",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {