@sema-lang/sema-wasm 1.11.0 → 1.12.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
@@ -2,7 +2,7 @@
2
2
  "name": "@sema-lang/sema-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for the Sema Lisp interpreter",
5
- "version": "1.11.0",
5
+ "version": "1.12.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/sema_wasm.d.ts CHANGED
@@ -8,6 +8,28 @@ export class SemaInterpreter {
8
8
  * Create interpreter with options: {stdlib: false, deny: ["network", "fs-write"]}
9
9
  */
10
10
  static createWithOptions(opts: any): SemaInterpreter;
11
+ debugContinue(): any;
12
+ debugGetLocals(): any;
13
+ debugGetStackTrace(): any;
14
+ debugIsActive(): boolean;
15
+ /**
16
+ * Perform an HTTP fetch from a debug marker and cache the result.
17
+ * Called by JS in response to a "http_needed" status.
18
+ * Takes the marker JSON from the request field. Returns true on success.
19
+ */
20
+ debugPerformFetch(marker_json: string): Promise<boolean>;
21
+ debugPoll(): any;
22
+ debugSetBreakpoints(lines: Array<any>): void;
23
+ /**
24
+ * Start a debug session. Compiles the code, sets breakpoints on given lines,
25
+ * and runs until the first stop or completion.
26
+ * Returns JSON: { status: "stopped"|"finished"|"error"|"http_needed", ... }
27
+ */
28
+ debugStart(code: string, breakpoint_lines: Array<any>): any;
29
+ debugStepInto(): any;
30
+ debugStepOut(): any;
31
+ debugStepOver(): any;
32
+ debugStop(): void;
11
33
  /**
12
34
  * Delete a file from the virtual filesystem. Returns true if the file existed.
13
35
  */
@@ -37,6 +59,11 @@ export class SemaInterpreter {
37
59
  * Check if a path exists in the virtual filesystem (file or directory).
38
60
  */
39
61
  fileExists(path: string): boolean;
62
+ /**
63
+ * Compile code and return the set of lines that are valid breakpoint targets.
64
+ * Returns a JS array of line numbers (sorted). Returns empty array on parse/compile error.
65
+ */
66
+ getValidBreakpointLines(code: string): Array<any>;
40
67
  /**
41
68
  * Check if a path is a directory in the virtual filesystem.
42
69
  */
@@ -93,6 +120,18 @@ export interface InitOutput {
93
120
  readonly __wbg_semainterpreter_free: (a: number, b: number) => void;
94
121
  readonly formatCode: (a: number, b: number, c: number, d: number, e: number) => any;
95
122
  readonly semainterpreter_createWithOptions: (a: any) => number;
123
+ readonly semainterpreter_debugContinue: (a: number) => any;
124
+ readonly semainterpreter_debugGetLocals: (a: number) => any;
125
+ readonly semainterpreter_debugGetStackTrace: (a: number) => any;
126
+ readonly semainterpreter_debugIsActive: (a: number) => number;
127
+ readonly semainterpreter_debugPerformFetch: (a: number, b: number, c: number) => any;
128
+ readonly semainterpreter_debugPoll: (a: number) => any;
129
+ readonly semainterpreter_debugSetBreakpoints: (a: number, b: any) => void;
130
+ readonly semainterpreter_debugStart: (a: number, b: number, c: number, d: any) => any;
131
+ readonly semainterpreter_debugStepInto: (a: number) => any;
132
+ readonly semainterpreter_debugStepOut: (a: number) => any;
133
+ readonly semainterpreter_debugStepOver: (a: number) => any;
134
+ readonly semainterpreter_debugStop: (a: number) => void;
96
135
  readonly semainterpreter_deleteFile: (a: number, b: number, c: number) => number;
97
136
  readonly semainterpreter_eval: (a: number, b: number, c: number) => any;
98
137
  readonly semainterpreter_evalAsync: (a: number, b: number, c: number) => any;
@@ -100,6 +139,7 @@ export interface InitOutput {
100
139
  readonly semainterpreter_evalVM: (a: number, b: number, c: number) => any;
101
140
  readonly semainterpreter_evalVMAsync: (a: number, b: number, c: number) => any;
102
141
  readonly semainterpreter_fileExists: (a: number, b: number, c: number) => number;
142
+ readonly semainterpreter_getValidBreakpointLines: (a: number, b: number, c: number) => any;
103
143
  readonly semainterpreter_isDirectory: (a: number, b: number, c: number) => number;
104
144
  readonly semainterpreter_listFiles: (a: number, b: number, c: number) => any;
105
145
  readonly semainterpreter_mkdir: (a: number, b: number, c: number) => void;
@@ -111,11 +151,11 @@ export interface InitOutput {
111
151
  readonly semainterpreter_version: (a: number) => [number, number];
112
152
  readonly semainterpreter_vfsStats: (a: number) => any;
113
153
  readonly semainterpreter_writeFile: (a: number, b: number, c: number, d: number, e: number) => any;
114
- readonly wasm_bindgen__closure__destroy__hb6f8bbac8c7aa7bf: (a: number, b: number) => void;
115
- readonly wasm_bindgen__closure__destroy__h85242c456c6d805c: (a: number, b: number) => void;
116
- readonly wasm_bindgen__convert__closures_____invoke__h1b7bd4e25bb89743: (a: number, b: number, c: any) => [number, number];
117
- readonly wasm_bindgen__convert__closures_____invoke__h2a36d801b61e55d1: (a: number, b: number, c: any, d: any) => void;
118
- readonly wasm_bindgen__convert__closures_____invoke__h636b1d189ca38d2a: (a: number, b: number) => void;
154
+ readonly wasm_bindgen__closure__destroy__hee9d31c1decb1f58: (a: number, b: number) => void;
155
+ readonly wasm_bindgen__closure__destroy__hb821d031c0e4c87b: (a: number, b: number) => void;
156
+ readonly wasm_bindgen__convert__closures_____invoke__hd1297f566bde5dd8: (a: number, b: number, c: any) => [number, number];
157
+ readonly wasm_bindgen__convert__closures_____invoke__h0022ea9fa430a1be: (a: number, b: number, c: any, d: any) => void;
158
+ readonly wasm_bindgen__convert__closures_____invoke__hec161cfeb8c5230b: (a: number, b: number) => void;
119
159
  readonly __wbindgen_malloc: (a: number, b: number) => number;
120
160
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
121
161
  readonly __wbindgen_exn_store: (a: number) => void;
package/sema_wasm.js CHANGED
@@ -27,6 +27,98 @@ export class SemaInterpreter {
27
27
  const ret = wasm.semainterpreter_createWithOptions(opts);
28
28
  return SemaInterpreter.__wrap(ret);
29
29
  }
30
+ /**
31
+ * @returns {any}
32
+ */
33
+ debugContinue() {
34
+ const ret = wasm.semainterpreter_debugContinue(this.__wbg_ptr);
35
+ return ret;
36
+ }
37
+ /**
38
+ * @returns {any}
39
+ */
40
+ debugGetLocals() {
41
+ const ret = wasm.semainterpreter_debugGetLocals(this.__wbg_ptr);
42
+ return ret;
43
+ }
44
+ /**
45
+ * @returns {any}
46
+ */
47
+ debugGetStackTrace() {
48
+ const ret = wasm.semainterpreter_debugGetStackTrace(this.__wbg_ptr);
49
+ return ret;
50
+ }
51
+ /**
52
+ * @returns {boolean}
53
+ */
54
+ debugIsActive() {
55
+ const ret = wasm.semainterpreter_debugIsActive(this.__wbg_ptr);
56
+ return ret !== 0;
57
+ }
58
+ /**
59
+ * Perform an HTTP fetch from a debug marker and cache the result.
60
+ * Called by JS in response to a "http_needed" status.
61
+ * Takes the marker JSON from the request field. Returns true on success.
62
+ * @param {string} marker_json
63
+ * @returns {Promise<boolean>}
64
+ */
65
+ debugPerformFetch(marker_json) {
66
+ const ptr0 = passStringToWasm0(marker_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
67
+ const len0 = WASM_VECTOR_LEN;
68
+ const ret = wasm.semainterpreter_debugPerformFetch(this.__wbg_ptr, ptr0, len0);
69
+ return ret;
70
+ }
71
+ /**
72
+ * @returns {any}
73
+ */
74
+ debugPoll() {
75
+ const ret = wasm.semainterpreter_debugPoll(this.__wbg_ptr);
76
+ return ret;
77
+ }
78
+ /**
79
+ * @param {Array<any>} lines
80
+ */
81
+ debugSetBreakpoints(lines) {
82
+ wasm.semainterpreter_debugSetBreakpoints(this.__wbg_ptr, lines);
83
+ }
84
+ /**
85
+ * Start a debug session. Compiles the code, sets breakpoints on given lines,
86
+ * and runs until the first stop or completion.
87
+ * Returns JSON: { status: "stopped"|"finished"|"error"|"http_needed", ... }
88
+ * @param {string} code
89
+ * @param {Array<any>} breakpoint_lines
90
+ * @returns {any}
91
+ */
92
+ debugStart(code, breakpoint_lines) {
93
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
94
+ const len0 = WASM_VECTOR_LEN;
95
+ const ret = wasm.semainterpreter_debugStart(this.__wbg_ptr, ptr0, len0, breakpoint_lines);
96
+ return ret;
97
+ }
98
+ /**
99
+ * @returns {any}
100
+ */
101
+ debugStepInto() {
102
+ const ret = wasm.semainterpreter_debugStepInto(this.__wbg_ptr);
103
+ return ret;
104
+ }
105
+ /**
106
+ * @returns {any}
107
+ */
108
+ debugStepOut() {
109
+ const ret = wasm.semainterpreter_debugStepOut(this.__wbg_ptr);
110
+ return ret;
111
+ }
112
+ /**
113
+ * @returns {any}
114
+ */
115
+ debugStepOver() {
116
+ const ret = wasm.semainterpreter_debugStepOver(this.__wbg_ptr);
117
+ return ret;
118
+ }
119
+ debugStop() {
120
+ wasm.semainterpreter_debugStop(this.__wbg_ptr);
121
+ }
30
122
  /**
31
123
  * Delete a file from the virtual filesystem. Returns true if the file existed.
32
124
  * @param {string} path
@@ -105,6 +197,18 @@ export class SemaInterpreter {
105
197
  const ret = wasm.semainterpreter_fileExists(this.__wbg_ptr, ptr0, len0);
106
198
  return ret !== 0;
107
199
  }
200
+ /**
201
+ * Compile code and return the set of lines that are valid breakpoint targets.
202
+ * Returns a JS array of line numbers (sorted). Returns empty array on parse/compile error.
203
+ * @param {string} code
204
+ * @returns {Array<any>}
205
+ */
206
+ getValidBreakpointLines(code) {
207
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
208
+ const len0 = WASM_VECTOR_LEN;
209
+ const ret = wasm.semainterpreter_getValidBreakpointLines(this.__wbg_ptr, ptr0, len0);
210
+ return ret;
211
+ }
108
212
  /**
109
213
  * Check if a path is a directory in the virtual filesystem.
110
214
  * @param {string} path
@@ -243,42 +347,42 @@ export function formatCode(code, width, indent, align) {
243
347
  function __wbg_get_imports() {
244
348
  const import0 = {
245
349
  __proto__: null,
246
- __wbg___wbindgen_boolean_get_4a348b369b009243: function(arg0) {
350
+ __wbg___wbindgen_boolean_get_7f1c4dd217655ab6: function(arg0) {
247
351
  const v = arg0;
248
352
  const ret = typeof(v) === 'boolean' ? v : undefined;
249
353
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
250
354
  },
251
- __wbg___wbindgen_debug_string_43c7ccb034739216: function(arg0, arg1) {
355
+ __wbg___wbindgen_debug_string_6cf0badf0b90f6ef: function(arg0, arg1) {
252
356
  const ret = debugString(arg1);
253
357
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
254
358
  const len1 = WASM_VECTOR_LEN;
255
359
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
256
360
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
257
361
  },
258
- __wbg___wbindgen_is_function_18bea6e84080c016: function(arg0) {
362
+ __wbg___wbindgen_is_function_4500d4795b15e70b: function(arg0) {
259
363
  const ret = typeof(arg0) === 'function';
260
364
  return ret;
261
365
  },
262
- __wbg___wbindgen_is_null_c5f5bb76436a9ab1: function(arg0) {
366
+ __wbg___wbindgen_is_null_5467e07e008308e7: function(arg0) {
263
367
  const ret = arg0 === null;
264
368
  return ret;
265
369
  },
266
- __wbg___wbindgen_is_object_8d3fac158b36498d: function(arg0) {
370
+ __wbg___wbindgen_is_object_f8b6723c60349a13: function(arg0) {
267
371
  const val = arg0;
268
372
  const ret = typeof(val) === 'object' && val !== null;
269
373
  return ret;
270
374
  },
271
- __wbg___wbindgen_is_undefined_4a711ea9d2e1ef93: function(arg0) {
375
+ __wbg___wbindgen_is_undefined_1296fcc83c2da07a: function(arg0) {
272
376
  const ret = arg0 === undefined;
273
377
  return ret;
274
378
  },
275
- __wbg___wbindgen_number_get_eed4462ef92e1bed: function(arg0, arg1) {
379
+ __wbg___wbindgen_number_get_3330675b4e5c3680: function(arg0, arg1) {
276
380
  const obj = arg1;
277
381
  const ret = typeof(obj) === 'number' ? obj : undefined;
278
382
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
279
383
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
280
384
  },
281
- __wbg___wbindgen_string_get_d09f733449cbf7a2: function(arg0, arg1) {
385
+ __wbg___wbindgen_string_get_7b8bc463f6cbeefe: function(arg0, arg1) {
282
386
  const obj = arg1;
283
387
  const ret = typeof(obj) === 'string' ? obj : undefined;
284
388
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -286,36 +390,36 @@ function __wbg_get_imports() {
286
390
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
287
391
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
288
392
  },
289
- __wbg___wbindgen_throw_df03e93053e0f4bc: function(arg0, arg1) {
393
+ __wbg___wbindgen_throw_89ca9e2c67795ec1: function(arg0, arg1) {
290
394
  throw new Error(getStringFromWasm0(arg0, arg1));
291
395
  },
292
- __wbg__wbg_cb_unref_9f02ce912168c354: function(arg0) {
396
+ __wbg__wbg_cb_unref_f00ff3c6385bd6fa: function(arg0) {
293
397
  arg0._wbg_cb_unref();
294
398
  },
295
- __wbg_abort_bf4dbbb6563f9ad6: function(arg0) {
399
+ __wbg_abort_e6a92d5623297220: function(arg0) {
296
400
  arg0.abort();
297
401
  },
298
- __wbg_apply_b9eaa291429ff6ba: function() { return handleError(function (arg0, arg1, arg2) {
402
+ __wbg_apply_362be3817fbaa7f3: function() { return handleError(function (arg0, arg1, arg2) {
299
403
  const ret = arg0.apply(arg1, arg2);
300
404
  return ret;
301
405
  }, arguments); },
302
- __wbg_call_85e5437fa1ab109d: function() { return handleError(function (arg0, arg1, arg2) {
406
+ __wbg_call_3eadb5cea0462653: function() { return handleError(function (arg0, arg1, arg2) {
303
407
  const ret = arg0.call(arg1, arg2);
304
408
  return ret;
305
409
  }, arguments); },
306
- __wbg_call_df7a43aecab856a8: function() { return handleError(function (arg0, arg1) {
410
+ __wbg_call_eb691bc2f5533064: function() { return handleError(function (arg0, arg1) {
307
411
  const ret = arg0.call(arg1);
308
412
  return ret;
309
413
  }, arguments); },
310
- __wbg_done_0ad70482cae88a68: function(arg0) {
414
+ __wbg_done_82b14aeb31e98db6: function(arg0) {
311
415
  const ret = arg0.done;
312
416
  return ret;
313
417
  },
314
- __wbg_eval_71312d40c62fee8e: function() { return handleError(function (arg0, arg1) {
418
+ __wbg_eval_f79a0253a6cf4894: function() { return handleError(function (arg0, arg1) {
315
419
  const ret = eval(getStringFromWasm0(arg0, arg1));
316
420
  return ret;
317
421
  }, arguments); },
318
- __wbg_fetch_ec775423198d5d5c: function(arg0, arg1) {
422
+ __wbg_fetch_457fd31a889a3605: function(arg0, arg1) {
319
423
  const ret = arg0.fetch(arg1);
320
424
  return ret;
321
425
  },
@@ -325,31 +429,35 @@ function __wbg_get_imports() {
325
429
  __wbg_getRandomValues_ab1935b403569652: function() { return handleError(function (arg0, arg1) {
326
430
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
327
431
  }, arguments); },
328
- __wbg_getTime_487f639f34f38b76: function(arg0) {
432
+ __wbg_getTime_4b23931c93d819bb: function(arg0) {
329
433
  const ret = arg0.getTime();
330
434
  return ret;
331
435
  },
332
- __wbg_get_6f5cf69c8f3f094a: function() { return handleError(function (arg0, arg1) {
333
- const ret = Reflect.get(arg0, arg1);
334
- return ret;
335
- }, arguments); },
336
- __wbg_get_c40e2c3262995a8e: function(arg0, arg1) {
436
+ __wbg_get_229657ec2da079cd: function(arg0, arg1) {
337
437
  const ret = arg0[arg1 >>> 0];
338
438
  return ret;
339
439
  },
340
- __wbg_get_d0e1306db90b68d9: function() { return handleError(function (arg0, arg1) {
440
+ __wbg_get_89f3a4c398b4872e: function() { return handleError(function (arg0, arg1) {
441
+ const ret = Reflect.get(arg0, arg1);
442
+ return ret;
443
+ }, arguments); },
444
+ __wbg_get_ed44f5f876f22351: function() { return handleError(function (arg0, arg1) {
341
445
  const ret = Reflect.get(arg0, arg1);
342
446
  return ret;
343
447
  }, arguments); },
344
- __wbg_headers_5960155bb72206d7: function(arg0) {
448
+ __wbg_get_unchecked_ae4d1600970be7c3: function(arg0, arg1) {
449
+ const ret = arg0[arg1 >>> 0];
450
+ return ret;
451
+ },
452
+ __wbg_headers_d0c04d2f0f2d1afa: function(arg0) {
345
453
  const ret = arg0.headers;
346
454
  return ret;
347
455
  },
348
- __wbg_headers_9924a8770a24d779: function(arg0) {
456
+ __wbg_headers_fa752b79db86f8b3: function(arg0) {
349
457
  const ret = arg0.headers;
350
458
  return ret;
351
459
  },
352
- __wbg_instanceof_Response_4d70bea95d48a514: function(arg0) {
460
+ __wbg_instanceof_Response_1844be67dbd5e161: function(arg0) {
353
461
  let result;
354
462
  try {
355
463
  result = arg0 instanceof Response;
@@ -359,7 +467,7 @@ function __wbg_get_imports() {
359
467
  const ret = result;
360
468
  return ret;
361
469
  },
362
- __wbg_instanceof_Window_0cc62e4f32542cc4: function(arg0) {
470
+ __wbg_instanceof_Window_27a653e1b516dd65: function(arg0) {
363
471
  let result;
364
472
  try {
365
473
  result = arg0 instanceof Window;
@@ -369,42 +477,42 @@ function __wbg_get_imports() {
369
477
  const ret = result;
370
478
  return ret;
371
479
  },
372
- __wbg_isArray_2efa5973cef6ec32: function(arg0) {
480
+ __wbg_isArray_fe5201bfdab7e39d: function(arg0) {
373
481
  const ret = Array.isArray(arg0);
374
482
  return ret;
375
483
  },
376
- __wbg_iterator_e77d2b7575cca5a7: function() {
484
+ __wbg_iterator_63c3a1857203cf2f: function() {
377
485
  const ret = Symbol.iterator;
378
486
  return ret;
379
487
  },
380
- __wbg_length_00dd7227fd4626ad: function(arg0) {
488
+ __wbg_length_feaf2a40e5f9755a: function(arg0) {
381
489
  const ret = arg0.length;
382
490
  return ret;
383
491
  },
384
- __wbg_new_0_bde4b243a7001c8c: function() {
492
+ __wbg_new_08d33c204155a3e2: function() { return handleError(function () {
493
+ const ret = new AbortController();
494
+ return ret;
495
+ }, arguments); },
496
+ __wbg_new_0_e8782c8df6122565: function() {
385
497
  const ret = new Date();
386
498
  return ret;
387
499
  },
388
- __wbg_new_62f131e968c83d75: function() {
500
+ __wbg_new_6feff3e11e4d0799: function() {
389
501
  const ret = new Object();
390
502
  return ret;
391
503
  },
392
- __wbg_new_66075f8c2ea6575e: function() {
504
+ __wbg_new_ff7f9cc4c9a4a0cf: function() {
393
505
  const ret = new Array();
394
506
  return ret;
395
507
  },
396
- __wbg_new_eb8f6841a0421871: function() { return handleError(function () {
397
- const ret = new AbortController();
398
- return ret;
399
- }, arguments); },
400
- __wbg_new_typed_893dbec5fe999814: function(arg0, arg1) {
508
+ __wbg_new_typed_f79896f0ea5f7de8: function(arg0, arg1) {
401
509
  try {
402
510
  var state0 = {a: arg0, b: arg1};
403
511
  var cb0 = (arg0, arg1) => {
404
512
  const a = state0.a;
405
513
  state0.a = 0;
406
514
  try {
407
- return wasm_bindgen__convert__closures_____invoke__h2a36d801b61e55d1(a, state0.b, arg0, arg1);
515
+ return wasm_bindgen__convert__closures_____invoke__h0022ea9fa430a1be(a, state0.b, arg0, arg1);
408
516
  } finally {
409
517
  state0.a = a;
410
518
  }
@@ -415,112 +523,116 @@ function __wbg_get_imports() {
415
523
  state0.a = state0.b = 0;
416
524
  }
417
525
  },
418
- __wbg_new_with_str_and_init_ccd7de5a7b7630b8: function() { return handleError(function (arg0, arg1, arg2) {
526
+ __wbg_new_with_str_and_init_66de5344635d3590: function() { return handleError(function (arg0, arg1, arg2) {
419
527
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
420
528
  return ret;
421
529
  }, arguments); },
422
- __wbg_next_5428439dfc1d0362: function() { return handleError(function (arg0) {
530
+ __wbg_next_ae5b710aea83f41e: function() { return handleError(function (arg0) {
423
531
  const ret = arg0.next();
424
532
  return ret;
425
533
  }, arguments); },
426
- __wbg_next_d314789a105729f3: function(arg0) {
534
+ __wbg_next_f577b3e02c9be709: function(arg0) {
427
535
  const ret = arg0.next;
428
536
  return ret;
429
537
  },
430
- __wbg_now_81a04fc60f4b9917: function() {
538
+ __wbg_now_054cfe5280165f10: function() {
431
539
  const ret = Date.now();
432
540
  return ret;
433
541
  },
434
- __wbg_parse_18a4a613f7a65376: function() { return handleError(function (arg0, arg1) {
542
+ __wbg_parse_b03588c4ad83b7b2: function() { return handleError(function (arg0, arg1) {
435
543
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
436
544
  return ret;
437
545
  }, arguments); },
438
- __wbg_push_960865cda81df836: function(arg0, arg1) {
546
+ __wbg_push_3584053bd77475ee: function(arg0, arg1) {
439
547
  const ret = arg0.push(arg1);
440
548
  return ret;
441
549
  },
442
- __wbg_queueMicrotask_622e69f0935dfab2: function(arg0) {
550
+ __wbg_queueMicrotask_5e387cf4d8e3f63e: function(arg0) {
551
+ queueMicrotask(arg0);
552
+ },
553
+ __wbg_queueMicrotask_77bf5a3ad712168b: function(arg0) {
443
554
  const ret = arg0.queueMicrotask;
444
555
  return ret;
445
556
  },
446
- __wbg_queueMicrotask_d0528786d26e067c: function(arg0) {
447
- queueMicrotask(arg0);
448
- },
449
- __wbg_resolve_d170483d75a2c8a1: function(arg0) {
557
+ __wbg_resolve_2e8556632715b12f: function(arg0) {
450
558
  const ret = Promise.resolve(arg0);
451
559
  return ret;
452
560
  },
453
- __wbg_setTimeout_9d56e23573f7138b: function() { return handleError(function (arg0, arg1, arg2) {
561
+ __wbg_setTimeout_4ca0316a84ed500a: function() { return handleError(function (arg0, arg1, arg2) {
454
562
  const ret = arg0.setTimeout(arg1, arg2);
455
563
  return ret;
456
564
  }, arguments); },
457
- __wbg_set_body_d3bfb0ba84038563: function(arg0, arg1) {
565
+ __wbg_set_409333732b484ee7: function() { return handleError(function (arg0, arg1, arg2) {
566
+ const ret = Reflect.set(arg0, arg1, arg2);
567
+ return ret;
568
+ }, arguments); },
569
+ __wbg_set_body_42d5ed933a1840a1: function(arg0, arg1) {
458
570
  arg0.body = arg1;
459
571
  },
460
- __wbg_set_db2c2258160ed058: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
572
+ __wbg_set_f2987f52a57de416: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
461
573
  arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
462
574
  }, arguments); },
463
- __wbg_set_method_e1291768ddb1e35e: function(arg0, arg1, arg2) {
575
+ __wbg_set_method_5a35896632ca213d: function(arg0, arg1, arg2) {
464
576
  arg0.method = getStringFromWasm0(arg1, arg2);
465
577
  },
466
- __wbg_set_mode_1fcb26983836e884: function(arg0, arg1) {
578
+ __wbg_set_mode_6fa10db5d133ac26: function(arg0, arg1) {
467
579
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
468
580
  },
469
- __wbg_set_signal_4e03877dd7f2cd34: function(arg0, arg1) {
581
+ __wbg_set_signal_0d93209e168efc85: function(arg0, arg1) {
470
582
  arg0.signal = arg1;
471
583
  },
472
- __wbg_signal_065197e577ceaa9e: function(arg0) {
584
+ __wbg_signal_a0d9fead74a07e34: function(arg0) {
473
585
  const ret = arg0.signal;
474
586
  return ret;
475
587
  },
476
- __wbg_static_accessor_GLOBAL_THIS_6614f2f4998e3c4c: function() {
477
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
588
+ __wbg_static_accessor_GLOBAL_280fe6a619bbfbf6: function() {
589
+ const ret = typeof global === 'undefined' ? null : global;
478
590
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
479
591
  },
480
- __wbg_static_accessor_GLOBAL_d8e8a2fefe80bc1d: function() {
481
- const ret = typeof global === 'undefined' ? null : global;
592
+ __wbg_static_accessor_GLOBAL_THIS_12c1f4811ec605d1: function() {
593
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
482
594
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
483
595
  },
484
- __wbg_static_accessor_SELF_e29eaf7c465526b1: function() {
596
+ __wbg_static_accessor_SELF_3a156961626f54d9: function() {
485
597
  const ret = typeof self === 'undefined' ? null : self;
486
598
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
487
599
  },
488
- __wbg_static_accessor_WINDOW_66e7ca3eef30585a: function() {
600
+ __wbg_static_accessor_WINDOW_210015b3eb6018a4: function() {
489
601
  const ret = typeof window === 'undefined' ? null : window;
490
602
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
491
603
  },
492
- __wbg_status_3a65028f4384d918: function(arg0) {
604
+ __wbg_status_1544422a8c64aef0: function(arg0) {
493
605
  const ret = arg0.status;
494
606
  return ret;
495
607
  },
496
- __wbg_stringify_c585a2d825a78689: function() { return handleError(function (arg0) {
608
+ __wbg_stringify_ab2dc46051bc59b7: function() { return handleError(function (arg0) {
497
609
  const ret = JSON.stringify(arg0);
498
610
  return ret;
499
611
  }, arguments); },
500
- __wbg_text_96bbece7b1823162: function() { return handleError(function (arg0) {
612
+ __wbg_text_667415a14b08e789: function() { return handleError(function (arg0) {
501
613
  const ret = arg0.text();
502
614
  return ret;
503
615
  }, arguments); },
504
- __wbg_then_1170ade08ea65bc7: function(arg0, arg1, arg2) {
505
- const ret = arg0.then(arg1, arg2);
616
+ __wbg_then_5ce48a9e69c0d3cd: function(arg0, arg1) {
617
+ const ret = arg0.then(arg1);
506
618
  return ret;
507
619
  },
508
- __wbg_then_fdc17de424bf508a: function(arg0, arg1) {
509
- const ret = arg0.then(arg1);
620
+ __wbg_then_f73127af3894d61c: function(arg0, arg1, arg2) {
621
+ const ret = arg0.then(arg1, arg2);
510
622
  return ret;
511
623
  },
512
- __wbg_value_414b42ce7b3eca22: function(arg0) {
624
+ __wbg_value_3e1fdb73e1353fb3: function(arg0) {
513
625
  const ret = arg0.value;
514
626
  return ret;
515
627
  },
516
628
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
517
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1529, function: Function { arguments: [], shim_idx: 1530, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
518
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb6f8bbac8c7aa7bf, wasm_bindgen__convert__closures_____invoke__h636b1d189ca38d2a);
629
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1530, function: Function { arguments: [], shim_idx: 1531, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
630
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hee9d31c1decb1f58, wasm_bindgen__convert__closures_____invoke__hec161cfeb8c5230b);
519
631
  return ret;
520
632
  },
521
633
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
522
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1851, function: Function { arguments: [Externref], shim_idx: 1852, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
523
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h85242c456c6d805c, wasm_bindgen__convert__closures_____invoke__h1b7bd4e25bb89743);
634
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1859, function: Function { arguments: [Externref], shim_idx: 1860, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
635
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb821d031c0e4c87b, wasm_bindgen__convert__closures_____invoke__hd1297f566bde5dd8);
524
636
  return ret;
525
637
  },
526
638
  __wbindgen_cast_0000000000000003: function(arg0) {
@@ -549,19 +661,19 @@ function __wbg_get_imports() {
549
661
  };
550
662
  }
551
663
 
552
- function wasm_bindgen__convert__closures_____invoke__h636b1d189ca38d2a(arg0, arg1) {
553
- wasm.wasm_bindgen__convert__closures_____invoke__h636b1d189ca38d2a(arg0, arg1);
664
+ function wasm_bindgen__convert__closures_____invoke__hec161cfeb8c5230b(arg0, arg1) {
665
+ wasm.wasm_bindgen__convert__closures_____invoke__hec161cfeb8c5230b(arg0, arg1);
554
666
  }
555
667
 
556
- function wasm_bindgen__convert__closures_____invoke__h1b7bd4e25bb89743(arg0, arg1, arg2) {
557
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h1b7bd4e25bb89743(arg0, arg1, arg2);
668
+ function wasm_bindgen__convert__closures_____invoke__hd1297f566bde5dd8(arg0, arg1, arg2) {
669
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__hd1297f566bde5dd8(arg0, arg1, arg2);
558
670
  if (ret[1]) {
559
671
  throw takeFromExternrefTable0(ret[0]);
560
672
  }
561
673
  }
562
674
 
563
- function wasm_bindgen__convert__closures_____invoke__h2a36d801b61e55d1(arg0, arg1, arg2, arg3) {
564
- wasm.wasm_bindgen__convert__closures_____invoke__h2a36d801b61e55d1(arg0, arg1, arg2, arg3);
675
+ function wasm_bindgen__convert__closures_____invoke__h0022ea9fa430a1be(arg0, arg1, arg2, arg3) {
676
+ wasm.wasm_bindgen__convert__closures_____invoke__h0022ea9fa430a1be(arg0, arg1, arg2, arg3);
565
677
  }
566
678
 
567
679
 
package/sema_wasm_bg.wasm CHANGED
Binary file