@swc/wasm 1.2.155 → 1.2.158

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.155",
7
+ "version": "1.2.158",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm.js CHANGED
@@ -36,18 +36,6 @@ 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
-
51
39
  let WASM_VECTOR_LEN = 0;
52
40
 
53
41
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -110,6 +98,18 @@ function getInt32Memory0() {
110
98
  }
111
99
  return cachegetInt32Memory0;
112
100
  }
101
+
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
113
  /**
114
114
  * @param {string} s
115
115
  * @param {any} opts
@@ -156,15 +156,11 @@ module.exports.transformSync = function(s, opts) {
156
156
  return takeObject(ret);
157
157
  };
158
158
 
159
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
160
- var ret = getStringFromWasm0(arg0, arg1);
159
+ module.exports.__wbindgen_json_parse = function(arg0, arg1) {
160
+ var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
161
161
  return addHeapObject(ret);
162
162
  };
163
163
 
164
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
165
- takeObject(arg0);
166
- };
167
-
168
164
  module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
169
165
  const obj = getObject(arg1);
170
166
  var ret = JSON.stringify(obj === undefined ? null : obj);
@@ -174,8 +170,12 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
174
170
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
175
171
  };
176
172
 
177
- module.exports.__wbindgen_json_parse = function(arg0, arg1) {
178
- var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
173
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
174
+ takeObject(arg0);
175
+ };
176
+
177
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
178
+ var ret = getStringFromWasm0(arg0, arg1);
179
179
  return addHeapObject(ret);
180
180
  };
181
181
 
package/wasm_bg.wasm CHANGED
Binary file