porffor 0.48.3 → 0.48.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.
@@ -37,9 +37,5 @@ export const WeakMap = function (iterable: any): WeakMap {
37
37
  return out;
38
38
  };
39
39
 
40
- export const __WeakMap_prototype_toString = (_this: WeakMap) => {
41
- const out: bytestring = '[object WeakMap]';
42
- return out;
43
- };
44
-
40
+ export const __WeakMap_prototype_toString = (_this: WeakMap) => '[object WeakMap]';
45
41
  export const __WeakMap_prototype_toLocaleString = (_this: WeakMap) => __WeakMap_prototype_toString(_this);
@@ -30,9 +30,5 @@ export const WeakSet = function (iterable: any): WeakSet {
30
30
  return out;
31
31
  };
32
32
 
33
- export const __WeakSet_prototype_toString = (_this: WeakSet) => {
34
- const out: bytestring = '[object WeakSet]';
35
- return out;
36
- };
37
-
33
+ export const __WeakSet_prototype_toString = (_this: WeakSet) => '[object WeakSet]';
38
34
  export const __WeakSet_prototype_toLocaleString = (_this: WeakSet) => __WeakSet_prototype_toString(_this);
@@ -68,21 +68,6 @@ for (let i = 0; i < importedFuncs.length; i++) {
68
68
  importedFuncs[f.name] = i;
69
69
  }
70
70
 
71
- const printStaticStr = str => {
72
- const out = [];
73
-
74
- for (let i = 0; i < str.length; i++) {
75
- out.push(
76
- // ...number(str.charCodeAt(i)),
77
- ...number(str.charCodeAt(i), Valtype.i32),
78
- Opcodes.i32_from_u,
79
- [ Opcodes.call, importedFuncs.printChar ]
80
- );
81
- }
82
-
83
- return out;
84
- };
85
-
86
71
  export const UNDEFINED = 0;
87
72
  export const NULL = 0;
88
73
 
@@ -106,6 +91,7 @@ export const BuiltinVars = function(ctx) {
106
91
  this.__performance_timeOrigin = [
107
92
  [ Opcodes.call, importedFuncs.timeOrigin ]
108
93
  ];
94
+ this.__performance_timeOrigin.usesImports = true;
109
95
 
110
96
  this.__Uint8Array_BYTES_PER_ELEMENT = number(1);
111
97
  this.__Int8Array_BYTES_PER_ELEMENT = number(1);
@@ -849,6 +835,7 @@ export const BuiltinFuncs = function() {
849
835
  [ Opcodes.call, importedFuncs.time ]
850
836
  ]
851
837
  };
838
+ this.__performance_now.usesImports = true;
852
839
 
853
840
 
854
841
  this.__Porffor_type = {