@caplets/opencode 0.5.3 → 0.5.5

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