swls-wasm 0.3.0 → 0.3.2-alpha.1

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.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "ajuvercr <arthur.vercruysse@outlook.com>"
6
6
  ],
7
- "version": "0.3.0",
7
+ "version": "0.3.2-alpha.1",
8
8
  "files": [
9
9
  "swls_wasm_bg.wasm",
10
10
  "swls_wasm.js",
@@ -17,4 +17,4 @@
17
17
  "./swls_wasm.js",
18
18
  "./snippets/*"
19
19
  ]
20
- }
20
+ }
package/swls_wasm.d.ts CHANGED
@@ -3,6 +3,12 @@
3
3
 
4
4
  /**
5
5
  * A self-contained WASM LSP instance that JS can create.
6
+ *
7
+ * Both directions exchange whole JSON-RPC messages (no `Content-Length` framing):
8
+ * JS calls [`WasmLsp::send`] with a raw message string, and the `post_message_cb`
9
+ * receives raw message strings. Inbound requests/notifications are processed in
10
+ * order by a single consumer task; responses to server-initiated requests are
11
+ * resolved inline so they never queue behind an in-flight handler.
6
12
  */
7
13
  export class WasmLsp {
8
14
  free(): void;
@@ -12,7 +18,7 @@ export class WasmLsp {
12
18
  */
13
19
  constructor(post_message_cb: Function, debug_cb?: Function | null);
14
20
  /**
15
- * Send a message from JS → LSP.
21
+ * Send a message from JS → LSP. `msg` is a raw JSON-RPC message.
16
22
  */
17
23
  send(msg: string): void;
18
24
  }
package/swls_wasm_bg.js CHANGED
@@ -1,5 +1,11 @@
1
1
  /**
2
2
  * A self-contained WASM LSP instance that JS can create.
3
+ *
4
+ * Both directions exchange whole JSON-RPC messages (no `Content-Length` framing):
5
+ * JS calls [`WasmLsp::send`] with a raw message string, and the `post_message_cb`
6
+ * receives raw message strings. Inbound requests/notifications are processed in
7
+ * order by a single consumer task; responses to server-initiated requests are
8
+ * resolved inline so they never queue behind an in-flight handler.
3
9
  */
4
10
  export class WasmLsp {
5
11
  __destroy_into_raw() {
@@ -19,12 +25,12 @@ export class WasmLsp {
19
25
  */
20
26
  constructor(post_message_cb, debug_cb) {
21
27
  const ret = wasm.wasmlsp_new(post_message_cb, isLikeNone(debug_cb) ? 0 : addToExternrefTable0(debug_cb));
22
- this.__wbg_ptr = ret >>> 0;
28
+ this.__wbg_ptr = ret;
23
29
  WasmLspFinalization.register(this, this.__wbg_ptr, this);
24
30
  return this;
25
31
  }
26
32
  /**
27
- * Send a message from JS → LSP.
33
+ * Send a message from JS → LSP. `msg` is a raw JSON-RPC message.
28
34
  * @param {string} msg
29
35
  */
30
36
  send(msg) {
@@ -41,7 +47,7 @@ if (Symbol.dispose) WasmLsp.prototype[Symbol.dispose] = WasmLsp.prototype.free;
41
47
  export function start_wasm_lsp() {
42
48
  wasm.start_wasm_lsp();
43
49
  }
44
- export function __wbg_Error_960c155d3d49e4c2(arg0, arg1) {
50
+ export function __wbg_Error_fdd633d4bb5dd76a(arg0, arg1) {
45
51
  const ret = Error(getStringFromWasm0(arg0, arg1));
46
52
  return ret;
47
53
  }
@@ -52,46 +58,46 @@ export function __wbg_String_8564e559799eccda(arg0, arg1) {
52
58
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
53
59
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
54
60
  }
55
- export function __wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff(arg0) {
61
+ export function __wbg___wbindgen_boolean_get_edaed31a367ce1bd(arg0) {
56
62
  const v = arg0;
57
63
  const ret = typeof(v) === 'boolean' ? v : undefined;
58
64
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
59
65
  }
60
- export function __wbg___wbindgen_debug_string_ab4b34d23d6778bd(arg0, arg1) {
66
+ export function __wbg___wbindgen_debug_string_8a447059637473e2(arg0, arg1) {
61
67
  const ret = debugString(arg1);
62
68
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
63
69
  const len1 = WASM_VECTOR_LEN;
64
70
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
65
71
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
66
72
  }
67
- export function __wbg___wbindgen_is_function_3baa9db1a987f47d(arg0) {
73
+ export function __wbg___wbindgen_is_function_acc5528be2b923f2(arg0) {
68
74
  const ret = typeof(arg0) === 'function';
69
75
  return ret;
70
76
  }
71
- export function __wbg___wbindgen_is_object_63322ec0cd6ea4ef(arg0) {
77
+ export function __wbg___wbindgen_is_object_0beba4a1980d3eea(arg0) {
72
78
  const val = arg0;
73
79
  const ret = typeof(val) === 'object' && val !== null;
74
80
  return ret;
75
81
  }
76
- export function __wbg___wbindgen_is_string_6df3bf7ef1164ed3(arg0) {
82
+ export function __wbg___wbindgen_is_string_1fca8072260dd261(arg0) {
77
83
  const ret = typeof(arg0) === 'string';
78
84
  return ret;
79
85
  }
80
- export function __wbg___wbindgen_is_undefined_29a43b4d42920abd(arg0) {
86
+ export function __wbg___wbindgen_is_undefined_721f8decd50c87a3(arg0) {
81
87
  const ret = arg0 === undefined;
82
88
  return ret;
83
89
  }
84
- export function __wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c(arg0, arg1) {
90
+ export function __wbg___wbindgen_jsval_loose_eq_4b9aba9e5b3c4582(arg0, arg1) {
85
91
  const ret = arg0 == arg1;
86
92
  return ret;
87
93
  }
88
- export function __wbg___wbindgen_number_get_c7f42aed0525c451(arg0, arg1) {
94
+ export function __wbg___wbindgen_number_get_1cc01dd708740256(arg0, arg1) {
89
95
  const obj = arg1;
90
96
  const ret = typeof(obj) === 'number' ? obj : undefined;
91
97
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
92
98
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
93
99
  }
94
- export function __wbg___wbindgen_string_get_7ed5322991caaec5(arg0, arg1) {
100
+ export function __wbg___wbindgen_string_get_71bb4348194e31f0(arg0, arg1) {
95
101
  const obj = arg1;
96
102
  const ret = typeof(obj) === 'string' ? obj : undefined;
97
103
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -99,25 +105,25 @@ export function __wbg___wbindgen_string_get_7ed5322991caaec5(arg0, arg1) {
99
105
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
100
106
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
101
107
  }
102
- export function __wbg___wbindgen_throw_6b64449b9b9ed33c(arg0, arg1) {
108
+ export function __wbg___wbindgen_throw_ea4887a5f8f9a9db(arg0, arg1) {
103
109
  throw new Error(getStringFromWasm0(arg0, arg1));
104
110
  }
105
- export function __wbg__wbg_cb_unref_b46c9b5a9f08ec37(arg0) {
111
+ export function __wbg__wbg_cb_unref_33c39e13d73b25f6(arg0) {
106
112
  arg0._wbg_cb_unref();
107
113
  }
108
- export function __wbg_call_14b169f759b26747() { return handleError(function (arg0, arg1) {
109
- const ret = arg0.call(arg1);
114
+ export function __wbg_call_5575218572ead796() { return handleError(function (arg0, arg1, arg2) {
115
+ const ret = arg0.call(arg1, arg2);
110
116
  return ret;
111
117
  }, arguments); }
112
- export function __wbg_call_a24592a6f349a97e() { return handleError(function (arg0, arg1, arg2) {
113
- const ret = arg0.call(arg1, arg2);
118
+ export function __wbg_call_8e98ed2f3c86c4b5() { return handleError(function (arg0, arg1) {
119
+ const ret = arg0.call(arg1);
114
120
  return ret;
115
121
  }, arguments); }
116
- export function __wbg_done_9158f7cc8751ba32(arg0) {
122
+ export function __wbg_done_b62d4a7d2286852a(arg0) {
117
123
  const ret = arg0.done;
118
124
  return ret;
119
125
  }
120
- export function __wbg_entries_e0b73aa8571ddb56(arg0) {
126
+ export function __wbg_entries_c261c3fa1f281256(arg0) {
121
127
  const ret = Object.entries(arg0);
122
128
  return ret;
123
129
  }
@@ -132,30 +138,30 @@ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
132
138
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
133
139
  }
134
140
  }
135
- export function __wbg_fetch_454a5d3d4b1487b4() { return handleError(function (arg0, arg1) {
141
+ export function __wbg_fetch_8e155876ef1ec371() { return handleError(function (arg0, arg1) {
136
142
  const ret = fetch(arg0, arg1);
137
143
  return ret;
138
144
  }, arguments); }
139
145
  export function __wbg_getRandomValues_3f44b700395062e5() { return handleError(function (arg0, arg1) {
140
146
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
141
147
  }, arguments); }
142
- export function __wbg_get_1affdbdd5573b16a() { return handleError(function (arg0, arg1) {
143
- const ret = Reflect.get(arg0, arg1);
144
- return ret;
145
- }, arguments); }
146
- export function __wbg_get_8360291721e2339f(arg0, arg1) {
148
+ export function __wbg_get_197a3fe98f169e38(arg0, arg1) {
147
149
  const ret = arg0[arg1 >>> 0];
148
150
  return ret;
149
151
  }
150
- export function __wbg_get_unchecked_17f53dad852b9588(arg0, arg1) {
152
+ export function __wbg_get_9a29be2cb383ed9a() { return handleError(function (arg0, arg1) {
153
+ const ret = Reflect.get(arg0, arg1);
154
+ return ret;
155
+ }, arguments); }
156
+ export function __wbg_get_unchecked_54a4374c38e08460(arg0, arg1) {
151
157
  const ret = arg0[arg1 >>> 0];
152
158
  return ret;
153
159
  }
154
- export function __wbg_headers_6022deb4e576fb8e(arg0) {
160
+ export function __wbg_headers_d9123c649c85d441(arg0) {
155
161
  const ret = arg0.headers;
156
162
  return ret;
157
163
  }
158
- export function __wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3(arg0) {
164
+ export function __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da(arg0) {
159
165
  let result;
160
166
  try {
161
167
  result = arg0 instanceof ArrayBuffer;
@@ -165,7 +171,7 @@ export function __wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3(arg0) {
165
171
  const ret = result;
166
172
  return ret;
167
173
  }
168
- export function __wbg_instanceof_Response_9b2d111407865ff2(arg0) {
174
+ export function __wbg_instanceof_Response_79948c98d1d2ba75(arg0) {
169
175
  let result;
170
176
  try {
171
177
  result = arg0 instanceof Response;
@@ -175,7 +181,7 @@ export function __wbg_instanceof_Response_9b2d111407865ff2(arg0) {
175
181
  const ret = result;
176
182
  return ret;
177
183
  }
178
- export function __wbg_instanceof_Uint8Array_152ba1f289edcf3f(arg0) {
184
+ export function __wbg_instanceof_Uint8Array_f080092dc70f5d58(arg0) {
179
185
  let result;
180
186
  try {
181
187
  result = arg0 instanceof Uint8Array;
@@ -185,53 +191,49 @@ export function __wbg_instanceof_Uint8Array_152ba1f289edcf3f(arg0) {
185
191
  const ret = result;
186
192
  return ret;
187
193
  }
188
- export function __wbg_iterator_013bc09ec998c2a7() {
194
+ export function __wbg_iterator_cc47ba25a2be735a() {
189
195
  const ret = Symbol.iterator;
190
196
  return ret;
191
197
  }
192
- export function __wbg_length_3d4ecd04bd8d22f1(arg0) {
198
+ export function __wbg_length_589238bdcf171f0e(arg0) {
193
199
  const ret = arg0.length;
194
200
  return ret;
195
201
  }
196
- export function __wbg_length_9f1775224cf1d815(arg0) {
202
+ export function __wbg_length_c6054974c0a6cdb9(arg0) {
197
203
  const ret = arg0.length;
198
204
  return ret;
199
205
  }
200
- export function __wbg_log_7e1aa9064a1dbdbd(arg0) {
206
+ export function __wbg_log_6b5af08dd293697f(arg0) {
201
207
  console.log(arg0);
202
208
  }
203
- export function __wbg_new_0c7403db6e782f19(arg0) {
204
- const ret = new Uint8Array(arg0);
205
- return ret;
206
- }
207
209
  export function __wbg_new_227d7c05414eb861() {
208
210
  const ret = new Error();
209
211
  return ret;
210
212
  }
211
- export function __wbg_new_34d45cc8e36aaead() {
212
- const ret = new Map();
213
+ export function __wbg_new_2e117a478906f062() {
214
+ const ret = new Object();
213
215
  return ret;
214
216
  }
215
- export function __wbg_new_682678e2f47e32bc() {
216
- const ret = new Array();
217
+ export function __wbg_new_3444eb7412549f0b() {
218
+ const ret = new Map();
217
219
  return ret;
218
220
  }
219
- export function __wbg_new_aa8d0fa9762c29bd() {
220
- const ret = new Object();
221
+ export function __wbg_new_36e147a8ced3c6e0() {
222
+ const ret = new Array();
221
223
  return ret;
222
224
  }
223
- export function __wbg_new_from_slice_b5ea43e23f6008c0(arg0, arg1) {
224
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
225
+ export function __wbg_new_81880fb5002cb255(arg0) {
226
+ const ret = new Uint8Array(arg0);
225
227
  return ret;
226
228
  }
227
- export function __wbg_new_typed_323f37fd55ab048d(arg0, arg1) {
229
+ export function __wbg_new_typed_00a409eb4ec4f2d9(arg0, arg1) {
228
230
  try {
229
231
  var state0 = {a: arg0, b: arg1};
230
232
  var cb0 = (arg0, arg1) => {
231
233
  const a = state0.a;
232
234
  state0.a = 0;
233
235
  try {
234
- return wasm_bindgen__convert__closures_____invoke__h09947889d53665a4(a, state0.b, arg0, arg1);
236
+ return wasm_bindgen__convert__closures_____invoke__h0a08a9b6706aa208(a, state0.b, arg0, arg1);
235
237
  } finally {
236
238
  state0.a = a;
237
239
  }
@@ -242,42 +244,42 @@ export function __wbg_new_typed_323f37fd55ab048d(arg0, arg1) {
242
244
  state0.a = 0;
243
245
  }
244
246
  }
245
- export function __wbg_next_0340c4ae324393c3() { return handleError(function (arg0) {
247
+ export function __wbg_next_0c4066e251d2eff9() { return handleError(function (arg0) {
246
248
  const ret = arg0.next();
247
249
  return ret;
248
250
  }, arguments); }
249
- export function __wbg_next_7646edaa39458ef7(arg0) {
251
+ export function __wbg_next_402fa10b59ab20c3(arg0) {
250
252
  const ret = arg0.next;
251
253
  return ret;
252
254
  }
253
- export function __wbg_now_a9b7df1cbee90986() {
255
+ export function __wbg_now_d2e0afbad4edbe82() {
254
256
  const ret = Date.now();
255
257
  return ret;
256
258
  }
257
- export function __wbg_prototypesetcall_a6b02eb00b0f4ce2(arg0, arg1, arg2) {
259
+ export function __wbg_prototypesetcall_d721637c7ca66eb8(arg0, arg1, arg2) {
258
260
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
259
261
  }
260
- export function __wbg_queueMicrotask_5d15a957e6aa920e(arg0) {
261
- queueMicrotask(arg0);
262
- }
263
- export function __wbg_queueMicrotask_f8819e5ffc402f36(arg0) {
262
+ export function __wbg_queueMicrotask_1c9b3800e321a967(arg0) {
264
263
  const ret = arg0.queueMicrotask;
265
264
  return ret;
266
265
  }
267
- export function __wbg_resolve_e6c466bc1052f16c(arg0) {
266
+ export function __wbg_queueMicrotask_311744e534a929a3(arg0) {
267
+ queueMicrotask(arg0);
268
+ }
269
+ export function __wbg_resolve_d82363d90af6928a(arg0) {
268
270
  const ret = Promise.resolve(arg0);
269
271
  return ret;
270
272
  }
271
- export function __wbg_set_3bf1de9fab0cd644(arg0, arg1, arg2) {
272
- arg0[arg1 >>> 0] = arg2;
273
- }
274
273
  export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
275
274
  arg0[arg1] = arg2;
276
275
  }
277
- export function __wbg_set_fde2cec06c23692b(arg0, arg1, arg2) {
276
+ export function __wbg_set_9a1d61e17de7054c(arg0, arg1, arg2) {
278
277
  const ret = arg0.set(arg1, arg2);
279
278
  return ret;
280
279
  }
280
+ export function __wbg_set_dc601f4a69da0bc2(arg0, arg1, arg2) {
281
+ arg0[arg1 >>> 0] = arg2;
282
+ }
281
283
  export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
282
284
  const ret = arg1.stack;
283
285
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -285,45 +287,45 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
285
287
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
286
288
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
287
289
  }
288
- export function __wbg_static_accessor_GLOBAL_8cfadc87a297ca02() {
289
- const ret = typeof global === 'undefined' ? null : global;
290
+ export function __wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938() {
291
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
290
292
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
291
293
  }
292
- export function __wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf() {
293
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
294
+ export function __wbg_static_accessor_GLOBAL_ce44e66a4935da8c() {
295
+ const ret = typeof global === 'undefined' ? null : global;
294
296
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
295
297
  }
296
- export function __wbg_static_accessor_SELF_e445c1c7484aecc3() {
298
+ export function __wbg_static_accessor_SELF_44f6e0cb5e67cdad() {
297
299
  const ret = typeof self === 'undefined' ? null : self;
298
300
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
299
301
  }
300
- export function __wbg_static_accessor_WINDOW_f20e8576ef1e0f17() {
302
+ export function __wbg_static_accessor_WINDOW_168f178805d978fe() {
301
303
  const ret = typeof window === 'undefined' ? null : window;
302
304
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
303
305
  }
304
- export function __wbg_status_43e0d2f15b22d69f(arg0) {
306
+ export function __wbg_status_0053aa6239760447(arg0) {
305
307
  const ret = arg0.status;
306
308
  return ret;
307
309
  }
308
- export function __wbg_text_595ef75535aa25c1() { return handleError(function (arg0) {
310
+ export function __wbg_text_68ea00f7126f2706() { return handleError(function (arg0) {
309
311
  const ret = arg0.text();
310
312
  return ret;
311
313
  }, arguments); }
312
- export function __wbg_then_792e0c862b060889(arg0, arg1, arg2) {
314
+ export function __wbg_then_05edfc8a4fea5106(arg0, arg1, arg2) {
313
315
  const ret = arg0.then(arg1, arg2);
314
316
  return ret;
315
317
  }
316
- export function __wbg_then_8e16ee11f05e4827(arg0, arg1) {
318
+ export function __wbg_then_591b6b3a75ee817a(arg0, arg1) {
317
319
  const ret = arg0.then(arg1);
318
320
  return ret;
319
321
  }
320
- export function __wbg_value_ee3a06f4579184fa(arg0) {
322
+ export function __wbg_value_49f783bb59765962(arg0) {
321
323
  const ret = arg0.value;
322
324
  return ret;
323
325
  }
324
326
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
325
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4882, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
326
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h799ee35745318780);
327
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4783, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
328
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h5d8169a9c6a0716a);
327
329
  return ret;
328
330
  }
329
331
  export function __wbindgen_cast_0000000000000002(arg0) {
@@ -355,20 +357,20 @@ export function __wbindgen_init_externref_table() {
355
357
  table.set(offset + 2, true);
356
358
  table.set(offset + 3, false);
357
359
  }
358
- function wasm_bindgen__convert__closures_____invoke__h799ee35745318780(arg0, arg1, arg2) {
359
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h799ee35745318780(arg0, arg1, arg2);
360
+ function wasm_bindgen__convert__closures_____invoke__h5d8169a9c6a0716a(arg0, arg1, arg2) {
361
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h5d8169a9c6a0716a(arg0, arg1, arg2);
360
362
  if (ret[1]) {
361
363
  throw takeFromExternrefTable0(ret[0]);
362
364
  }
363
365
  }
364
366
 
365
- function wasm_bindgen__convert__closures_____invoke__h09947889d53665a4(arg0, arg1, arg2, arg3) {
366
- wasm.wasm_bindgen__convert__closures_____invoke__h09947889d53665a4(arg0, arg1, arg2, arg3);
367
+ function wasm_bindgen__convert__closures_____invoke__h0a08a9b6706aa208(arg0, arg1, arg2, arg3) {
368
+ wasm.wasm_bindgen__convert__closures_____invoke__h0a08a9b6706aa208(arg0, arg1, arg2, arg3);
367
369
  }
368
370
 
369
371
  const WasmLspFinalization = (typeof FinalizationRegistry === 'undefined')
370
372
  ? { register: () => {}, unregister: () => {} }
371
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmlsp_free(ptr >>> 0, 1));
373
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmlsp_free(ptr, 1));
372
374
 
373
375
  function addToExternrefTable0(obj) {
374
376
  const idx = wasm.__externref_table_alloc();
@@ -459,8 +461,7 @@ function getDataViewMemory0() {
459
461
  }
460
462
 
461
463
  function getStringFromWasm0(ptr, len) {
462
- ptr = ptr >>> 0;
463
- return decodeText(ptr, len);
464
+ return decodeText(ptr >>> 0, len);
464
465
  }
465
466
 
466
467
  let cachedUint8ArrayMemory0 = null;
package/swls_wasm_bg.wasm CHANGED
Binary file