porffor 0.60.30 → 0.61.0
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.
- package/compiler/builtins/_internal_object.ts +22 -16
- package/compiler/builtins/array.ts +1 -1
- package/compiler/builtins.js +1 -1
- package/compiler/builtins_precompiled.js +13 -13
- package/compiler/codegen.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/runtime/index.js +1 -1
- package/foo.cjs +0 -32
|
@@ -441,7 +441,8 @@ i32.load8_u 0 17
|
|
|
441
441
|
return`;
|
|
442
442
|
};
|
|
443
443
|
|
|
444
|
-
export const __Porffor_object_get = (
|
|
444
|
+
export const __Porffor_object_get = (_obj: any, key: any): any => {
|
|
445
|
+
let obj: any = _obj;
|
|
445
446
|
const trueType: i32 = Porffor.wasm`local.get ${obj+1}`;
|
|
446
447
|
if (trueType != Porffor.TYPES.object) obj = __Porffor_object_underlying(obj);
|
|
447
448
|
|
|
@@ -508,7 +509,7 @@ local.set ${obj+1}`;
|
|
|
508
509
|
const get: Function = __Porffor_object_accessorGet(entryPtr);
|
|
509
510
|
|
|
510
511
|
if (Porffor.wasm`local.get ${get}` == 0) return undefined;
|
|
511
|
-
return get.call(
|
|
512
|
+
return get.call(_obj);
|
|
512
513
|
}
|
|
513
514
|
|
|
514
515
|
// data descriptor
|
|
@@ -521,7 +522,8 @@ i32.shr_u
|
|
|
521
522
|
return`;
|
|
522
523
|
};
|
|
523
524
|
|
|
524
|
-
export const __Porffor_object_get_withHash = (
|
|
525
|
+
export const __Porffor_object_get_withHash = (_obj: any, key: any, hash: i32): any => {
|
|
526
|
+
let obj: any = _obj;
|
|
525
527
|
const trueType: i32 = Porffor.wasm`local.get ${obj+1}`;
|
|
526
528
|
if (trueType != Porffor.TYPES.object) obj = __Porffor_object_underlying(obj);
|
|
527
529
|
|
|
@@ -577,7 +579,7 @@ local.set ${obj+1}`;
|
|
|
577
579
|
const get: Function = __Porffor_object_accessorGet(entryPtr);
|
|
578
580
|
|
|
579
581
|
if (Porffor.wasm`local.get ${get}` == 0) return undefined;
|
|
580
|
-
return get.call(
|
|
582
|
+
return get.call(_obj);
|
|
581
583
|
}
|
|
582
584
|
|
|
583
585
|
// data descriptor
|
|
@@ -590,7 +592,8 @@ i32.shr_u
|
|
|
590
592
|
return`;
|
|
591
593
|
};
|
|
592
594
|
|
|
593
|
-
export const __Porffor_object_set = (
|
|
595
|
+
export const __Porffor_object_set = (_obj: any, key: any, value: any): any => {
|
|
596
|
+
let obj: any = _obj;
|
|
594
597
|
if (Porffor.wasm`local.get ${obj+1}` != Porffor.TYPES.object) {
|
|
595
598
|
obj = __Porffor_object_underlying(obj);
|
|
596
599
|
if (Porffor.wasm`local.get ${obj+1}` != Porffor.TYPES.object) return value;
|
|
@@ -631,7 +634,7 @@ export const __Porffor_object_set = (obj: any, key: any, value: any): any => {
|
|
|
631
634
|
const set: Function = __Porffor_object_accessorSet(entryPtr);
|
|
632
635
|
if (Porffor.wasm`local.get ${set}` == 0) return value;
|
|
633
636
|
|
|
634
|
-
set.call(
|
|
637
|
+
set.call(_obj, value);
|
|
635
638
|
return value;
|
|
636
639
|
}
|
|
637
640
|
}
|
|
@@ -663,7 +666,7 @@ export const __Porffor_object_set = (obj: any, key: any, value: any): any => {
|
|
|
663
666
|
const set: Function = __Porffor_object_accessorSet(entryPtr);
|
|
664
667
|
if (Porffor.wasm`local.get ${set}` == 0) return value;
|
|
665
668
|
|
|
666
|
-
set.call(
|
|
669
|
+
set.call(_obj, value);
|
|
667
670
|
return value;
|
|
668
671
|
}
|
|
669
672
|
|
|
@@ -688,7 +691,8 @@ export const __Porffor_object_set = (obj: any, key: any, value: any): any => {
|
|
|
688
691
|
return value;
|
|
689
692
|
};
|
|
690
693
|
|
|
691
|
-
export const __Porffor_object_set_withHash = (
|
|
694
|
+
export const __Porffor_object_set_withHash = (_obj: any, key: any, value: any, hash: i32): any => {
|
|
695
|
+
let obj: any = _obj;
|
|
692
696
|
if (Porffor.wasm`local.get ${obj+1}` != Porffor.TYPES.object) {
|
|
693
697
|
obj = __Porffor_object_underlying(obj);
|
|
694
698
|
if (Porffor.wasm`local.get ${obj+1}` != Porffor.TYPES.object) return value;
|
|
@@ -722,7 +726,7 @@ export const __Porffor_object_set_withHash = (obj: any, key: any, value: any, ha
|
|
|
722
726
|
const set: Function = __Porffor_object_accessorSet(entryPtr);
|
|
723
727
|
if (Porffor.wasm`local.get ${set}` == 0) return value;
|
|
724
728
|
|
|
725
|
-
set.call(
|
|
729
|
+
set.call(_obj, value);
|
|
726
730
|
return value;
|
|
727
731
|
}
|
|
728
732
|
}
|
|
@@ -754,7 +758,7 @@ export const __Porffor_object_set_withHash = (obj: any, key: any, value: any, ha
|
|
|
754
758
|
const set: Function = __Porffor_object_accessorSet(entryPtr);
|
|
755
759
|
if (Porffor.wasm`local.get ${set}` == 0) return value;
|
|
756
760
|
|
|
757
|
-
set.call(
|
|
761
|
+
set.call(_obj, value);
|
|
758
762
|
return value;
|
|
759
763
|
}
|
|
760
764
|
|
|
@@ -779,7 +783,8 @@ export const __Porffor_object_set_withHash = (obj: any, key: any, value: any, ha
|
|
|
779
783
|
return value;
|
|
780
784
|
};
|
|
781
785
|
|
|
782
|
-
export const __Porffor_object_setStrict = (
|
|
786
|
+
export const __Porffor_object_setStrict = (_obj: any, key: any, value: any): any => {
|
|
787
|
+
let obj: any = _obj;
|
|
783
788
|
if (Porffor.wasm`local.get ${obj}` == 0) throw new TypeError('Cannot set property of null');
|
|
784
789
|
|
|
785
790
|
if (Porffor.wasm`local.get ${obj+1}` != Porffor.TYPES.object) {
|
|
@@ -821,7 +826,7 @@ export const __Porffor_object_setStrict = (obj: any, key: any, value: any): any
|
|
|
821
826
|
const set: Function = __Porffor_object_accessorSet(entryPtr);
|
|
822
827
|
if (Porffor.wasm`local.get ${set}` == 0) throw new TypeError('Cannot set property with only getter');
|
|
823
828
|
|
|
824
|
-
set.call(
|
|
829
|
+
set.call(_obj, value);
|
|
825
830
|
return value;
|
|
826
831
|
}
|
|
827
832
|
}
|
|
@@ -853,7 +858,7 @@ export const __Porffor_object_setStrict = (obj: any, key: any, value: any): any
|
|
|
853
858
|
const set: Function = __Porffor_object_accessorSet(entryPtr);
|
|
854
859
|
if (Porffor.wasm`local.get ${set}` == 0) throw new TypeError('Cannot set property with only getter');
|
|
855
860
|
|
|
856
|
-
set.call(
|
|
861
|
+
set.call(_obj, value);
|
|
857
862
|
return value;
|
|
858
863
|
}
|
|
859
864
|
|
|
@@ -878,7 +883,8 @@ export const __Porffor_object_setStrict = (obj: any, key: any, value: any): any
|
|
|
878
883
|
return value;
|
|
879
884
|
};
|
|
880
885
|
|
|
881
|
-
export const __Porffor_object_setStrict_withHash = (
|
|
886
|
+
export const __Porffor_object_setStrict_withHash = (_obj: any, key: any, value: any, hash: i32): any => {
|
|
887
|
+
let obj: any = _obj;
|
|
882
888
|
if (Porffor.wasm`local.get ${obj}` == 0) throw new TypeError('Cannot set property of null');
|
|
883
889
|
|
|
884
890
|
if (Porffor.wasm`local.get ${obj+1}` != Porffor.TYPES.object) {
|
|
@@ -913,7 +919,7 @@ export const __Porffor_object_setStrict_withHash = (obj: any, key: any, value: a
|
|
|
913
919
|
const set: Function = __Porffor_object_accessorSet(entryPtr);
|
|
914
920
|
if (Porffor.wasm`local.get ${set}` == 0) throw new TypeError('Cannot set property with only getter');
|
|
915
921
|
|
|
916
|
-
set.call(
|
|
922
|
+
set.call(_obj, value);
|
|
917
923
|
return value;
|
|
918
924
|
}
|
|
919
925
|
}
|
|
@@ -945,7 +951,7 @@ export const __Porffor_object_setStrict_withHash = (obj: any, key: any, value: a
|
|
|
945
951
|
const set: Function = __Porffor_object_accessorSet(entryPtr);
|
|
946
952
|
if (Porffor.wasm`local.get ${set}` == 0) throw new TypeError('Cannot set property with only getter');
|
|
947
953
|
|
|
948
|
-
set.call(
|
|
954
|
+
set.call(_obj, value);
|
|
949
955
|
return value;
|
|
950
956
|
}
|
|
951
957
|
|
package/compiler/builtins.js
CHANGED
|
@@ -1522,7 +1522,7 @@ export const BuiltinFuncs = () => {
|
|
|
1522
1522
|
Opcodes.i32_from_u
|
|
1523
1523
|
]);
|
|
1524
1524
|
|
|
1525
|
-
comptime('__Porffor_compileType', TYPES.bytestring, (scope, decl, { makeString, knownType }) =>
|
|
1525
|
+
comptime('__Porffor_compileType', TYPES.bytestring, (scope, decl, { makeString, knownType, getNodeType }) =>
|
|
1526
1526
|
makeString(scope, TYPE_NAMES[knownType(scope, getNodeType(scope, decl.arguments[0]))] ?? 'unknown')
|
|
1527
1527
|
);
|
|
1528
1528
|
|
|
@@ -102,39 +102,39 @@ params:[127,127],typedParams:1,returns:[124,127],jsLength:1,
|
|
|
102
102
|
locals:[],localNames:["entryPtr","entryPtr#type"]
|
|
103
103
|
}
|
|
104
104
|
x.__Porffor_object_get={
|
|
105
|
-
wasm:(_,{i32ify,t,makeString,builtin,internalThrow})=>eval("[[32,1],[34,
|
|
105
|
+
wasm:(_,{i32ify,t,makeString,builtin,internalThrow})=>eval("[[32,0],[33,4],[32,1],[34,5],[34,6],[65,7],[71],[4,64],[32,4],[183],[32,5],[16,builtin('__Porffor_object_underlying')],[34,7],[33,5],[33,4],[11],[32,4],[69],[4,64],...internalThrow(_,'TypeError',`Cannot get property of null`),[26],[11],[32,2],[32,3],[16,builtin('__Porffor_object_hash')],[33,8],[32,4],[32,5],[32,2],[32,3],[32,8],[65,1],[16,builtin('__Porffor_object_lookup')],[34,9],[65,-1],[70],[4,64],[32,6],[65,7],[70],[4,64],[32,4],[32,4],[40,0,4],[33,4],[45,0,3],[34,5],[69],[4,64],[16,builtin('#get___Object_prototype')],[33,4],[65,7],[33,5],[11],[5],[32,6],[65,1],[16,builtin('__Porffor_object_getHiddenPrototype')],[34,7],[33,5],[33,4],[11],[32,8],[65,593337848],[70],[4,64],[32,2],[32,3],...i32ify(makeString(_,\"__proto__\",1)),[65,195],[16,builtin('__Porffor_strcmp')],[4,64],[32,4],[184],[32,5],[15],[26],[11],[11],[32,5],[65,7],[71],[4,64],[32,4],[183],[32,5],[16,builtin('__Porffor_object_underlying')],[34,7],[33,5],[33,4],[11],[32,4],[33,10],[32,5],[33,11],[3,64],[65,1],[4,64],[32,4],[32,5],[32,2],[32,3],[32,8],[65,1],[16,builtin('__Porffor_object_lookup')],[34,9],[65,-1],[71],[4,64],[12,1],[26],[11],[32,5],[65,7],[70],[4,64],[32,4],[32,4],[40,0,4],[33,4],[45,0,3],[34,5],[69],[4,64],[16,builtin('#get___Object_prototype')],[33,4],[65,7],[33,5],[11],[5],[32,4],[32,5],[16,builtin('__Porffor_object_getPrototype')],[34,7],[33,5],[33,4],[11],[32,5],[65,7],[71],[4,64],[32,4],[183],[32,5],[16,builtin('__Porffor_object_underlying')],[34,7],[33,5],[33,4],[11],[32,4],[33,12],[32,5],[33,13],[2,127],...t([0],()=>[[32,13],[69],[4,64],[65,1],[12,1],[11]]),[32,13],[65,7],[70],[4,64],[32,12],[69],[12,1],[11],[65,0],[11],[32,4],[32,10],[70],[114],[4,64],[12,1],[26],[11],[32,4],[33,10],[32,5],[33,11],[12,1],[11],[11],[32,9],[65,-1],[70],[4,64],[65,0],[183],[65,0],[15],[26],[11],[11],[32,9],[47,0,16],[34,14],[65,1],[113],[4,64],[32,9],[65,1],[16,builtin('__Porffor_object_accessorGet')],[33,7],[34,15],[69],[4,64],[65,0],[183],[65,0],[15],[26],[11],[32,15],[33,18],[65,0],[65,0],[65,0],[33,19],[183],[32,19],[32,0],[34,16],[32,1],[34,17],[33,19],[183],[32,19],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,18],[17,18,0],[34,7],[15],[26],[11],[32,9],[43,0,8],[32,14],[65,8],[118],[15]]"),
|
|
106
106
|
params:[127,127,127,127],typedParams:1,returns:[124,127],jsLength:2,
|
|
107
|
-
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["
|
|
107
|
+
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["_obj","_obj#type","key","key#type","obj","obj#type","trueType","#last_type","hash","entryPtr","lastProto","lastProto#type","#logicinner_tmp","#typeswitch_tmp1","tail","get","#call_val","#call_type","#indirect_2_callee","#swap"],
|
|
108
108
|
table:1,usesTag:1
|
|
109
109
|
}
|
|
110
110
|
x.__Porffor_object_get_withHash={
|
|
111
|
-
wasm:(_,{t,builtin,internalThrow})=>eval("[[32,1],[34,
|
|
111
|
+
wasm:(_,{t,builtin,internalThrow})=>eval("[[32,0],[33,6],[32,1],[34,7],[34,8],[65,7],[71],[4,64],[32,6],[183],[32,7],[16,builtin('__Porffor_object_underlying')],[34,9],[33,7],[33,6],[11],[32,6],[69],[4,64],...internalThrow(_,'TypeError',`Cannot get property of null`),[26],[11],[32,6],[32,7],[32,2],[32,3],[32,4],[65,1],[16,builtin('__Porffor_object_lookup')],[34,10],[65,-1],[70],[4,64],[32,8],[65,7],[70],[4,64],[32,6],[32,6],[40,0,4],[33,6],[45,0,3],[34,7],[69],[4,64],[16,builtin('#get___Object_prototype')],[33,6],[65,7],[33,7],[11],[5],[32,8],[65,1],[16,builtin('__Porffor_object_getHiddenPrototype')],[34,9],[33,7],[33,6],[11],[32,7],[65,7],[71],[4,64],[32,6],[183],[32,7],[16,builtin('__Porffor_object_underlying')],[34,9],[33,7],[33,6],[11],[32,6],[33,11],[32,7],[33,12],[3,64],[65,1],[4,64],[32,6],[32,7],[32,2],[32,3],[32,4],[65,1],[16,builtin('__Porffor_object_lookup')],[34,10],[65,-1],[71],[4,64],[12,1],[26],[11],[32,7],[65,7],[70],[4,64],[32,6],[32,6],[40,0,4],[33,6],[45,0,3],[34,7],[69],[4,64],[16,builtin('#get___Object_prototype')],[33,6],[65,7],[33,7],[11],[5],[32,6],[32,7],[16,builtin('__Porffor_object_getPrototype')],[34,9],[33,7],[33,6],[11],[32,7],[65,7],[71],[4,64],[32,6],[183],[32,7],[16,builtin('__Porffor_object_underlying')],[34,9],[33,7],[33,6],[11],[32,6],[33,13],[32,7],[33,14],[2,127],...t([0],()=>[[32,14],[69],[4,64],[65,1],[12,1],[11]]),[32,14],[65,7],[70],[4,64],[32,13],[69],[12,1],[11],[65,0],[11],[32,6],[32,11],[70],[114],[4,64],[12,1],[26],[11],[32,6],[33,11],[32,7],[33,12],[12,1],[11],[11],[32,10],[65,-1],[70],[4,64],[65,0],[183],[65,0],[15],[26],[11],[11],[32,10],[47,0,16],[34,15],[65,1],[113],[4,64],[32,10],[65,1],[16,builtin('__Porffor_object_accessorGet')],[33,9],[34,16],[69],[4,64],[65,0],[183],[65,0],[15],[26],[11],[32,16],[33,19],[65,0],[65,0],[65,0],[33,20],[183],[32,20],[32,0],[34,17],[32,1],[34,18],[33,20],[183],[32,20],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,19],[17,18,0],[34,9],[15],[26],[11],[32,10],[43,0,8],[32,15],[65,8],[118],[15]]"),
|
|
112
112
|
params:[127,127,127,127,127,127],typedParams:1,returns:[124,127],jsLength:3,
|
|
113
|
-
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["
|
|
113
|
+
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["_obj","_obj#type","key","key#type","hash","hash#type","obj","obj#type","trueType","#last_type","entryPtr","lastProto","lastProto#type","#logicinner_tmp","#typeswitch_tmp1","tail","get","#call_val","#call_type","#indirect_3_callee","#swap"],
|
|
114
114
|
table:1,usesTag:1
|
|
115
115
|
}
|
|
116
116
|
x.__Porffor_object_set={
|
|
117
|
-
wasm:(_,{i32ify,t,makeString,builtin,internalThrow})=>eval("[[32,1],[65,7],[71],[4,64],[32,
|
|
117
|
+
wasm:(_,{i32ify,t,makeString,builtin,internalThrow})=>eval("[[32,0],[33,6],[32,1],[34,7],[65,7],[71],[4,64],[32,6],[183],[32,7],[16,builtin('__Porffor_object_underlying')],[34,8],[33,7],[33,6],[32,7],[65,7],[71],[4,64],[32,4],[32,5],[15],[26],[11],[11],[32,6],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property of null`),[26],[11],[32,2],[32,3],[16,builtin('__Porffor_object_hash')],[33,9],[32,6],[32,7],[32,2],[32,3],[32,9],[65,1],[16,builtin('__Porffor_object_lookup')],[34,10],[65,-1],[70],[4,64],[32,9],[65,593337848],[70],[4,64],[32,2],[32,3],...i32ify(makeString(_,\"__proto__\",1)),[65,195],[16,builtin('__Porffor_strcmp')],[4,64],[32,6],[32,7],[32,4],[252,2],[32,5],[16,builtin('__Porffor_object_setPrototype')],[32,4],[32,5],[15],[26],[11],[11],[32,6],[32,7],[16,builtin('__Porffor_object_getPrototype')],[34,8],[33,13],[34,12],[33,14],[32,13],[33,15],[2,127],...t([0],()=>[[32,15],[69],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,15],[65,7],[70],[4,64],[32,14],[69],[12,1],[11]]),[65,0],[11],[69],[4,64],[32,13],[65,7],[71],[4,64],[32,12],[183],[32,13],[16,builtin('__Porffor_object_underlying')],[34,8],[33,13],[33,12],[11],[32,12],[33,16],[32,13],[33,17],[3,64],[65,1],[4,64],[32,12],[32,13],[32,2],[32,3],[32,9],[65,1],[16,builtin('__Porffor_object_lookup')],[34,10],[65,-1],[71],[4,64],[12,1],[26],[11],[32,12],[32,13],[16,builtin('__Porffor_object_getPrototype')],[34,8],[33,13],[33,12],[32,13],[65,7],[71],[4,64],[32,12],[183],[32,13],[16,builtin('__Porffor_object_underlying')],[34,8],[33,13],[33,12],[11],[32,12],[33,14],[32,13],[33,15],[2,127],...t([0],()=>[[32,15],[69],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,15],[65,7],[70],[4,64],[32,14],[69],[12,1],[11]]),[65,0],[11],[32,12],[32,16],[70],[114],[4,64],[12,1],[26],[11],[32,12],[33,16],[32,13],[33,17],[12,1],[11],[11],[32,10],[65,-1],[71],[4,64],[32,10],[47,0,16],[34,18],[65,1],[113],[4,64],[32,10],[65,1],[16,builtin('__Porffor_object_accessorSet')],[33,8],[34,19],[69],[4,64],[32,4],[32,5],[15],[26],[11],[32,19],[33,22],[65,1],[65,0],[65,0],[33,23],[183],[32,23],[32,0],[34,20],[32,1],[34,21],[33,23],[183],[32,23],[32,4],[32,5],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,22],[17,18,0],[33,8],[252,2],[26],[32,4],[32,5],[15],[26],[11],[11],[11],[32,6],[32,7],[16,builtin('__Porffor_object_isInextensible')],[4,64],[32,4],[32,5],[15],[26],[11],[32,6],[47,0,0],[33,24],[32,6],[32,24],[65,1],[106],[59,0,0],[32,6],[65,8],[106],[32,24],[65,18],[108],[106],[34,10],[65,1],[32,2],[32,3],[32,9],[65,1],[16,builtin('__Porffor_object_writeKey')],[65,14],[33,11],[5],[32,10],[47,0,16],[34,18],[65,1],[113],[4,64],[32,10],[65,1],[16,builtin('__Porffor_object_accessorSet')],[33,8],[34,19],[69],[4,64],[32,4],[32,5],[15],[26],[11],[32,19],[33,25],[65,1],[65,0],[65,0],[33,23],[183],[32,23],[32,0],[34,20],[32,1],[34,21],[33,23],[183],[32,23],[32,4],[32,5],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,25],[17,18,0],[33,8],[252,2],[26],[32,4],[32,5],[15],[26],[11],[32,18],[65,8],[113],[69],[4,64],[32,4],[32,5],[15],[26],[11],[32,18],[65,255],[113],[33,11],[11],[32,10],[32,4],[57,0,8],[32,10],[32,11],[32,5],[65,8],[116],[106],[59,0,16],[32,4],[32,5],[15]]"),
|
|
118
118
|
params:[127,127,127,127,124,127],typedParams:1,returns:[124,127],jsLength:3,
|
|
119
|
-
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["
|
|
119
|
+
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["_obj","_obj#type","key","key#type","value","value#type","obj","obj#type","#last_type","hash","entryPtr","flags","proto","proto#type","#logicinner_tmp","#typeswitch_tmp1","lastProto","lastProto#type","tail","set","#call_val","#call_type","#indirect_4_callee","#swap","size","#indirect_5_callee"],
|
|
120
120
|
table:1,usesTag:1
|
|
121
121
|
}
|
|
122
122
|
x.__Porffor_object_set_withHash={
|
|
123
|
-
wasm:(_,{t,builtin,internalThrow})=>eval("[[32,1],[65,7],[71],[4,64],[32,
|
|
123
|
+
wasm:(_,{t,builtin,internalThrow})=>eval("[[32,0],[33,8],[32,1],[34,9],[65,7],[71],[4,64],[32,8],[183],[32,9],[16,builtin('__Porffor_object_underlying')],[34,10],[33,9],[33,8],[32,9],[65,7],[71],[4,64],[32,4],[32,5],[15],[26],[11],[11],[32,8],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property of null`),[26],[11],[32,8],[32,9],[32,2],[32,3],[32,6],[65,1],[16,builtin('__Porffor_object_lookup')],[34,11],[65,-1],[70],[4,64],[32,8],[32,9],[16,builtin('__Porffor_object_getPrototype')],[34,10],[33,14],[34,13],[33,15],[32,14],[33,16],[2,127],...t([0],()=>[[32,16],[69],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,16],[65,7],[70],[4,64],[32,15],[69],[12,1],[11]]),[65,0],[11],[69],[4,64],[32,14],[65,7],[71],[4,64],[32,13],[183],[32,14],[16,builtin('__Porffor_object_underlying')],[34,10],[33,14],[33,13],[11],[32,13],[33,17],[32,14],[33,18],[3,64],[65,1],[4,64],[32,13],[32,14],[32,2],[32,3],[32,6],[65,1],[16,builtin('__Porffor_object_lookup')],[34,11],[65,-1],[71],[4,64],[12,1],[26],[11],[32,13],[32,14],[16,builtin('__Porffor_object_getPrototype')],[34,10],[33,14],[33,13],[32,14],[65,7],[71],[4,64],[32,13],[183],[32,14],[16,builtin('__Porffor_object_underlying')],[34,10],[33,14],[33,13],[11],[32,13],[33,15],[32,14],[33,16],[2,127],...t([0],()=>[[32,16],[69],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,16],[65,7],[70],[4,64],[32,15],[69],[12,1],[11]]),[65,0],[11],[32,13],[32,17],[70],[114],[4,64],[12,1],[26],[11],[32,13],[33,17],[32,14],[33,18],[12,1],[11],[11],[32,11],[65,-1],[71],[4,64],[32,11],[47,0,16],[34,19],[65,1],[113],[4,64],[32,11],[65,1],[16,builtin('__Porffor_object_accessorSet')],[33,10],[34,20],[69],[4,64],[32,4],[32,5],[15],[26],[11],[32,20],[33,23],[65,1],[65,0],[65,0],[33,24],[183],[32,24],[32,0],[34,21],[32,1],[34,22],[33,24],[183],[32,24],[32,4],[32,5],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,23],[17,18,0],[33,10],[252,2],[26],[32,4],[32,5],[15],[26],[11],[11],[11],[32,8],[32,9],[16,builtin('__Porffor_object_isInextensible')],[4,64],[32,4],[32,5],[15],[26],[11],[32,8],[47,0,0],[33,25],[32,8],[32,25],[65,1],[106],[59,0,0],[32,8],[65,8],[106],[32,25],[65,18],[108],[106],[34,11],[65,1],[32,2],[32,3],[32,6],[65,1],[16,builtin('__Porffor_object_writeKey')],[65,14],[33,12],[5],[32,11],[47,0,16],[34,19],[65,1],[113],[4,64],[32,11],[65,1],[16,builtin('__Porffor_object_accessorSet')],[33,10],[34,20],[69],[4,64],[32,4],[32,5],[15],[26],[11],[32,20],[33,26],[65,1],[65,0],[65,0],[33,24],[183],[32,24],[32,0],[34,21],[32,1],[34,22],[33,24],[183],[32,24],[32,4],[32,5],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,26],[17,18,0],[33,10],[252,2],[26],[32,4],[32,5],[15],[26],[11],[32,19],[65,8],[113],[69],[4,64],[32,4],[32,5],[15],[26],[11],[32,19],[65,255],[113],[33,12],[11],[32,11],[32,4],[57,0,8],[32,11],[32,12],[32,5],[65,8],[116],[106],[59,0,16],[32,4],[32,5],[15]]"),
|
|
124
124
|
params:[127,127,127,127,124,127,127,127],typedParams:1,returns:[124,127],jsLength:4,
|
|
125
|
-
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["
|
|
125
|
+
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["_obj","_obj#type","key","key#type","value","value#type","hash","hash#type","obj","obj#type","#last_type","entryPtr","flags","proto","proto#type","#logicinner_tmp","#typeswitch_tmp1","lastProto","lastProto#type","tail","set","#call_val","#call_type","#indirect_6_callee","#swap","size","#indirect_7_callee"],
|
|
126
126
|
table:1,usesTag:1
|
|
127
127
|
}
|
|
128
128
|
x.__Porffor_object_setStrict={
|
|
129
|
-
wasm:(_,{i32ify,t,makeString,builtin,internalThrow})=>eval("[[32,0],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property of null`),[26],[11],[32,
|
|
129
|
+
wasm:(_,{i32ify,t,makeString,builtin,internalThrow})=>eval("[[32,0],[33,6],[32,1],[33,7],[32,6],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property of null`),[26],[11],[32,7],[65,7],[71],[4,64],[32,6],[183],[32,7],[16,builtin('__Porffor_object_underlying')],[34,8],[33,7],[33,6],[32,7],[65,7],[71],[4,64],[32,4],[32,5],[15],[26],[11],[11],[32,2],[32,3],[16,builtin('__Porffor_object_hash')],[33,9],[32,6],[32,7],[32,2],[32,3],[32,9],[65,1],[16,builtin('__Porffor_object_lookup')],[34,10],[65,-1],[70],[4,64],[32,9],[65,593337848],[70],[4,64],[32,2],[32,3],...i32ify(makeString(_,\"__proto__\",1)),[65,195],[16,builtin('__Porffor_strcmp')],[4,64],[32,6],[32,7],[32,4],[252,2],[32,5],[16,builtin('__Porffor_object_setPrototype')],[32,4],[32,5],[15],[26],[11],[11],[32,6],[32,7],[16,builtin('__Porffor_object_getPrototype')],[34,8],[33,13],[34,12],[33,14],[32,13],[33,15],[2,127],...t([0],()=>[[32,15],[69],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,15],[65,7],[70],[4,64],[32,14],[69],[12,1],[11]]),[65,0],[11],[69],[4,64],[32,13],[65,7],[71],[4,64],[32,12],[183],[32,13],[16,builtin('__Porffor_object_underlying')],[34,8],[33,13],[33,12],[11],[32,12],[33,16],[32,13],[33,17],[3,64],[65,1],[4,64],[32,12],[32,13],[32,2],[32,3],[32,9],[65,1],[16,builtin('__Porffor_object_lookup')],[34,10],[65,-1],[71],[4,64],[12,1],[26],[11],[32,12],[32,13],[16,builtin('__Porffor_object_getPrototype')],[34,8],[33,13],[33,12],[32,13],[65,7],[71],[4,64],[32,12],[183],[32,13],[16,builtin('__Porffor_object_underlying')],[34,8],[33,13],[33,12],[11],[32,12],[33,14],[32,13],[33,15],[2,127],...t([0],()=>[[32,15],[69],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,15],[65,7],[70],[4,64],[32,14],[69],[12,1],[11]]),[65,0],[11],[32,12],[32,16],[70],[114],[4,64],[12,1],[26],[11],[32,12],[33,16],[32,13],[33,17],[12,1],[11],[11],[32,10],[65,-1],[71],[4,64],[32,10],[47,0,16],[34,18],[65,1],[113],[4,64],[32,10],[65,1],[16,builtin('__Porffor_object_accessorSet')],[33,8],[34,19],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property with only getter`),[26],[11],[32,19],[33,22],[65,1],[65,0],[65,0],[33,23],[183],[32,23],[32,0],[34,20],[32,1],[34,21],[33,23],[183],[32,23],[32,4],[32,5],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,22],[17,18,0],[33,8],[252,2],[26],[32,4],[32,5],[15],[26],[11],[11],[11],[32,6],[32,7],[16,builtin('__Porffor_object_isInextensible')],[4,64],...internalThrow(_,'TypeError',`Cannot add property to inextensible object`),[26],[11],[32,6],[47,0,0],[33,24],[32,6],[32,24],[65,1],[106],[59,0,0],[32,6],[65,8],[106],[32,24],[65,18],[108],[106],[34,10],[65,1],[32,2],[32,3],[32,9],[65,1],[16,builtin('__Porffor_object_writeKey')],[65,14],[33,11],[5],[32,10],[47,0,16],[34,18],[65,1],[113],[4,64],[32,10],[65,1],[16,builtin('__Porffor_object_accessorSet')],[33,8],[34,19],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property with only getter`),[26],[11],[32,19],[33,25],[65,1],[65,0],[65,0],[33,23],[183],[32,23],[32,0],[34,20],[32,1],[34,21],[33,23],[183],[32,23],[32,4],[32,5],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,25],[17,18,0],[33,8],[252,2],[26],[32,4],[32,5],[15],[26],[11],[32,18],[65,8],[113],[69],[4,64],...internalThrow(_,'TypeError',`Cannot modify read-only property of object`),[26],[11],[32,18],[65,255],[113],[33,11],[11],[32,10],[32,4],[57,0,8],[32,10],[32,11],[32,5],[65,8],[116],[106],[59,0,16],[32,4],[32,5],[15]]"),
|
|
130
130
|
params:[127,127,127,127,124,127],typedParams:1,returns:[124,127],jsLength:3,
|
|
131
|
-
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["
|
|
131
|
+
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["_obj","_obj#type","key","key#type","value","value#type","obj","obj#type","#last_type","hash","entryPtr","flags","proto","proto#type","#logicinner_tmp","#typeswitch_tmp1","lastProto","lastProto#type","tail","set","#call_val","#call_type","#indirect_8_callee","#swap","size","#indirect_9_callee"],
|
|
132
132
|
table:1,usesTag:1
|
|
133
133
|
}
|
|
134
134
|
x.__Porffor_object_setStrict_withHash={
|
|
135
|
-
wasm:(_,{t,builtin,internalThrow})=>eval("[[32,0],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property of null`),[26],[11],[32,
|
|
135
|
+
wasm:(_,{t,builtin,internalThrow})=>eval("[[32,0],[33,8],[32,1],[33,9],[32,8],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property of null`),[26],[11],[32,9],[65,7],[71],[4,64],[32,8],[183],[32,9],[16,builtin('__Porffor_object_underlying')],[34,10],[33,9],[33,8],[32,9],[65,7],[71],[4,64],[32,4],[32,5],[15],[26],[11],[11],[32,8],[32,9],[32,2],[32,3],[32,6],[65,1],[16,builtin('__Porffor_object_lookup')],[34,11],[65,-1],[70],[4,64],[32,8],[32,9],[16,builtin('__Porffor_object_getPrototype')],[34,10],[33,14],[34,13],[33,15],[32,14],[33,16],[2,127],...t([0],()=>[[32,16],[69],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,16],[65,7],[70],[4,64],[32,15],[69],[12,1],[11]]),[65,0],[11],[69],[4,64],[32,14],[65,7],[71],[4,64],[32,13],[183],[32,14],[16,builtin('__Porffor_object_underlying')],[34,10],[33,14],[33,13],[11],[32,13],[33,17],[32,14],[33,18],[3,64],[65,1],[4,64],[32,13],[32,14],[32,2],[32,3],[32,6],[65,1],[16,builtin('__Porffor_object_lookup')],[34,11],[65,-1],[71],[4,64],[12,1],[26],[11],[32,13],[32,14],[16,builtin('__Porffor_object_getPrototype')],[34,10],[33,14],[33,13],[32,14],[65,7],[71],[4,64],[32,13],[183],[32,14],[16,builtin('__Porffor_object_underlying')],[34,10],[33,14],[33,13],[11],[32,13],[33,15],[32,14],[33,16],[2,127],...t([0],()=>[[32,16],[69],[4,64],[65,1],[12,1],[11]]),...t([7],()=>[[32,16],[65,7],[70],[4,64],[32,15],[69],[12,1],[11]]),[65,0],[11],[32,13],[32,17],[70],[114],[4,64],[12,1],[26],[11],[32,13],[33,17],[32,14],[33,18],[12,1],[11],[11],[32,11],[65,-1],[71],[4,64],[32,11],[47,0,16],[34,19],[65,1],[113],[4,64],[32,11],[65,1],[16,builtin('__Porffor_object_accessorSet')],[33,10],[34,20],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property with only getter`),[26],[11],[32,20],[33,23],[65,1],[65,0],[65,0],[33,24],[183],[32,24],[32,0],[34,21],[32,1],[34,22],[33,24],[183],[32,24],[32,4],[32,5],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,23],[17,18,0],[33,10],[252,2],[26],[32,4],[32,5],[15],[26],[11],[11],[11],[32,8],[32,9],[16,builtin('__Porffor_object_isInextensible')],[4,64],...internalThrow(_,'TypeError',`Cannot add property to inextensible object`),[26],[11],[32,8],[47,0,0],[33,25],[32,8],[32,25],[65,1],[106],[59,0,0],[32,8],[65,8],[106],[32,25],[65,18],[108],[106],[34,11],[65,1],[32,2],[32,3],[32,6],[65,1],[16,builtin('__Porffor_object_writeKey')],[65,14],[33,12],[5],[32,11],[47,0,16],[34,19],[65,1],[113],[4,64],[32,11],[65,1],[16,builtin('__Porffor_object_accessorSet')],[33,10],[34,20],[69],[4,64],...internalThrow(_,'TypeError',`Cannot set property with only getter`),[26],[11],[32,20],[33,26],[65,1],[65,0],[65,0],[33,24],[183],[32,24],[32,0],[34,21],[32,1],[34,22],[33,24],[183],[32,24],[32,4],[32,5],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[65,0],[183],[65,0],[32,26],[17,18,0],[33,10],[252,2],[26],[32,4],[32,5],[15],[26],[11],[32,19],[65,8],[113],[69],[4,64],...internalThrow(_,'TypeError',`Cannot modify read-only property of object`),[26],[11],[32,19],[65,255],[113],[33,12],[11],[32,11],[32,4],[57,0,8],[32,11],[32,12],[32,5],[65,8],[116],[106],[59,0,16],[32,4],[32,5],[15]]"),
|
|
136
136
|
params:[127,127,127,127,124,127,127,127],typedParams:1,returns:[124,127],jsLength:4,
|
|
137
|
-
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["
|
|
137
|
+
locals:[127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127],localNames:["_obj","_obj#type","key","key#type","value","value#type","hash","hash#type","obj","obj#type","#last_type","entryPtr","flags","proto","proto#type","#logicinner_tmp","#typeswitch_tmp1","lastProto","lastProto#type","tail","set","#call_val","#call_type","#indirect_10_callee","#swap","size","#indirect_11_callee"],
|
|
138
138
|
table:1,usesTag:1
|
|
139
139
|
}
|
|
140
140
|
x.__Porffor_object_define={
|
|
@@ -363,7 +363,7 @@ params:[127,127],typedParams:1,returns:[127,127],jsLength:0,
|
|
|
363
363
|
locals:[127],localNames:["_this","_this#type","#last_type"]
|
|
364
364
|
}
|
|
365
365
|
x.Array={
|
|
366
|
-
wasm:(_,{builtin,internalThrow})=>eval("[[32,4],[252,3],[40,1,0],[184],[34,6],[68,0],[97],[4,64],[16,builtin('__Porffor_allocate')],[183],[34,7],[15],[26],[11],[32,6],[68,1],[97],[4,64],[68,0],[33,11],[32,4],[33,10],[32,11],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,13],[43,0,4],[32,13],[45,0,12],[34,12],[33,9],[33,8],[32,9],[184],[68,1],[97],[4,64],[68,0],[33,16],[32,4],[33,15],[32,16],[252,3],[65,9],[108],[32,15],[252,3],[106],[34,13],[43,0,4],[32,13],[45,0,12],[33,12],[34,14],[68,0],[99],[32,14],[68,4294967295],[100],[114],[32,14],[16,builtin('__Number_isInteger')],[68,0],[97],[114],[4,64],...internalThrow(_,'RangeError',`Invalid array length`),[26],[11],[16,builtin('__Porffor_allocate')],[183],[34,7],[252,3],[32,
|
|
366
|
+
wasm:(_,{builtin,internalThrow})=>eval("[[32,4],[252,3],[40,1,0],[184],[34,6],[68,0],[97],[4,64],[16,builtin('__Porffor_allocate')],[183],[34,7],[15],[26],[11],[32,6],[68,1],[97],[4,64],[68,0],[33,11],[32,4],[33,10],[32,11],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,13],[43,0,4],[32,13],[45,0,12],[34,12],[33,9],[33,8],[32,9],[184],[68,1],[97],[4,64],[68,0],[33,16],[32,4],[33,15],[32,16],[252,3],[65,9],[108],[32,15],[252,3],[106],[34,13],[43,0,4],[32,13],[45,0,12],[33,12],[34,14],[68,0],[99],[32,14],[68,4294967295],[100],[114],[32,14],[16,builtin('__Number_isInteger')],[68,0],[97],[114],[4,64],...internalThrow(_,'RangeError',`Invalid array length`),[26],[11],[16,builtin('__Porffor_allocate')],[183],[34,7],[252,3],[32,14],[252,3],[54,1,0],[32,7],[15],[26],[11],[11],[32,4],[15]]"),
|
|
367
367
|
params:[124,127,124,127,124,127],typedParams:1,returns:[124],returnType:72,jsLength:1,
|
|
368
368
|
locals:[124,124,124,127,124,124,127,127,124,124,124],localNames:["#newtarget","#newtarget#type","#this","#this#type","args","args#type","argsLen","out","arg","arg#type","#member_obj_12","#member_prop_12","#last_type","#loadArray_offset","n","#member_obj_13","#member_prop_13"],
|
|
369
369
|
constr:1,hasRestArgument:1,usesTag:1
|
package/compiler/codegen.js
CHANGED
|
@@ -2455,7 +2455,7 @@ const generateCall = (scope, decl, _global, _name, unusedValue = false) => {
|
|
|
2455
2455
|
scope.usesImports = true;
|
|
2456
2456
|
} else if (name in builtinFuncs) {
|
|
2457
2457
|
if (decl._new && !builtinFuncs[name].constr) return internalThrow(scope, 'TypeError', `${unhackName(name)} is not a constructor`, true);
|
|
2458
|
-
if (builtinFuncs[name].comptime && !decl._noComptime) return builtinFuncs[name].comptime(scope, decl, { generate, getNodeType, knownTypeWithGuess, makeString, printStaticStr });
|
|
2458
|
+
if (builtinFuncs[name].comptime && !decl._noComptime) return builtinFuncs[name].comptime(scope, decl, { generate, getNodeType, knownType, knownTypeWithGuess, makeString, printStaticStr });
|
|
2459
2459
|
|
|
2460
2460
|
includeBuiltin(scope, name);
|
|
2461
2461
|
idx = funcIndex[name];
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/runtime/index.js
CHANGED
package/foo.cjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// class Foo {
|
|
2
|
-
// constructor() {
|
|
3
|
-
// this.property = 'wow';
|
|
4
|
-
// this.baz = 42;
|
|
5
|
-
// console.log('baz got', this.baz);
|
|
6
|
-
// this.bar();
|
|
7
|
-
// }
|
|
8
|
-
|
|
9
|
-
// bar() {
|
|
10
|
-
// console.log('bar', this);
|
|
11
|
-
// }
|
|
12
|
-
|
|
13
|
-
// get baz() {
|
|
14
|
-
// console.log('baz getter', this);
|
|
15
|
-
// return 1337;
|
|
16
|
-
// }
|
|
17
|
-
|
|
18
|
-
// set baz(value) {
|
|
19
|
-
// console.log('baz setter', this, value);
|
|
20
|
-
// }
|
|
21
|
-
// }
|
|
22
|
-
|
|
23
|
-
// new Foo();
|
|
24
|
-
|
|
25
|
-
const arr = new Array(1000);
|
|
26
|
-
Object.defineProperty(arr, 'wow', {
|
|
27
|
-
get() {
|
|
28
|
-
console.log('get', this);
|
|
29
|
-
return 1337;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
console.log('got', arr.wow);
|