fiverunner 0.9.0 → 1.1.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.
@@ -0,0 +1,532 @@
1
+ #!/usr/bin/env node
2
+ //#region node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs
3
+ async function QuickJSRaw(moduleArg = {}) {
4
+ var moduleRtn;
5
+ var d = moduleArg, aa = !!globalThis.window, n = !!globalThis.WorkerGlobalScope, q = globalThis.process?.versions?.node && "renderer" != globalThis.process?.type;
6
+ if (q) {
7
+ const { createRequire: a } = await import("node:module");
8
+ var require = a(import.meta.url);
9
+ }
10
+ function r(a) {
11
+ a = { log: a || function() {} };
12
+ for (const c of r.Pa) c(a);
13
+ return d.quickJSEmscriptenExtensions = a;
14
+ }
15
+ r.Pa = [];
16
+ d.quickjsEmscriptenInit = r;
17
+ r.Pa.push((a) => {
18
+ a.getWasmMemory = function() {
19
+ return t;
20
+ };
21
+ });
22
+ var u = "./this.program", v = (a, c) => {
23
+ throw c;
24
+ }, w = import.meta.url, y = "", z, A;
25
+ if (q) {
26
+ var fs = require("node:fs");
27
+ w.startsWith("file:") && (y = require("node:path").dirname(require("node:url").fileURLToPath(w)) + "/");
28
+ A = (a) => {
29
+ a = B(a) ? new URL(a) : a;
30
+ return fs.readFileSync(a);
31
+ };
32
+ z = async (a) => {
33
+ a = B(a) ? new URL(a) : a;
34
+ return fs.readFileSync(a, void 0);
35
+ };
36
+ 1 < process.argv.length && (u = process.argv[1].replace(/\\/g, "/"));
37
+ process.argv.slice(2);
38
+ v = (a, c) => {
39
+ process.exitCode = a;
40
+ throw c;
41
+ };
42
+ } else if (aa || n) {
43
+ try {
44
+ y = new URL(".", w).href;
45
+ } catch {}
46
+ n && (A = (a) => {
47
+ var c = new XMLHttpRequest();
48
+ c.open("GET", a, !1);
49
+ c.responseType = "arraybuffer";
50
+ c.send(null);
51
+ return new Uint8Array(c.response);
52
+ });
53
+ z = async (a) => {
54
+ if (B(a)) return new Promise((b, e) => {
55
+ var f = new XMLHttpRequest();
56
+ f.open("GET", a, !0);
57
+ f.responseType = "arraybuffer";
58
+ f.onload = () => {
59
+ 200 == f.status || 0 == f.status && f.response ? b(f.response) : e(f.status);
60
+ };
61
+ f.onerror = e;
62
+ f.send(null);
63
+ });
64
+ var c = await fetch(a, { credentials: "same-origin" });
65
+ if (c.ok) return c.arrayBuffer();
66
+ throw Error(c.status + " : " + c.url);
67
+ };
68
+ }
69
+ var C = console.log.bind(console), D = console.error.bind(console), E, F = !1, G, B = (a) => a.startsWith("file://"), H, I, J, K, L, M, ba = !1;
70
+ function ca() {
71
+ var a = t.buffer;
72
+ d.HEAP8 = J = new Int8Array(a);
73
+ new Int16Array(a);
74
+ d.HEAPU8 = K = new Uint8Array(a);
75
+ new Uint16Array(a);
76
+ L = new Int32Array(a);
77
+ M = new Uint32Array(a);
78
+ new Float32Array(a);
79
+ new Float64Array(a);
80
+ new BigInt64Array(a);
81
+ new BigUint64Array(a);
82
+ }
83
+ function N(a) {
84
+ d.onAbort?.(a);
85
+ a = "Aborted(" + a + ")";
86
+ D(a);
87
+ F = !0;
88
+ a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
89
+ I?.(a);
90
+ throw a;
91
+ }
92
+ var O;
93
+ async function da(a) {
94
+ if (!E) try {
95
+ var c = await z(a);
96
+ return new Uint8Array(c);
97
+ } catch {}
98
+ if (a == O && E) a = new Uint8Array(E);
99
+ else if (A) a = A(a);
100
+ else throw "both async and sync fetching of the wasm failed";
101
+ return a;
102
+ }
103
+ async function ea(a, c) {
104
+ try {
105
+ var b = await da(a);
106
+ return await WebAssembly.instantiate(b, c);
107
+ } catch (e) {
108
+ D(`failed to asynchronously prepare wasm: ${e}`), N(e);
109
+ }
110
+ }
111
+ async function fa(a) {
112
+ var c = O;
113
+ if (!E && !B(c) && !q) try {
114
+ var b = fetch(c, { credentials: "same-origin" });
115
+ return await WebAssembly.instantiateStreaming(b, a);
116
+ } catch (e) {
117
+ D(`wasm streaming compile failed: ${e}`), D("falling back to ArrayBuffer instantiation");
118
+ }
119
+ return ea(c, a);
120
+ }
121
+ class P {
122
+ name = "ExitStatus";
123
+ constructor(a) {
124
+ this.message = `Program terminated with exit(${a})`;
125
+ this.status = a;
126
+ }
127
+ }
128
+ var ha = (a) => {
129
+ for (; 0 < a.length;) a.shift()(d);
130
+ }, ia = [], ja = [], ka = () => {
131
+ var a = d.preRun.shift();
132
+ ja.push(a);
133
+ }, Q = !0, t, la = new TextDecoder(), ma = (a, c, b, e) => {
134
+ b = c + b;
135
+ if (e) return b;
136
+ for (; a[c] && !(c >= b);) ++c;
137
+ return c;
138
+ }, R = (a, c, b) => a ? la.decode(K.subarray(a, ma(K, a, c, b))) : "", S = 0, na = [
139
+ 0,
140
+ 31,
141
+ 60,
142
+ 91,
143
+ 121,
144
+ 152,
145
+ 182,
146
+ 213,
147
+ 244,
148
+ 274,
149
+ 305,
150
+ 335
151
+ ], oa = [
152
+ 0,
153
+ 31,
154
+ 59,
155
+ 90,
156
+ 120,
157
+ 151,
158
+ 181,
159
+ 212,
160
+ 243,
161
+ 273,
162
+ 304,
163
+ 334
164
+ ], T = {}, pa = (a) => {
165
+ G = a;
166
+ Q || 0 < S || (d.onExit?.(a), F = !0);
167
+ v(a, new P(a));
168
+ }, qa = (a) => {
169
+ if (!F) try {
170
+ a();
171
+ } catch (c) {
172
+ c instanceof P || "unwind" == c || v(1, c);
173
+ } finally {
174
+ if (!(Q || 0 < S)) try {
175
+ G = a = G, pa(a);
176
+ } catch (c) {
177
+ c instanceof P || "unwind" == c || v(1, c);
178
+ }
179
+ }
180
+ }, U = (a, c, b) => {
181
+ var e = K;
182
+ if (!(0 < b)) return 0;
183
+ var f = c;
184
+ b = c + b - 1;
185
+ for (var g = 0; g < a.length; ++g) {
186
+ var h = a.codePointAt(g);
187
+ if (127 >= h) {
188
+ if (c >= b) break;
189
+ e[c++] = h;
190
+ } else if (2047 >= h) {
191
+ if (c + 1 >= b) break;
192
+ e[c++] = 192 | h >> 6;
193
+ e[c++] = 128 | h & 63;
194
+ } else if (65535 >= h) {
195
+ if (c + 2 >= b) break;
196
+ e[c++] = 224 | h >> 12;
197
+ e[c++] = 128 | h >> 6 & 63;
198
+ e[c++] = 128 | h & 63;
199
+ } else {
200
+ if (c + 3 >= b) break;
201
+ e[c++] = 240 | h >> 18;
202
+ e[c++] = 128 | h >> 12 & 63;
203
+ e[c++] = 128 | h >> 6 & 63;
204
+ e[c++] = 128 | h & 63;
205
+ g++;
206
+ }
207
+ }
208
+ e[c] = 0;
209
+ return c - f;
210
+ }, V = {}, ra = () => {
211
+ if (!W) {
212
+ var a = {
213
+ USER: "web_user",
214
+ LOGNAME: "web_user",
215
+ PATH: "/",
216
+ PWD: "/",
217
+ HOME: "/home/web_user",
218
+ LANG: (globalThis.navigator?.language ?? "C").replace("-", "_") + ".UTF-8",
219
+ _: u || "./this.program"
220
+ }, c;
221
+ for (c in V) void 0 === V[c] ? delete a[c] : a[c] = V[c];
222
+ var b = [];
223
+ for (c in a) b.push(`${c}=${a[c]}`);
224
+ W = b;
225
+ }
226
+ return W;
227
+ }, W, X = (a) => {
228
+ for (var c = 0, b = 0; b < a.length; ++b) {
229
+ var e = a.charCodeAt(b);
230
+ 127 >= e ? c++ : 2047 >= e ? c += 2 : 55296 <= e && 57343 >= e ? (c += 4, ++b) : c += 3;
231
+ }
232
+ return c;
233
+ }, sa = [
234
+ null,
235
+ [],
236
+ []
237
+ ], va = (a, c, b, e) => {
238
+ var f = {
239
+ string: (k) => {
240
+ var l = 0;
241
+ if (null !== k && void 0 !== k && 0 !== k) {
242
+ l = X(k) + 1;
243
+ var p = Y(l);
244
+ U(k, p, l);
245
+ l = p;
246
+ }
247
+ return l;
248
+ },
249
+ array: (k) => {
250
+ var l = Y(k.length);
251
+ J.set(k, l);
252
+ return l;
253
+ }
254
+ };
255
+ a = d["_" + a];
256
+ var g = [], h = 0;
257
+ if (e) for (var m = 0; m < e.length; m++) {
258
+ var x = f[b[m]];
259
+ x ? (0 === h && (h = ta()), g[m] = x(e[m])) : g[m] = e[m];
260
+ }
261
+ b = a(...g);
262
+ return b = function(k) {
263
+ 0 !== h && ua(h);
264
+ return "string" === c ? R(k) : "boolean" === c ? !!k : k;
265
+ }(b);
266
+ };
267
+ d.wasmMemory ? t = d.wasmMemory : t = new WebAssembly.Memory({
268
+ initial: (d.INITIAL_MEMORY || 16777216) / 65536,
269
+ maximum: 32768
270
+ });
271
+ ca();
272
+ d.noExitRuntime && (Q = d.noExitRuntime);
273
+ d.print && (C = d.print);
274
+ d.printErr && (D = d.printErr);
275
+ d.wasmBinary && (E = d.wasmBinary);
276
+ d.thisProgram && (u = d.thisProgram);
277
+ if (d.preInit) for ("function" == typeof d.preInit && (d.preInit = [d.preInit]); 0 < d.preInit.length;) d.preInit.shift()();
278
+ d.cwrap = (a, c, b, e) => {
279
+ var f = !b || b.every((g) => "number" === g || "boolean" === g);
280
+ return "string" !== c && f && !e ? d["_" + a] : (...g) => va(a, c, b, g);
281
+ };
282
+ d.UTF8ToString = R;
283
+ d.stringToUTF8 = (a, c, b) => U(a, c, b);
284
+ d.lengthBytesUTF8 = X;
285
+ var wa, ua, Y, ta, xa = {
286
+ b: (a, c, b, e) => N(`Assertion failed: ${R(a)}, at: ` + [
287
+ c ? R(c) : "unknown filename",
288
+ b,
289
+ e ? R(e) : "unknown function"
290
+ ]),
291
+ q: () => N(""),
292
+ l: () => {
293
+ Q = !1;
294
+ S = 0;
295
+ },
296
+ m: function(a, c) {
297
+ a = -9007199254740992 > a || 9007199254740992 < a ? NaN : Number(a);
298
+ a = /* @__PURE__ */ new Date(1e3 * a);
299
+ L[c >> 2] = a.getSeconds();
300
+ L[c + 4 >> 2] = a.getMinutes();
301
+ L[c + 8 >> 2] = a.getHours();
302
+ L[c + 12 >> 2] = a.getDate();
303
+ L[c + 16 >> 2] = a.getMonth();
304
+ L[c + 20 >> 2] = a.getFullYear() - 1900;
305
+ L[c + 24 >> 2] = a.getDay();
306
+ var b = a.getFullYear();
307
+ L[c + 28 >> 2] = (0 !== b % 4 || 0 === b % 100 && 0 !== b % 400 ? oa : na)[a.getMonth()] + a.getDate() - 1 | 0;
308
+ L[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
309
+ b = new Date(a.getFullYear(), 6, 1).getTimezoneOffset();
310
+ var e = new Date(a.getFullYear(), 0, 1).getTimezoneOffset();
311
+ L[c + 32 >> 2] = (b != e && a.getTimezoneOffset() == Math.min(e, b)) | 0;
312
+ },
313
+ j: (a, c) => {
314
+ T[a] && (clearTimeout(T[a].id), delete T[a]);
315
+ if (!c) return 0;
316
+ T[a] = {
317
+ id: setTimeout(() => {
318
+ delete T[a];
319
+ qa(() => wa(a, performance.now()));
320
+ }, c),
321
+ Qa: c
322
+ };
323
+ return 0;
324
+ },
325
+ n: (a, c, b, e) => {
326
+ var f = (/* @__PURE__ */ new Date()).getFullYear(), g = new Date(f, 0, 1).getTimezoneOffset();
327
+ f = new Date(f, 6, 1).getTimezoneOffset();
328
+ M[a >> 2] = 60 * Math.max(g, f);
329
+ L[c >> 2] = Number(g != f);
330
+ c = (h) => {
331
+ var m = Math.abs(h);
332
+ return `UTC${0 <= h ? "-" : "+"}${String(Math.floor(m / 60)).padStart(2, "0")}${String(m % 60).padStart(2, "0")}`;
333
+ };
334
+ a = c(g);
335
+ c = c(f);
336
+ f < g ? (U(a, b, 17), U(c, e, 17)) : (U(a, e, 17), U(c, b, 17));
337
+ },
338
+ p: () => Date.now(),
339
+ k: (a) => {
340
+ var c = K.length;
341
+ a >>>= 0;
342
+ if (2147483648 < a) return !1;
343
+ for (var b = 1; 4 >= b; b *= 2) {
344
+ var e = c * (1 + .2 / b);
345
+ e = Math.min(e, a + 100663296);
346
+ a: {
347
+ e = (Math.min(2147483648, 65536 * Math.ceil(Math.max(a, e) / 65536)) - t.buffer.byteLength + 65535) / 65536 | 0;
348
+ try {
349
+ t.grow(e);
350
+ ca();
351
+ var f = 1;
352
+ break a;
353
+ } catch (g) {}
354
+ f = void 0;
355
+ }
356
+ if (f) return !0;
357
+ }
358
+ return !1;
359
+ },
360
+ e: (a, c) => {
361
+ var b = 0, e = 0, f;
362
+ for (f of ra()) {
363
+ var g = c + b;
364
+ M[a + e >> 2] = g;
365
+ b += U(f, g, Infinity) + 1;
366
+ e += 4;
367
+ }
368
+ return 0;
369
+ },
370
+ f: (a, c) => {
371
+ var b = ra();
372
+ M[a >> 2] = b.length;
373
+ a = 0;
374
+ for (var e of b) a += X(e) + 1;
375
+ M[c >> 2] = a;
376
+ return 0;
377
+ },
378
+ d: () => 52,
379
+ o: function() {
380
+ return 70;
381
+ },
382
+ c: (a, c, b, e) => {
383
+ for (var f = 0, g = 0; g < b; g++) {
384
+ var h = M[c >> 2], m = M[c + 4 >> 2];
385
+ c += 8;
386
+ for (var x = 0; x < m; x++) {
387
+ var k = a, l = K[h + x], p = sa[k];
388
+ 0 === l || 10 === l ? (k = 1 === k ? C : D, l = ma(p, 0), l = la.decode(p.buffer ? p.subarray(0, l) : new Uint8Array(p.slice(0, l))), k(l), p.length = 0) : p.push(l);
389
+ }
390
+ f += m;
391
+ }
392
+ M[e >> 2] = f;
393
+ return 0;
394
+ },
395
+ a: t,
396
+ r: pa,
397
+ s: function(a, c, b, e, f) {
398
+ return d.callbacks.callFunction(void 0, a, c, b, e, f);
399
+ },
400
+ i: function(a) {
401
+ return d.callbacks.shouldInterrupt(void 0, a);
402
+ },
403
+ h: function(a, c, b) {
404
+ b = R(b);
405
+ return d.callbacks.loadModuleSource(void 0, a, c, b);
406
+ },
407
+ g: function(a, c, b, e) {
408
+ b = R(b);
409
+ e = R(e);
410
+ return d.callbacks.normalizeModule(void 0, a, c, b, e);
411
+ },
412
+ t: function(a, c) {
413
+ d.callbacks.freeHostRef(void 0, a, c);
414
+ }
415
+ }, Z = await async function() {
416
+ function a(b) {
417
+ b = Z = b.exports;
418
+ d._malloc = b.v;
419
+ d._QTS_Throw = b.w;
420
+ d._QTS_NewError = b.x;
421
+ d._QTS_RuntimeSetMemoryLimit = b.y;
422
+ d._QTS_RuntimeComputeMemoryUsage = b.z;
423
+ d._QTS_RuntimeDumpMemoryUsage = b.A;
424
+ d._QTS_RecoverableLeakCheck = b.B;
425
+ d._QTS_BuildIsSanitizeLeak = b.C;
426
+ d._QTS_RuntimeSetMaxStackSize = b.D;
427
+ d._QTS_GetUndefined = b.E;
428
+ d._QTS_GetNull = b.F;
429
+ d._QTS_GetFalse = b.G;
430
+ d._QTS_GetTrue = b.H;
431
+ d._QTS_NewHostRef = b.I;
432
+ d._QTS_GetHostRefId = b.J;
433
+ d._QTS_NewRuntime = b.K;
434
+ d._QTS_FreeRuntime = b.L;
435
+ d._free = b.M;
436
+ d._QTS_NewContext = b.N;
437
+ d._QTS_FreeContext = b.O;
438
+ d._QTS_FreeValuePointer = b.P;
439
+ d._QTS_FreeValuePointerRuntime = b.Q;
440
+ d._QTS_FreeVoidPointer = b.R;
441
+ d._QTS_FreeCString = b.S;
442
+ d._QTS_DupValuePointer = b.T;
443
+ d._QTS_NewObject = b.U;
444
+ d._QTS_NewObjectProto = b.V;
445
+ d._QTS_NewArray = b.W;
446
+ d._QTS_NewArrayBuffer = b.X;
447
+ d._QTS_NewFloat64 = b.Y;
448
+ d._QTS_GetFloat64 = b.Z;
449
+ d._QTS_NewString = b._;
450
+ d._QTS_GetString = b.$;
451
+ d._QTS_GetArrayBuffer = b.aa;
452
+ d._QTS_GetArrayBufferLength = b.ba;
453
+ d._QTS_NewSymbol = b.ca;
454
+ d._QTS_GetSymbolDescriptionOrKey = b.da;
455
+ d._QTS_IsGlobalSymbol = b.ea;
456
+ d._QTS_IsJobPending = b.fa;
457
+ d._QTS_ExecutePendingJob = b.ga;
458
+ d._QTS_GetProp = b.ha;
459
+ d._QTS_GetPropNumber = b.ia;
460
+ d._QTS_SetProp = b.ja;
461
+ d._QTS_DefineProp = b.ka;
462
+ d._QTS_GetOwnPropertyNames = b.la;
463
+ d._QTS_Call = b.ma;
464
+ d._QTS_ResolveException = b.na;
465
+ d._QTS_Dump = b.oa;
466
+ d._QTS_Eval = b.pa;
467
+ d._QTS_GetModuleNamespace = b.qa;
468
+ d._QTS_Typeof = b.ra;
469
+ d._QTS_GetLength = b.sa;
470
+ d._QTS_IsEqual = b.ta;
471
+ d._QTS_GetGlobalObject = b.ua;
472
+ d._QTS_NewPromiseCapability = b.va;
473
+ d._QTS_PromiseState = b.wa;
474
+ d._QTS_PromiseResult = b.xa;
475
+ d._QTS_TestStringArg = b.ya;
476
+ d._QTS_GetDebugLogEnabled = b.za;
477
+ d._QTS_SetDebugLogEnabled = b.Aa;
478
+ d._QTS_BuildIsDebug = b.Ba;
479
+ d._QTS_BuildIsAsyncify = b.Ca;
480
+ d._QTS_NewFunction = b.Da;
481
+ d._QTS_ArgvGetJSValueConstPointer = b.Ea;
482
+ d._QTS_RuntimeEnableInterruptHandler = b.Fa;
483
+ d._QTS_RuntimeDisableInterruptHandler = b.Ga;
484
+ d._QTS_RuntimeEnableModuleLoader = b.Ha;
485
+ d._QTS_RuntimeDisableModuleLoader = b.Ia;
486
+ d._QTS_bjson_encode = b.Ja;
487
+ d._QTS_bjson_decode = b.Ka;
488
+ wa = b.La;
489
+ ua = b.Ma;
490
+ Y = b.Na;
491
+ ta = b.Oa;
492
+ return Z;
493
+ }
494
+ var c = { a: xa };
495
+ if (d.instantiateWasm) return new Promise((b) => {
496
+ d.instantiateWasm(c, (e, f) => {
497
+ b(a(e, f));
498
+ });
499
+ });
500
+ O ??= d.locateFile ? d.locateFile ? d.locateFile("emscripten-module.wasm", y) : y + "emscripten-module.wasm" : new URL("emscripten-module.wasm", import.meta.url).href;
501
+ return a((await fa(c)).instance);
502
+ }();
503
+ (function() {
504
+ function a() {
505
+ d.calledRun = !0;
506
+ if (!F) {
507
+ ba = !0;
508
+ Z.u();
509
+ H?.(d);
510
+ d.onRuntimeInitialized?.();
511
+ if (d.postRun) for ("function" == typeof d.postRun && (d.postRun = [d.postRun]); d.postRun.length;) {
512
+ var c = d.postRun.shift();
513
+ ia.push(c);
514
+ }
515
+ ha(ia);
516
+ }
517
+ }
518
+ if (d.preRun) for ("function" == typeof d.preRun && (d.preRun = [d.preRun]); d.preRun.length;) ka();
519
+ ha(ja);
520
+ d.setStatus ? (d.setStatus("Running..."), setTimeout(() => {
521
+ setTimeout(() => d.setStatus(""), 1);
522
+ a();
523
+ }, 1)) : a();
524
+ })();
525
+ ba ? moduleRtn = d : moduleRtn = new Promise((a, c) => {
526
+ H = a;
527
+ I = c;
528
+ });
529
+ return moduleRtn;
530
+ }
531
+ //#endregion
532
+ export { QuickJSRaw as default };
@@ -0,0 +1,147 @@
1
+ #!/usr/bin/env node
2
+ //#region node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs
3
+ var QuickJSFFI = class {
4
+ constructor(module) {
5
+ this.module = module;
6
+ this.DEBUG = !1;
7
+ this.QTS_Throw = this.module.cwrap("QTS_Throw", "number", ["number", "number"]);
8
+ this.QTS_NewError = this.module.cwrap("QTS_NewError", "number", ["number"]);
9
+ this.QTS_RuntimeSetMemoryLimit = this.module.cwrap("QTS_RuntimeSetMemoryLimit", null, ["number", "number"]);
10
+ this.QTS_RuntimeComputeMemoryUsage = this.module.cwrap("QTS_RuntimeComputeMemoryUsage", "number", ["number", "number"]);
11
+ this.QTS_RuntimeDumpMemoryUsage = this.module.cwrap("QTS_RuntimeDumpMemoryUsage", "number", ["number"]);
12
+ this.QTS_RecoverableLeakCheck = this.module.cwrap("QTS_RecoverableLeakCheck", "number", []);
13
+ this.QTS_BuildIsSanitizeLeak = this.module.cwrap("QTS_BuildIsSanitizeLeak", "number", []);
14
+ this.QTS_RuntimeSetMaxStackSize = this.module.cwrap("QTS_RuntimeSetMaxStackSize", null, ["number", "number"]);
15
+ this.QTS_GetUndefined = this.module.cwrap("QTS_GetUndefined", "number", []);
16
+ this.QTS_GetNull = this.module.cwrap("QTS_GetNull", "number", []);
17
+ this.QTS_GetFalse = this.module.cwrap("QTS_GetFalse", "number", []);
18
+ this.QTS_GetTrue = this.module.cwrap("QTS_GetTrue", "number", []);
19
+ this.QTS_NewHostRef = this.module.cwrap("QTS_NewHostRef", "number", ["number", "number"]);
20
+ this.QTS_GetHostRefId = this.module.cwrap("QTS_GetHostRefId", "number", ["number"]);
21
+ this.QTS_NewRuntime = this.module.cwrap("QTS_NewRuntime", "number", []);
22
+ this.QTS_FreeRuntime = this.module.cwrap("QTS_FreeRuntime", null, ["number"]);
23
+ this.QTS_NewContext = this.module.cwrap("QTS_NewContext", "number", ["number", "number"]);
24
+ this.QTS_FreeContext = this.module.cwrap("QTS_FreeContext", null, ["number"]);
25
+ this.QTS_FreeValuePointer = this.module.cwrap("QTS_FreeValuePointer", null, ["number", "number"]);
26
+ this.QTS_FreeValuePointerRuntime = this.module.cwrap("QTS_FreeValuePointerRuntime", null, ["number", "number"]);
27
+ this.QTS_FreeVoidPointer = this.module.cwrap("QTS_FreeVoidPointer", null, ["number", "number"]);
28
+ this.QTS_FreeCString = this.module.cwrap("QTS_FreeCString", null, ["number", "number"]);
29
+ this.QTS_DupValuePointer = this.module.cwrap("QTS_DupValuePointer", "number", ["number", "number"]);
30
+ this.QTS_NewObject = this.module.cwrap("QTS_NewObject", "number", ["number"]);
31
+ this.QTS_NewObjectProto = this.module.cwrap("QTS_NewObjectProto", "number", ["number", "number"]);
32
+ this.QTS_NewArray = this.module.cwrap("QTS_NewArray", "number", ["number"]);
33
+ this.QTS_NewArrayBuffer = this.module.cwrap("QTS_NewArrayBuffer", "number", [
34
+ "number",
35
+ "number",
36
+ "number"
37
+ ]);
38
+ this.QTS_NewFloat64 = this.module.cwrap("QTS_NewFloat64", "number", ["number", "number"]);
39
+ this.QTS_GetFloat64 = this.module.cwrap("QTS_GetFloat64", "number", ["number", "number"]);
40
+ this.QTS_NewString = this.module.cwrap("QTS_NewString", "number", ["number", "number"]);
41
+ this.QTS_GetString = this.module.cwrap("QTS_GetString", "number", ["number", "number"]);
42
+ this.QTS_GetArrayBuffer = this.module.cwrap("QTS_GetArrayBuffer", "number", ["number", "number"]);
43
+ this.QTS_GetArrayBufferLength = this.module.cwrap("QTS_GetArrayBufferLength", "number", ["number", "number"]);
44
+ this.QTS_NewSymbol = this.module.cwrap("QTS_NewSymbol", "number", [
45
+ "number",
46
+ "number",
47
+ "number"
48
+ ]);
49
+ this.QTS_GetSymbolDescriptionOrKey = this.module.cwrap("QTS_GetSymbolDescriptionOrKey", "number", ["number", "number"]);
50
+ this.QTS_IsGlobalSymbol = this.module.cwrap("QTS_IsGlobalSymbol", "number", ["number", "number"]);
51
+ this.QTS_IsJobPending = this.module.cwrap("QTS_IsJobPending", "number", ["number"]);
52
+ this.QTS_ExecutePendingJob = this.module.cwrap("QTS_ExecutePendingJob", "number", [
53
+ "number",
54
+ "number",
55
+ "number"
56
+ ]);
57
+ this.QTS_GetProp = this.module.cwrap("QTS_GetProp", "number", [
58
+ "number",
59
+ "number",
60
+ "number"
61
+ ]);
62
+ this.QTS_GetPropNumber = this.module.cwrap("QTS_GetPropNumber", "number", [
63
+ "number",
64
+ "number",
65
+ "number"
66
+ ]);
67
+ this.QTS_SetProp = this.module.cwrap("QTS_SetProp", null, [
68
+ "number",
69
+ "number",
70
+ "number",
71
+ "number"
72
+ ]);
73
+ this.QTS_DefineProp = this.module.cwrap("QTS_DefineProp", null, [
74
+ "number",
75
+ "number",
76
+ "number",
77
+ "number",
78
+ "number",
79
+ "number",
80
+ "boolean",
81
+ "boolean",
82
+ "boolean"
83
+ ]);
84
+ this.QTS_GetOwnPropertyNames = this.module.cwrap("QTS_GetOwnPropertyNames", "number", [
85
+ "number",
86
+ "number",
87
+ "number",
88
+ "number",
89
+ "number"
90
+ ]);
91
+ this.QTS_Call = this.module.cwrap("QTS_Call", "number", [
92
+ "number",
93
+ "number",
94
+ "number",
95
+ "number",
96
+ "number"
97
+ ]);
98
+ this.QTS_ResolveException = this.module.cwrap("QTS_ResolveException", "number", ["number", "number"]);
99
+ this.QTS_Dump = this.module.cwrap("QTS_Dump", "number", ["number", "number"]);
100
+ this.QTS_Eval = this.module.cwrap("QTS_Eval", "number", [
101
+ "number",
102
+ "number",
103
+ "number",
104
+ "string",
105
+ "number",
106
+ "number"
107
+ ]);
108
+ this.QTS_GetModuleNamespace = this.module.cwrap("QTS_GetModuleNamespace", "number", ["number", "number"]);
109
+ this.QTS_Typeof = this.module.cwrap("QTS_Typeof", "number", ["number", "number"]);
110
+ this.QTS_GetLength = this.module.cwrap("QTS_GetLength", "number", [
111
+ "number",
112
+ "number",
113
+ "number"
114
+ ]);
115
+ this.QTS_IsEqual = this.module.cwrap("QTS_IsEqual", "number", [
116
+ "number",
117
+ "number",
118
+ "number",
119
+ "number"
120
+ ]);
121
+ this.QTS_GetGlobalObject = this.module.cwrap("QTS_GetGlobalObject", "number", ["number"]);
122
+ this.QTS_NewPromiseCapability = this.module.cwrap("QTS_NewPromiseCapability", "number", ["number", "number"]);
123
+ this.QTS_PromiseState = this.module.cwrap("QTS_PromiseState", "number", ["number", "number"]);
124
+ this.QTS_PromiseResult = this.module.cwrap("QTS_PromiseResult", "number", ["number", "number"]);
125
+ this.QTS_TestStringArg = this.module.cwrap("QTS_TestStringArg", null, ["string"]);
126
+ this.QTS_GetDebugLogEnabled = this.module.cwrap("QTS_GetDebugLogEnabled", "number", ["number"]);
127
+ this.QTS_SetDebugLogEnabled = this.module.cwrap("QTS_SetDebugLogEnabled", null, ["number", "number"]);
128
+ this.QTS_BuildIsDebug = this.module.cwrap("QTS_BuildIsDebug", "number", []);
129
+ this.QTS_BuildIsAsyncify = this.module.cwrap("QTS_BuildIsAsyncify", "number", []);
130
+ this.QTS_NewFunction = this.module.cwrap("QTS_NewFunction", "number", [
131
+ "number",
132
+ "string",
133
+ "number",
134
+ "boolean",
135
+ "number"
136
+ ]);
137
+ this.QTS_ArgvGetJSValueConstPointer = this.module.cwrap("QTS_ArgvGetJSValueConstPointer", "number", ["number", "number"]);
138
+ this.QTS_RuntimeEnableInterruptHandler = this.module.cwrap("QTS_RuntimeEnableInterruptHandler", null, ["number"]);
139
+ this.QTS_RuntimeDisableInterruptHandler = this.module.cwrap("QTS_RuntimeDisableInterruptHandler", null, ["number"]);
140
+ this.QTS_RuntimeEnableModuleLoader = this.module.cwrap("QTS_RuntimeEnableModuleLoader", null, ["number", "number"]);
141
+ this.QTS_RuntimeDisableModuleLoader = this.module.cwrap("QTS_RuntimeDisableModuleLoader", null, ["number"]);
142
+ this.QTS_bjson_encode = this.module.cwrap("QTS_bjson_encode", "number", ["number", "number"]);
143
+ this.QTS_bjson_decode = this.module.cwrap("QTS_bjson_decode", "number", ["number", "number"]);
144
+ }
145
+ };
146
+ //#endregion
147
+ export { QuickJSFFI };
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export { n as QuickJSModuleCallbacks, r as QuickJSWASMModule, i as applyBaseRuntimeOptions, a as applyModuleEvalRuntimeOptions } from "./chunk-V2S4ZYJR-nHgQdGnA.js";
package/dist/cfxlua.wasm CHANGED
Binary file