@swc/wasm 1.2.130 → 1.2.134

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/wasm.js +20 -20
  3. package/wasm_bg.wasm +0 -0
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "강동윤 <kdy1997.dev@gmail.com>"
5
5
  ],
6
6
  "description": "wasm module for swc",
7
- "version": "1.2.130",
7
+ "version": "1.2.134",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm.js CHANGED
@@ -36,6 +36,18 @@ function addHeapObject(obj) {
36
36
 
37
37
  function getObject(idx) { return heap[idx]; }
38
38
 
39
+ function dropObject(idx) {
40
+ if (idx < 36) return;
41
+ heap[idx] = heap_next;
42
+ heap_next = idx;
43
+ }
44
+
45
+ function takeObject(idx) {
46
+ const ret = getObject(idx);
47
+ dropObject(idx);
48
+ return ret;
49
+ }
50
+
39
51
  let WASM_VECTOR_LEN = 0;
40
52
 
41
53
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -99,18 +111,6 @@ function getInt32Memory0() {
99
111
  return cachegetInt32Memory0;
100
112
  }
101
113
 
102
- function dropObject(idx) {
103
- if (idx < 36) return;
104
- heap[idx] = heap_next;
105
- heap_next = idx;
106
- }
107
-
108
- function takeObject(idx) {
109
- const ret = getObject(idx);
110
- dropObject(idx);
111
- return ret;
112
- }
113
-
114
114
  function isLikeNone(x) {
115
115
  return x === undefined || x === null;
116
116
  }
@@ -180,11 +180,15 @@ function handleError(f, args) {
180
180
  }
181
181
  }
182
182
 
183
- module.exports.__wbindgen_json_parse = function(arg0, arg1) {
184
- var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
183
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
184
+ var ret = getStringFromWasm0(arg0, arg1);
185
185
  return addHeapObject(ret);
186
186
  };
187
187
 
188
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
189
+ takeObject(arg0);
190
+ };
191
+
188
192
  module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
189
193
  const obj = getObject(arg1);
190
194
  var ret = JSON.stringify(obj === undefined ? null : obj);
@@ -194,12 +198,8 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
194
198
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
195
199
  };
196
200
 
197
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
198
- takeObject(arg0);
199
- };
200
-
201
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
202
- var ret = getStringFromWasm0(arg0, arg1);
201
+ module.exports.__wbindgen_json_parse = function(arg0, arg1) {
202
+ var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
203
203
  return addHeapObject(ret);
204
204
  };
205
205
 
package/wasm_bg.wasm CHANGED
Binary file