porffor 0.19.4 → 0.19.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.
@@ -6,7 +6,7 @@ export const __Map_prototype_size$get = (_this: Map) => {
|
|
6
6
|
|
7
7
|
export const __Map_prototype_has = (_this: Map, key: any) => {
|
8
8
|
const keys: Set = Porffor.wasm.i32.load(_this, 0, 0);
|
9
|
-
return __Set_prototype_has(key);
|
9
|
+
return __Set_prototype_has(keys, key);
|
10
10
|
};
|
11
11
|
|
12
12
|
export const __Map_prototype_get = (_this: Map, key: any) => {
|
@@ -46,7 +46,7 @@ export const __Map_prototype_delete = (_this: Map, key: any) => {
|
|
46
46
|
__Set_prototype_delete(keys, key);
|
47
47
|
|
48
48
|
const vals: any[] = Porffor.wasm.i32.load(_this, 0, 4);
|
49
|
-
__Array_prototype_splice(keyIdx, 1);
|
49
|
+
__Array_prototype_splice(vals, keyIdx, 1);
|
50
50
|
|
51
51
|
return true;
|
52
52
|
};
|
@@ -3998,7 +3998,7 @@ export const BuiltinFuncs = function() {
|
|
3998
3998
|
locals: [], localNames: ["_this","_this#type"],
|
3999
3999
|
};
|
4000
4000
|
this.__Map_prototype_has = {
|
4001
|
-
wasm: (scope, {builtin}) => [[32,0],[252,2],[40,0,0],[183],[
|
4001
|
+
wasm: (scope, {builtin}) => [[32,0],[252,2],[40,0,0],[183],[34,4],[65,19],[32,2],[32,3],[16, builtin('__Set_prototype_has')],[34,5],[15]],
|
4002
4002
|
params: [124,127,124,127], typedParams: 1,
|
4003
4003
|
returns: [124,127], typedReturns: 1,
|
4004
4004
|
locals: [124,127], localNames: ["_this","_this#type","key","key#type","keys","#last_type"],
|
@@ -4016,7 +4016,7 @@ export const BuiltinFuncs = function() {
|
|
4016
4016
|
locals: [124,124,124,124,127,124,127], localNames: ["_this","_this#type","key","key#type","value","value#type","keys","vals","size","keyIdx","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
4017
4017
|
};
|
4018
4018
|
this.__Map_prototype_delete = {
|
4019
|
-
wasm: (scope, {builtin}) => [[32,0],[252,2],[40,0,0],[183],[34,4],[65,19],[32,2],[32,3],[16, builtin('__Porffor_set_indexOf')],[33,7],[33,5],[32,7],[33,6],[32,5],[68,0,0,0,0,0,0,240,191],[97],[4,64],[68,0,0,0,0,0,0,0,0],[65,2],[15],[11],[32,4],[65,19],[32,2],[32,3],[16, builtin('__Set_prototype_delete')],[33,7],[26],[32,0],[252,2],[40,0,4],[183],[
|
4019
|
+
wasm: (scope, {builtin}) => [[32,0],[252,2],[40,0,0],[183],[34,4],[65,19],[32,2],[32,3],[16, builtin('__Porffor_set_indexOf')],[33,7],[33,5],[32,7],[33,6],[32,5],[68,0,0,0,0,0,0,240,191],[97],[4,64],[68,0,0,0,0,0,0,0,0],[65,2],[15],[11],[32,4],[65,19],[32,2],[32,3],[16, builtin('__Set_prototype_delete')],[33,7],[26],[32,0],[252,2],[40,0,4],[183],[34,8],[65,208,0],[32,5],[32,6],[68,0,0,0,0,0,0,240,63],[65,1],[65,4],[65,0],[54,1,0],[68,0,0,0,0,0,0,16,64],[65,208,0],[16, builtin('__Array_prototype_splice')],[33,7],[26],[68,0,0,0,0,0,0,240,63],[65,2],[15]],
|
4020
4020
|
params: [124,127,124,127], typedParams: 1,
|
4021
4021
|
returns: [124,127], typedReturns: 1,
|
4022
4022
|
locals: [124,124,127,127,124], localNames: ["_this","_this#type","key","key#type","keys","keyIdx","keyIdx#type","#last_type","vals"],
|
package/package.json
CHANGED