@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 +1 -1
- package/sema_wasm.d.ts +45 -5
- package/sema_wasm.js +194 -82
- package/sema_wasm_bg.wasm +0 -0
package/package.json
CHANGED
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
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
362
|
+
__wbg___wbindgen_is_function_4500d4795b15e70b: function(arg0) {
|
|
259
363
|
const ret = typeof(arg0) === 'function';
|
|
260
364
|
return ret;
|
|
261
365
|
},
|
|
262
|
-
|
|
366
|
+
__wbg___wbindgen_is_null_5467e07e008308e7: function(arg0) {
|
|
263
367
|
const ret = arg0 === null;
|
|
264
368
|
return ret;
|
|
265
369
|
},
|
|
266
|
-
|
|
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
|
-
|
|
375
|
+
__wbg___wbindgen_is_undefined_1296fcc83c2da07a: function(arg0) {
|
|
272
376
|
const ret = arg0 === undefined;
|
|
273
377
|
return ret;
|
|
274
378
|
},
|
|
275
|
-
|
|
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
|
-
|
|
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
|
-
|
|
393
|
+
__wbg___wbindgen_throw_89ca9e2c67795ec1: function(arg0, arg1) {
|
|
290
394
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
291
395
|
},
|
|
292
|
-
|
|
396
|
+
__wbg__wbg_cb_unref_f00ff3c6385bd6fa: function(arg0) {
|
|
293
397
|
arg0._wbg_cb_unref();
|
|
294
398
|
},
|
|
295
|
-
|
|
399
|
+
__wbg_abort_e6a92d5623297220: function(arg0) {
|
|
296
400
|
arg0.abort();
|
|
297
401
|
},
|
|
298
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
414
|
+
__wbg_done_82b14aeb31e98db6: function(arg0) {
|
|
311
415
|
const ret = arg0.done;
|
|
312
416
|
return ret;
|
|
313
417
|
},
|
|
314
|
-
|
|
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
|
-
|
|
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
|
-
|
|
432
|
+
__wbg_getTime_4b23931c93d819bb: function(arg0) {
|
|
329
433
|
const ret = arg0.getTime();
|
|
330
434
|
return ret;
|
|
331
435
|
},
|
|
332
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
456
|
+
__wbg_headers_fa752b79db86f8b3: function(arg0) {
|
|
349
457
|
const ret = arg0.headers;
|
|
350
458
|
return ret;
|
|
351
459
|
},
|
|
352
|
-
|
|
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
|
-
|
|
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
|
-
|
|
480
|
+
__wbg_isArray_fe5201bfdab7e39d: function(arg0) {
|
|
373
481
|
const ret = Array.isArray(arg0);
|
|
374
482
|
return ret;
|
|
375
483
|
},
|
|
376
|
-
|
|
484
|
+
__wbg_iterator_63c3a1857203cf2f: function() {
|
|
377
485
|
const ret = Symbol.iterator;
|
|
378
486
|
return ret;
|
|
379
487
|
},
|
|
380
|
-
|
|
488
|
+
__wbg_length_feaf2a40e5f9755a: function(arg0) {
|
|
381
489
|
const ret = arg0.length;
|
|
382
490
|
return ret;
|
|
383
491
|
},
|
|
384
|
-
|
|
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
|
-
|
|
500
|
+
__wbg_new_6feff3e11e4d0799: function() {
|
|
389
501
|
const ret = new Object();
|
|
390
502
|
return ret;
|
|
391
503
|
},
|
|
392
|
-
|
|
504
|
+
__wbg_new_ff7f9cc4c9a4a0cf: function() {
|
|
393
505
|
const ret = new Array();
|
|
394
506
|
return ret;
|
|
395
507
|
},
|
|
396
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
530
|
+
__wbg_next_ae5b710aea83f41e: function() { return handleError(function (arg0) {
|
|
423
531
|
const ret = arg0.next();
|
|
424
532
|
return ret;
|
|
425
533
|
}, arguments); },
|
|
426
|
-
|
|
534
|
+
__wbg_next_f577b3e02c9be709: function(arg0) {
|
|
427
535
|
const ret = arg0.next;
|
|
428
536
|
return ret;
|
|
429
537
|
},
|
|
430
|
-
|
|
538
|
+
__wbg_now_054cfe5280165f10: function() {
|
|
431
539
|
const ret = Date.now();
|
|
432
540
|
return ret;
|
|
433
541
|
},
|
|
434
|
-
|
|
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
|
-
|
|
546
|
+
__wbg_push_3584053bd77475ee: function(arg0, arg1) {
|
|
439
547
|
const ret = arg0.push(arg1);
|
|
440
548
|
return ret;
|
|
441
549
|
},
|
|
442
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
575
|
+
__wbg_set_method_5a35896632ca213d: function(arg0, arg1, arg2) {
|
|
464
576
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
465
577
|
},
|
|
466
|
-
|
|
578
|
+
__wbg_set_mode_6fa10db5d133ac26: function(arg0, arg1) {
|
|
467
579
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
468
580
|
},
|
|
469
|
-
|
|
581
|
+
__wbg_set_signal_0d93209e168efc85: function(arg0, arg1) {
|
|
470
582
|
arg0.signal = arg1;
|
|
471
583
|
},
|
|
472
|
-
|
|
584
|
+
__wbg_signal_a0d9fead74a07e34: function(arg0) {
|
|
473
585
|
const ret = arg0.signal;
|
|
474
586
|
return ret;
|
|
475
587
|
},
|
|
476
|
-
|
|
477
|
-
const ret = typeof
|
|
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
|
-
|
|
481
|
-
const ret = typeof
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
604
|
+
__wbg_status_1544422a8c64aef0: function(arg0) {
|
|
493
605
|
const ret = arg0.status;
|
|
494
606
|
return ret;
|
|
495
607
|
},
|
|
496
|
-
|
|
608
|
+
__wbg_stringify_ab2dc46051bc59b7: function() { return handleError(function (arg0) {
|
|
497
609
|
const ret = JSON.stringify(arg0);
|
|
498
610
|
return ret;
|
|
499
611
|
}, arguments); },
|
|
500
|
-
|
|
612
|
+
__wbg_text_667415a14b08e789: function() { return handleError(function (arg0) {
|
|
501
613
|
const ret = arg0.text();
|
|
502
614
|
return ret;
|
|
503
615
|
}, arguments); },
|
|
504
|
-
|
|
505
|
-
const ret = arg0.then(arg1
|
|
616
|
+
__wbg_then_5ce48a9e69c0d3cd: function(arg0, arg1) {
|
|
617
|
+
const ret = arg0.then(arg1);
|
|
506
618
|
return ret;
|
|
507
619
|
},
|
|
508
|
-
|
|
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
|
-
|
|
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:
|
|
518
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
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:
|
|
523
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
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
|
|
553
|
-
wasm.
|
|
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
|
|
557
|
-
const ret = wasm.
|
|
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
|
|
564
|
-
wasm.
|
|
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
|