porffor 0.14.0-c6edfd328 → 0.14.0-db4b90996
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,10 +146,24 @@ export const __Array_prototype_valueOf = (_this: any[]) => {
|
|
146
146
|
return _this;
|
147
147
|
};
|
148
148
|
|
149
|
+
|
149
150
|
export const __Array_prototype_forEach = (_this: any[], callbackFn: Function) => {
|
150
151
|
const len: i32 = _this.length;
|
151
152
|
let i: i32 = 0;
|
152
153
|
while (i < len) {
|
153
154
|
callbackFn(_this[i], i++, _this);
|
154
155
|
}
|
156
|
+
};
|
157
|
+
|
158
|
+
export const __Array_prototype_filter = (_this: any[], callbackFn: Function) => {
|
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;
|
155
169
|
};
|
@@ -309,6 +309,16 @@ export const BuiltinFuncs = function() {
|
|
309
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"],
|
310
310
|
table: true
|
311
311
|
};
|
312
|
+
this.__Array_prototype_filter = {
|
313
|
+
wasm: (scope, {allocPage,}) => [...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,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],[33,19],[32,11],[33,20],[2,127],[32,20],[65,2],[70],[4,64,"TYPESWITCH|String"],[32,19],[252,3],[40,1,0],[12,1],[11],[32,20],[65,16],[70],[4,64,"TYPESWITCH|Array"],[65,1],[12,1],[11],[32,20],[65,18],[70],[4,64,"TYPESWITCH|ByteString"],[32,19],[252,3],[40,1,0],[12,1],[11],[32,19],[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,124,127,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","#logicinner_tmp","#typeswitch_tmp","__proto_length_cache","__proto_pointer_cache","__push_tmp"],
|
320
|
+
table: true
|
321
|
+
};
|
312
322
|
this.btoa = {
|
313
323
|
wasm: (scope, {allocPage,}) => [...number(allocPage(scope, 'bytestring: btoa/keyStr', 'i8') * pageSize, 127),[34,2],[33,3],[32,0],[40,1,0],[33,4],...number(allocPage(scope, 'bytestring: btoa/output', 'i8') * pageSize, 127),[34,5],[65,4],[32,4],[65,3],[109],[32,4],[65,3],[111],[69],[69],[106],[108],[34,6],[54,1,0],[32,0],[33,7],[32,5],[33,8],[32,7],[32,4],[106],[33,9],[65,0],[33,10],[3,64],[32,7],[32,9],[72],[4,64],[32,7],[32,7],[65,1],[106],[33,7],[45,0,4],[33,11],[32,7],[32,9],[72],[4,127],[32,7],[32,7],[65,1],[106],[33,7],[45,0,4],[65,0],[33,13],[5],[65,127],[65,0],[33,13],[11],[33,12],[32,7],[32,9],[72],[4,127],[32,7],[32,7],[65,1],[106],[33,7],[45,0,4],[65,0],[33,13],[5],[65,127],[65,0],[33,13],[11],[33,14],[32,11],[65,2],[117],[33,15],[32,11],[65,3],[113],[65,4],[116],[32,12],[65,127],[70],[4,127],[65,0],[65,0],[33,13],[5],[32,12],[65,4],[117],[65,0],[33,13],[11],[114],[33,16],[32,12],[65,15],[113],[65,2],[116],[32,14],[65,127],[70],[4,127],[65,0],[65,0],[33,13],[5],[32,14],[65,6],[117],[65,0],[33,13],[11],[114],[33,17],[32,14],[65,63],[113],[33,18],[32,12],[65,127],[70],[4,64],[65,192,0],[33,17],[65,192,0],[33,18],[5],[32,14],[65,127],[70],[4,64],[65,192,0],[33,18],[11],[11],[32,8],[32,8],[65,1],[106],[33,8],[32,3],[32,15],[106],[45,0,4],[58,0,4],[32,8],[32,8],[65,1],[106],[33,8],[32,3],[32,16],[106],[45,0,4],[58,0,4],[32,8],[32,8],[65,1],[106],[33,8],[32,3],[32,17],[106],[45,0,4],[58,0,4],[32,8],[32,8],[65,1],[106],[33,8],[32,3],[32,18],[106],[45,0,4],[58,0,4],[12,1],[11],[11],[32,5],[15]],
|
314
324
|
params: [127,127],
|
package/package.json
CHANGED