@swc/wasm-web 1.2.128 → 1.2.132

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 +19 -19
  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.128",
7
+ "version": "1.2.132",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm.js CHANGED
@@ -34,6 +34,18 @@ function addHeapObject(obj) {
34
34
 
35
35
  function getObject(idx) { return heap[idx]; }
36
36
 
37
+ function dropObject(idx) {
38
+ if (idx < 36) return;
39
+ heap[idx] = heap_next;
40
+ heap_next = idx;
41
+ }
42
+
43
+ function takeObject(idx) {
44
+ const ret = getObject(idx);
45
+ dropObject(idx);
46
+ return ret;
47
+ }
48
+
37
49
  let WASM_VECTOR_LEN = 0;
38
50
 
39
51
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -97,18 +109,6 @@ function getInt32Memory0() {
97
109
  return cachegetInt32Memory0;
98
110
  }
99
111
 
100
- function dropObject(idx) {
101
- if (idx < 36) return;
102
- heap[idx] = heap_next;
103
- heap_next = idx;
104
- }
105
-
106
- function takeObject(idx) {
107
- const ret = getObject(idx);
108
- dropObject(idx);
109
- return ret;
110
- }
111
-
112
112
  function isLikeNone(x) {
113
113
  return x === undefined || x === null;
114
114
  }
@@ -215,10 +215,13 @@ async function init(input) {
215
215
  }
216
216
  const imports = {};
217
217
  imports.wbg = {};
218
- imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
219
- var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
218
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
219
+ var ret = getStringFromWasm0(arg0, arg1);
220
220
  return addHeapObject(ret);
221
221
  };
222
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
223
+ takeObject(arg0);
224
+ };
222
225
  imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
223
226
  const obj = getObject(arg1);
224
227
  var ret = JSON.stringify(obj === undefined ? null : obj);
@@ -227,11 +230,8 @@ async function init(input) {
227
230
  getInt32Memory0()[arg0 / 4 + 1] = len0;
228
231
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
229
232
  };
230
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
231
- takeObject(arg0);
232
- };
233
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
234
- var ret = getStringFromWasm0(arg0, arg1);
233
+ imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
234
+ var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
235
235
  return addHeapObject(ret);
236
236
  };
237
237
  imports.wbg.__wbg_new0_fd3a3a290b25cdac = function() {
package/wasm_bg.wasm CHANGED
Binary file