@swc/wasm-web 1.2.153 → 1.2.156

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.153",
7
+ "version": "1.2.156",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm.js CHANGED
@@ -34,18 +34,6 @@ 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
-
49
37
  let WASM_VECTOR_LEN = 0;
50
38
 
51
39
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -108,6 +96,18 @@ function getInt32Memory0() {
108
96
  }
109
97
  return cachegetInt32Memory0;
110
98
  }
99
+
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
111
  /**
112
112
  * @param {string} s
113
113
  * @param {any} opts
@@ -191,13 +191,10 @@ async function init(input) {
191
191
  }
192
192
  const imports = {};
193
193
  imports.wbg = {};
194
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
195
- var ret = getStringFromWasm0(arg0, arg1);
194
+ imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
195
+ var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
196
196
  return addHeapObject(ret);
197
197
  };
198
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
199
- takeObject(arg0);
200
- };
201
198
  imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
202
199
  const obj = getObject(arg1);
203
200
  var ret = JSON.stringify(obj === undefined ? null : obj);
@@ -206,8 +203,11 @@ async function init(input) {
206
203
  getInt32Memory0()[arg0 / 4 + 1] = len0;
207
204
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
208
205
  };
209
- imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
210
- var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
206
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
207
+ takeObject(arg0);
208
+ };
209
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
210
+ var ret = getStringFromWasm0(arg0, arg1);
211
211
  return addHeapObject(ret);
212
212
  };
213
213
  imports.wbg.__wbg_new0_fd3a3a290b25cdac = function() {
package/wasm_bg.wasm CHANGED
Binary file