wasm-idle 1.1.0 → 1.2.0
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/README.md +267 -112
- package/dist/container/bash-profile.d.ts +80 -0
- package/dist/container/bash-profile.js +328 -0
- package/dist/container/binding.d.ts +39 -0
- package/dist/container/binding.js +331 -0
- package/dist/container/clang-runtime.d.ts +42 -0
- package/dist/container/clang-runtime.js +561 -0
- package/dist/container/client.d.ts +14 -0
- package/dist/container/client.js +185 -0
- package/dist/container/explorer.d.ts +31 -0
- package/dist/container/explorer.js +112 -0
- package/dist/container/index.d.ts +11 -0
- package/dist/container/index.js +11 -0
- package/dist/container/owner-worker.d.ts +19 -0
- package/dist/container/owner-worker.js +464 -0
- package/dist/container/protocol.d.ts +84 -0
- package/dist/container/protocol.js +28 -0
- package/dist/container/runtime-adapter.d.ts +75 -0
- package/dist/container/runtime-adapter.js +537 -0
- package/dist/container/shell-control.d.ts +49 -0
- package/dist/container/shell-control.js +360 -0
- package/dist/container/workspace.d.ts +12 -0
- package/dist/container/workspace.js +29 -0
- package/dist/index.d.ts +1 -1
- package/dist/playground/assetBridge.js +111 -33
- package/dist/playground/assets.d.ts +10 -2
- package/dist/playground/c3.js +22 -0
- package/dist/playground/c3Memory.d.ts +19 -0
- package/dist/playground/c3Memory.js +117 -0
- package/dist/playground/cachedClang.js +143 -34
- package/dist/playground/clang.d.ts +5 -1
- package/dist/playground/clang.js +61 -5
- package/dist/playground/clangAssetIntegrity.js +6 -6
- package/dist/playground/clangWorkerProtocol.d.ts +12 -1
- package/dist/playground/cobol.d.ts +3 -0
- package/dist/playground/cobol.js +10 -1
- package/dist/playground/commonlispAssets.d.ts +2 -2
- package/dist/playground/compiledArtifactCache.d.ts +3 -1
- package/dist/playground/compiledArtifactCache.js +31 -5
- package/dist/playground/compiledLldb.d.ts +41 -0
- package/dist/playground/compiledLldb.js +167 -0
- package/dist/playground/d.d.ts +10 -2
- package/dist/playground/d.js +161 -14
- package/dist/playground/debugDeadline.d.ts +12 -0
- package/dist/playground/debugDeadline.js +34 -0
- package/dist/playground/debugMailbox.d.ts +12 -0
- package/dist/playground/debugMailbox.js +77 -0
- package/dist/playground/dotnet.js +6 -8
- package/dist/playground/fortran.d.ts +3 -0
- package/dist/playground/fortran.js +10 -1
- package/dist/playground/go.js +23 -7
- package/dist/playground/goDebugInstrumentation.js +207 -97
- package/dist/playground/java-debug-FMHDKUN6.js +124 -0
- package/dist/playground/java-debug-notices.txt +492 -0
- package/dist/playground/java.d.ts +17 -1
- package/dist/playground/java.js +162 -5
- package/dist/playground/javaDebug.d.ts +62 -0
- package/dist/playground/javaDebug.js +305 -0
- package/dist/playground/javaDebugBridge.d.ts +6 -0
- package/dist/playground/javaDebugBridge.js +250 -0
- package/dist/playground/javaDebugSource.d.ts +9 -0
- package/dist/playground/javaDebugSource.js +4 -0
- package/dist/playground/javaRuntimeErrors.d.ts +9 -0
- package/dist/playground/javaRuntimeErrors.js +93 -0
- package/dist/playground/lean4Assets.d.ts +1 -25
- package/dist/playground/lean4Assets.js +2 -123
- package/dist/playground/lfortran.js +10 -0
- package/dist/playground/lfortranAssets.d.ts +2 -2
- package/dist/playground/lldbSession.d.ts +23 -2
- package/dist/playground/lldbSession.js +278 -58
- package/dist/playground/lldbSourcePath.d.ts +2 -0
- package/dist/playground/lldbSourcePath.js +9 -0
- package/dist/playground/lua.d.ts +20 -1
- package/dist/playground/lua.js +190 -8
- package/dist/playground/luaDebug.d.ts +1 -0
- package/dist/playground/luaDebug.js +1 -0
- package/dist/playground/nim.d.ts +1 -0
- package/dist/playground/nim.js +30 -0
- package/dist/playground/objectivec.d.ts +10 -6
- package/dist/playground/objectivec.js +85 -10
- package/dist/playground/options.d.ts +12 -4
- package/dist/playground/python.d.ts +8 -1
- package/dist/playground/python.js +89 -6
- package/dist/playground/ruby.d.ts +10 -1
- package/dist/playground/ruby.js +66 -1
- package/dist/playground/rubyDebug.d.ts +21 -0
- package/dist/playground/rubyDebug.js +128 -0
- package/dist/playground/runtimeAssetCache.d.ts +1 -32
- package/dist/playground/runtimeAssetCache.js +1 -193
- package/dist/playground/runtimeSession.d.ts +2 -2
- package/dist/playground/runtimeSession.js +11 -11
- package/dist/playground/rust.d.ts +10 -0
- package/dist/playground/rust.js +230 -51
- package/dist/playground/sandbox.d.ts +8 -1
- package/dist/playground/staticStdinRing.d.ts +2 -1
- package/dist/playground/staticStdinRing.js +21 -10
- package/dist/playground/staticWorkerRuntime.d.ts +15 -1
- package/dist/playground/staticWorkerRuntime.js +127 -19
- package/dist/playground/stdinBuffer.d.ts +1 -1
- package/dist/playground/stdinBuffer.js +19 -2
- package/dist/playground/tinygo.d.ts +3 -0
- package/dist/playground/tinygo.js +88 -6
- package/dist/playground/typescript.js +8 -0
- package/dist/playground/v.d.ts +6 -2
- package/dist/playground/v.js +76 -13
- package/dist/playground/wasmAwkVersion.d.ts +13 -13
- package/dist/playground/wasmAwkVersion.js +4 -4
- package/dist/playground/wasmBqnVersion.d.ts +2 -2
- package/dist/playground/wasmBqnVersion.js +2 -2
- package/dist/playground/wasmC3Version.d.ts +2 -2
- package/dist/playground/wasmC3Version.js +2 -2
- package/dist/playground/wasmClojureScriptVersion.d.ts +2 -2
- package/dist/playground/wasmClojureScriptVersion.js +2 -2
- package/dist/playground/wasmCommonLispVersion.d.ts +2 -2
- package/dist/playground/wasmCommonLispVersion.js +2 -2
- package/dist/playground/wasmDIntegrity.d.ts +5 -5
- package/dist/playground/wasmDIntegrity.js +5 -5
- package/dist/playground/wasmDVersion.d.ts +16 -1
- package/dist/playground/wasmDVersion.js +16 -1
- package/dist/playground/wasmDebugVersion.d.ts +1 -1
- package/dist/playground/wasmDebugVersion.js +1 -1
- package/dist/playground/wasmForthVersion.d.ts +2 -2
- package/dist/playground/wasmForthVersion.js +2 -2
- package/dist/playground/wasmGleamVersion.d.ts +2 -2
- package/dist/playground/wasmGleamVersion.js +2 -2
- package/dist/playground/wasmGrainVersion.d.ts +2 -2
- package/dist/playground/wasmGrainVersion.js +2 -2
- package/dist/playground/wasmJVersion.d.ts +2 -2
- package/dist/playground/wasmJVersion.js +2 -2
- package/dist/playground/wasmJanetVersion.js +2 -2
- package/dist/playground/wasmJuliaVersion.js +2 -2
- package/dist/playground/wasmLean4Version.d.ts +1 -110
- package/dist/playground/wasmLean4Version.js +2 -111
- package/dist/playground/wasmLfortranVersion.d.ts +2 -2
- package/dist/playground/wasmLfortranVersion.js +2 -2
- package/dist/playground/wasmLuaVersion.d.ts +1 -1
- package/dist/playground/wasmLuaVersion.js +1 -1
- package/dist/playground/wasmNimVersion.d.ts +9 -9
- package/dist/playground/wasmNimVersion.js +6 -6
- package/dist/playground/wasmOcamlVersion.d.ts +2 -2
- package/dist/playground/wasmOcamlVersion.js +1 -1
- package/dist/playground/wasmPascalVersion.js +2 -2
- package/dist/playground/wasmPerlVersion.js +2 -2
- package/dist/playground/wasmPrologVersion.d.ts +2 -2
- package/dist/playground/wasmPrologVersion.js +2 -2
- package/dist/playground/wasmReScriptVersion.d.ts +2 -2
- package/dist/playground/wasmReScriptVersion.js +2 -2
- package/dist/playground/wasmRustVersion.d.ts +26 -38
- package/dist/playground/wasmRustVersion.js +25 -40
- package/dist/playground/wasmTclVersion.d.ts +4 -4
- package/dist/playground/wasmTclVersion.js +2 -2
- package/dist/playground/wasmTinyGoVersion.d.ts +14 -14
- package/dist/playground/wasmTinyGoVersion.js +14 -14
- package/dist/playground/wasmTypeScriptVersion.d.ts +5 -5
- package/dist/playground/wasmTypeScriptVersion.js +5 -5
- package/dist/playground/worker/cachedClangCompile.js +52 -4
- package/dist/playground/worker/cachedClangExecute.js +6 -5
- package/dist/playground/worker/clang.js +33 -11
- package/dist/playground/worker/cobol.js +3 -3
- package/dist/playground/worker/d.js +63 -7
- package/dist/playground/worker/fortran.js +3 -3
- package/dist/playground/worker/go.js +16 -5
- package/dist/playground/worker/haskell.js +10 -7
- package/dist/playground/worker/java.js +263 -45
- package/dist/playground/worker/javaDebugEvaluator.d.ts +16 -0
- package/dist/playground/worker/javaDebugEvaluator.js +44 -0
- package/dist/playground/worker/javaDebugRuntime.d.ts +24 -0
- package/dist/playground/worker/javaDebugRuntime.js +315 -0
- package/dist/playground/worker/javaOutput.d.ts +11 -0
- package/dist/playground/worker/javaOutput.js +54 -0
- package/dist/playground/worker/lua.js +15 -3
- package/dist/playground/worker/php.js +15 -9
- package/dist/playground/worker/python.js +102 -30
- package/dist/playground/worker/pythonExecution.js +17 -1
- package/dist/playground/worker/pythonWorkspaceFiles.d.ts +6 -0
- package/dist/playground/worker/pythonWorkspaceFiles.js +26 -0
- package/dist/playground/worker/pythonWorkspaceImports.d.ts +4 -0
- package/dist/playground/worker/pythonWorkspaceImports.js +129 -0
- package/dist/playground/worker/r.js +13 -6
- package/dist/playground/worker/ruby.js +13 -0
- package/dist/playground/worker/rubyDebugPreview.d.ts +2 -0
- package/dist/playground/worker/rubyDebugPreview.js +80 -0
- package/dist/playground/worker/rubyTracepoint.d.ts +16 -0
- package/dist/playground/worker/rubyTracepoint.js +162 -0
- package/dist/playground/worker/rust.js +38 -3
- package/dist/playground/worker/sqlite.js +4 -3
- package/dist/playground/worker/tinygo.js +11 -3
- package/dist/playground/worker/typescript.js +2 -3
- package/dist/playground/worker/v.js +32 -7
- package/dist/playground/worker/wat.js +2 -3
- package/dist/playground/worker/zig.js +20 -6
- package/dist/playground/workerSession.d.ts +1 -28
- package/dist/playground/workerSession.js +1 -164
- package/dist/playground/zig.js +4 -0
- package/package.json +66 -15
- package/dist/playground/worker/python.runtime.cases.d.ts +0 -1
- package/dist/playground/worker/python.runtime.cases.js +0 -374
package/dist/playground/v.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { WorkerAssetBridge } from './assetBridge';
|
|
2
|
+
import { CompiledLldbSandbox } from './compiledLldb';
|
|
2
3
|
import { resolveVBaseUrl, resolveRuntimeAssetConfig } from './assets';
|
|
3
4
|
import { BusyError, CancelledError, DEFAULT_WORKSPACE_LIMITS, OutputLimitError, RuntimeConfigurationError, TimeoutError, resolveExecutionLimits, validateExecutionWorkspace } from '@wasm-idle/core';
|
|
4
5
|
import { resolveSandboxExecutionArgs } from './options';
|
|
5
|
-
import { createWasmIdleSharedBuffer } from './sharedBuffer';
|
|
6
|
+
import { createWasmIdleSharedBuffer, requireSharedArrayBuffer } from './sharedBuffer';
|
|
6
7
|
import { WorkerSession } from './workerSession';
|
|
7
8
|
import { reportWorkerInputReady } from './workerProgress';
|
|
8
9
|
import { flushBufferedEof, flushQueuedStdin, resetBufferedStdin } from './stdinBuffer';
|
|
@@ -10,9 +11,9 @@ const OUTPUT_ENCODER = new TextEncoder();
|
|
|
10
11
|
const abortReason = (signal, phase) => signal.reason !== undefined
|
|
11
12
|
? signal.reason
|
|
12
13
|
: new DOMException(phase === 'startup' ? 'V runtime startup aborted' : 'V execution aborted', 'AbortError');
|
|
13
|
-
class VLang {
|
|
14
|
+
class VLang extends CompiledLldbSandbox {
|
|
15
|
+
lldbEntryFunction = 'main__main';
|
|
14
16
|
language = 'V';
|
|
15
|
-
output;
|
|
16
17
|
worker = null;
|
|
17
18
|
buffer = createWasmIdleSharedBuffer(4096);
|
|
18
19
|
pendingInput = [];
|
|
@@ -26,6 +27,7 @@ class VLang {
|
|
|
26
27
|
assetBridge = null;
|
|
27
28
|
activeVBaseUrl = '';
|
|
28
29
|
activeOperation = null;
|
|
30
|
+
runtimeAssetCache;
|
|
29
31
|
disposed = false;
|
|
30
32
|
disposePromise = null;
|
|
31
33
|
disposeCancellation = new CancelledError('V sandbox disposed', {
|
|
@@ -53,6 +55,14 @@ class VLang {
|
|
|
53
55
|
this.pendingEof = false;
|
|
54
56
|
}
|
|
55
57
|
});
|
|
58
|
+
setRuntimeAssetCache(cache) {
|
|
59
|
+
if (this.runtimeAssetCache === cache)
|
|
60
|
+
return;
|
|
61
|
+
if (this.disposed || this.worker || this.activeOperation) {
|
|
62
|
+
throw new RuntimeConfigurationError('Cannot replace an active V compiler cache');
|
|
63
|
+
}
|
|
64
|
+
this.runtimeAssetCache = cache;
|
|
65
|
+
}
|
|
56
66
|
beginOperation(phase) {
|
|
57
67
|
if (this.disposed) {
|
|
58
68
|
throw new RuntimeConfigurationError('V sandbox is disposed', {
|
|
@@ -190,10 +200,11 @@ class VLang {
|
|
|
190
200
|
if (!this.isOperationActive(operation))
|
|
191
201
|
return;
|
|
192
202
|
let timeout;
|
|
193
|
-
|
|
203
|
+
const cancelTimeout = () => {
|
|
194
204
|
if (timeout !== undefined)
|
|
195
205
|
clearTimeout(timeout);
|
|
196
|
-
}
|
|
206
|
+
};
|
|
207
|
+
operation.cleanups.push(cancelTimeout);
|
|
197
208
|
try {
|
|
198
209
|
timeout = setTimeout(() => {
|
|
199
210
|
if (!this.isOperationActive(operation))
|
|
@@ -211,6 +222,7 @@ class VLang {
|
|
|
211
222
|
catch (error) {
|
|
212
223
|
this.cancelOperation(operation, error);
|
|
213
224
|
}
|
|
225
|
+
return cancelTimeout;
|
|
214
226
|
}
|
|
215
227
|
resetExplicitStdinState() {
|
|
216
228
|
this.pendingInput = [];
|
|
@@ -241,6 +253,7 @@ class VLang {
|
|
|
241
253
|
let limits;
|
|
242
254
|
let unbindPreSessionAbort = () => undefined;
|
|
243
255
|
try {
|
|
256
|
+
this.configureLldb(runtimeAssets, options);
|
|
244
257
|
signal = options.signal;
|
|
245
258
|
unbindPreSessionAbort = this.bindPreSessionAbort(operation, signal);
|
|
246
259
|
if (!this.isOperationActive(operation) || signal?.aborted) {
|
|
@@ -303,7 +316,7 @@ class VLang {
|
|
|
303
316
|
}
|
|
304
317
|
let assetBridge;
|
|
305
318
|
try {
|
|
306
|
-
assetBridge = new WorkerAssetBridge(worker, 'clang', clangAssets, progress, limits.maxAssetBytes);
|
|
319
|
+
assetBridge = new WorkerAssetBridge(worker, 'clang', clangAssets, progress, limits.maxAssetBytes, false, this.runtimeAssetCache);
|
|
307
320
|
}
|
|
308
321
|
catch (error) {
|
|
309
322
|
try {
|
|
@@ -409,6 +422,10 @@ class VLang {
|
|
|
409
422
|
});
|
|
410
423
|
}
|
|
411
424
|
write(input) {
|
|
425
|
+
if (this.lldbSession) {
|
|
426
|
+
void this.lldbSession.write(input);
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
412
429
|
if (this.disposed)
|
|
413
430
|
return;
|
|
414
431
|
this.pendingInput.push(input);
|
|
@@ -416,6 +433,10 @@ class VLang {
|
|
|
416
433
|
this.flushPendingInput();
|
|
417
434
|
}
|
|
418
435
|
eof() {
|
|
436
|
+
if (this.lldbSession) {
|
|
437
|
+
void this.lldbSession.eof();
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
419
440
|
if (this.disposed)
|
|
420
441
|
return;
|
|
421
442
|
this.pendingEof = true;
|
|
@@ -451,13 +472,17 @@ class VLang {
|
|
|
451
472
|
let limits;
|
|
452
473
|
let workspace;
|
|
453
474
|
let stdin;
|
|
475
|
+
const debugMode = options.debugMode || (options.debug ? 'trace' : 'none');
|
|
454
476
|
try {
|
|
455
|
-
const debug = options.debug;
|
|
456
477
|
if (!this.isOperationActive(activeOperation)) {
|
|
457
478
|
return Promise.reject(this.releaseBeforeSession(activeOperation, 'V execution cancelled'));
|
|
458
479
|
}
|
|
459
|
-
if (
|
|
460
|
-
return Promise.reject(this.releaseBeforeSession(activeOperation, 'V debugging
|
|
480
|
+
if (debugMode !== 'none' && debugMode !== 'lldb') {
|
|
481
|
+
return Promise.reject(this.releaseBeforeSession(activeOperation, 'V debugging requires debugMode: lldb.'));
|
|
482
|
+
}
|
|
483
|
+
if (debugMode === 'lldb') {
|
|
484
|
+
requireSharedArrayBuffer('V debugging');
|
|
485
|
+
this.prepareLldb(options, 'main.v');
|
|
461
486
|
}
|
|
462
487
|
signal = options.signal;
|
|
463
488
|
unbindPreSessionAbort = this.bindPreSessionAbort(activeOperation, signal);
|
|
@@ -505,19 +530,23 @@ class VLang {
|
|
|
505
530
|
let outputBytes = 0;
|
|
506
531
|
const workerOperation = this.workerSession.beginRun(worker, reject);
|
|
507
532
|
const timeoutMs = Math.min(2_147_483_647, limits.compileTimeoutMs + limits.runTimeoutMs);
|
|
508
|
-
this.bindOperationTimeout(activeOperation, timeoutMs);
|
|
533
|
+
const cancelCompileTimeout = this.bindOperationTimeout(activeOperation, timeoutMs);
|
|
509
534
|
this.bindAbortSignal(activeOperation, signal);
|
|
510
535
|
if (!this.isOperationActive(activeOperation))
|
|
511
536
|
return;
|
|
512
537
|
const runUid = ++this.uid;
|
|
513
538
|
let handler;
|
|
539
|
+
let handedOff = false;
|
|
514
540
|
const ownsWorker = () => this.worker === worker &&
|
|
515
541
|
this.assetBridge === assetBridge &&
|
|
516
542
|
worker.onmessage === handler;
|
|
517
|
-
const ownsRun = () => this.isOperationActive(activeOperation) &&
|
|
543
|
+
const ownsRun = () => this.isOperationActive(activeOperation) &&
|
|
544
|
+
(handedOff || ownsWorker()) &&
|
|
545
|
+
runUid === this.uid;
|
|
518
546
|
const claimRun = () => {
|
|
519
547
|
if (!ownsRun())
|
|
520
548
|
return false;
|
|
549
|
+
this.lldbPending = false;
|
|
521
550
|
this.finishExplicitStdin(activeOperation);
|
|
522
551
|
this.workerSession.complete(workerOperation);
|
|
523
552
|
this.releaseOperation(activeOperation);
|
|
@@ -547,7 +576,37 @@ class VLang {
|
|
|
547
576
|
return;
|
|
548
577
|
if (!ownsRun())
|
|
549
578
|
return;
|
|
550
|
-
const { output, results, log: workerLog, error, buffer, progress } = event.data;
|
|
579
|
+
const { output, results, log: workerLog, error, buffer, progress, lldbArtifact } = event.data;
|
|
580
|
+
if (lldbArtifact) {
|
|
581
|
+
cancelCompileTimeout?.();
|
|
582
|
+
handedOff = true;
|
|
583
|
+
const completion = this.startLldb(lldbArtifact, options, programArgs, this.pendingInput, this.pendingEof, (output) => {
|
|
584
|
+
if (!ownsRun())
|
|
585
|
+
return;
|
|
586
|
+
outputBytes += OUTPUT_ENCODER.encode(output).byteLength;
|
|
587
|
+
if (outputBytes > limits.maxOutputBytes) {
|
|
588
|
+
failRun(new OutputLimitError(`V output exceeded ${limits.maxOutputBytes} bytes`, {
|
|
589
|
+
actual: outputBytes,
|
|
590
|
+
limit: limits.maxOutputBytes,
|
|
591
|
+
phase: 'execute',
|
|
592
|
+
runtimeId: 'V'
|
|
593
|
+
}), true);
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
this.output?.(output);
|
|
597
|
+
});
|
|
598
|
+
this.pendingEof = false;
|
|
599
|
+
if (this.workerSession.release(worker)) {
|
|
600
|
+
assetBridge.dispose();
|
|
601
|
+
this.assetBridge = null;
|
|
602
|
+
delete this.worker;
|
|
603
|
+
}
|
|
604
|
+
void completion.then((result) => {
|
|
605
|
+
if (claimRun())
|
|
606
|
+
resolve(result);
|
|
607
|
+
}, (error) => failRun(error));
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
551
610
|
if (buffer && !hasExplicitStdin) {
|
|
552
611
|
this.waitingForInput = true;
|
|
553
612
|
if (!prepare) {
|
|
@@ -614,7 +673,8 @@ class VLang {
|
|
|
614
673
|
compileArgs,
|
|
615
674
|
programArgs,
|
|
616
675
|
activePath: workspace.activePath,
|
|
617
|
-
workspaceFiles: workspace.workspaceFiles
|
|
676
|
+
workspaceFiles: workspace.workspaceFiles,
|
|
677
|
+
debugMode
|
|
618
678
|
});
|
|
619
679
|
}
|
|
620
680
|
catch (error) {
|
|
@@ -633,6 +693,7 @@ class VLang {
|
|
|
633
693
|
cancelOperation(operation, reason) {
|
|
634
694
|
if (!this.isOperationActive(operation))
|
|
635
695
|
return;
|
|
696
|
+
void this.stopLldb();
|
|
636
697
|
this.finishExplicitStdin(operation);
|
|
637
698
|
operation.cancelled = true;
|
|
638
699
|
operation.cancellationReason = reason;
|
|
@@ -650,6 +711,7 @@ class VLang {
|
|
|
650
711
|
terminate(reason = 'Process terminated') {
|
|
651
712
|
if (this.disposed)
|
|
652
713
|
return;
|
|
714
|
+
void this.stopLldb();
|
|
653
715
|
const operation = this.activeOperation;
|
|
654
716
|
if (operation) {
|
|
655
717
|
this.cancelOperation(operation, reason);
|
|
@@ -674,6 +736,7 @@ class VLang {
|
|
|
674
736
|
dispose() {
|
|
675
737
|
if (this.disposePromise)
|
|
676
738
|
return this.disposePromise;
|
|
739
|
+
void this.stopLldb();
|
|
677
740
|
this.disposed = true;
|
|
678
741
|
this.disposePromise = Promise.resolve();
|
|
679
742
|
const activeOperation = this.activeOperation;
|
|
@@ -2,14 +2,14 @@ export declare const WASM_AWK_RUNTIME_PROFILE: Readonly<{
|
|
|
2
2
|
profileId: "goawk-v1.31.0-go1.25.3";
|
|
3
3
|
goVersion: "go1.25.3";
|
|
4
4
|
goawkVersion: "v1.31.0";
|
|
5
|
-
manifestFingerprint: "
|
|
5
|
+
manifestFingerprint: "06d46ec8504550dd7ca181287362e8fecaef834bbbc8b4170a1ca8e71be9c825";
|
|
6
6
|
manifestReceipt: Readonly<{
|
|
7
7
|
bytes: 887;
|
|
8
|
-
sha256: "
|
|
8
|
+
sha256: "3f1a76c79df9d89435cf618bb2b6ae917832c34ae82d64af4dc316a9e97be2b6";
|
|
9
9
|
}>;
|
|
10
10
|
workerReceipt: Readonly<{
|
|
11
|
-
bytes:
|
|
12
|
-
sha256: "
|
|
11
|
+
bytes: 14511;
|
|
12
|
+
sha256: "20348feaa45809cacd835418296d693e3ed28a32159253d0db8d64a2b735f7a0";
|
|
13
13
|
}>;
|
|
14
14
|
goShimReceipt: Readonly<{
|
|
15
15
|
bytes: 16992;
|
|
@@ -27,14 +27,14 @@ export declare const WASM_AWK_RUNTIME_BUNDLE: Readonly<{
|
|
|
27
27
|
profileId: "goawk-v1.31.0-go1.25.3";
|
|
28
28
|
goVersion: "go1.25.3";
|
|
29
29
|
goawkVersion: "v1.31.0";
|
|
30
|
-
manifestFingerprint: "
|
|
30
|
+
manifestFingerprint: "06d46ec8504550dd7ca181287362e8fecaef834bbbc8b4170a1ca8e71be9c825";
|
|
31
31
|
manifestReceipt: Readonly<{
|
|
32
32
|
bytes: 887;
|
|
33
|
-
sha256: "
|
|
33
|
+
sha256: "3f1a76c79df9d89435cf618bb2b6ae917832c34ae82d64af4dc316a9e97be2b6";
|
|
34
34
|
}>;
|
|
35
35
|
workerReceipt: Readonly<{
|
|
36
|
-
bytes:
|
|
37
|
-
sha256: "
|
|
36
|
+
bytes: 14511;
|
|
37
|
+
sha256: "20348feaa45809cacd835418296d693e3ed28a32159253d0db8d64a2b735f7a0";
|
|
38
38
|
}>;
|
|
39
39
|
goShimReceipt: Readonly<{
|
|
40
40
|
bytes: 16992;
|
|
@@ -48,12 +48,12 @@ export declare const WASM_AWK_RUNTIME_BUNDLE: Readonly<{
|
|
|
48
48
|
}>;
|
|
49
49
|
}>;
|
|
50
50
|
workerReceipt: Readonly<{
|
|
51
|
-
bytes:
|
|
52
|
-
sha256: "
|
|
51
|
+
bytes: 14511;
|
|
52
|
+
sha256: "20348feaa45809cacd835418296d693e3ed28a32159253d0db8d64a2b735f7a0";
|
|
53
53
|
}>;
|
|
54
54
|
}>;
|
|
55
|
-
export declare const WASM_AWK_ASSET_VERSION: "
|
|
55
|
+
export declare const WASM_AWK_ASSET_VERSION: "06d46ec8504550dd7ca181287362e8fecaef834bbbc8b4170a1ca8e71be9c825";
|
|
56
56
|
export declare const WASM_AWK_RUNNER_RECEIPT: Readonly<{
|
|
57
|
-
bytes:
|
|
58
|
-
sha256: "
|
|
57
|
+
bytes: 14511;
|
|
58
|
+
sha256: "20348feaa45809cacd835418296d693e3ed28a32159253d0db8d64a2b735f7a0";
|
|
59
59
|
}>;
|
|
@@ -3,14 +3,14 @@ export const WASM_AWK_RUNTIME_PROFILE = Object.freeze({
|
|
|
3
3
|
profileId: 'goawk-v1.31.0-go1.25.3',
|
|
4
4
|
goVersion: 'go1.25.3',
|
|
5
5
|
goawkVersion: 'v1.31.0',
|
|
6
|
-
manifestFingerprint: '
|
|
6
|
+
manifestFingerprint: '06d46ec8504550dd7ca181287362e8fecaef834bbbc8b4170a1ca8e71be9c825',
|
|
7
7
|
manifestReceipt: Object.freeze({
|
|
8
8
|
bytes: 887,
|
|
9
|
-
sha256: '
|
|
9
|
+
sha256: '3f1a76c79df9d89435cf618bb2b6ae917832c34ae82d64af4dc316a9e97be2b6'
|
|
10
10
|
}),
|
|
11
11
|
workerReceipt: Object.freeze({
|
|
12
|
-
bytes:
|
|
13
|
-
sha256: '
|
|
12
|
+
bytes: 14511,
|
|
13
|
+
sha256: '20348feaa45809cacd835418296d693e3ed28a32159253d0db8d64a2b735f7a0'
|
|
14
14
|
}),
|
|
15
15
|
goShimReceipt: Object.freeze({
|
|
16
16
|
bytes: 16992,
|
|
@@ -19,6 +19,6 @@ export declare const WASM_BQN_RUNTIME_PROFILE: {
|
|
|
19
19
|
};
|
|
20
20
|
export declare const WASM_BQN_ASSET_VERSION: "82cd4627902071d9f9adc2da18e9df647c9223ea6b19cf030a1cf68848c12fce";
|
|
21
21
|
export declare const WASM_BQN_RUNNER_RECEIPT: {
|
|
22
|
-
readonly bytes:
|
|
23
|
-
readonly sha256: "
|
|
22
|
+
readonly bytes: 15218;
|
|
23
|
+
readonly sha256: "258120f6abb8c42a0e244931141e3fb9fb766ebee2c7188ffb6d9db3589ea74d";
|
|
24
24
|
};
|
|
@@ -19,6 +19,6 @@ export const WASM_BQN_RUNTIME_PROFILE = {
|
|
|
19
19
|
};
|
|
20
20
|
export const WASM_BQN_ASSET_VERSION = WASM_BQN_RUNTIME_PROFILE.manifestFingerprint;
|
|
21
21
|
export const WASM_BQN_RUNNER_RECEIPT = {
|
|
22
|
-
bytes:
|
|
23
|
-
sha256: '
|
|
22
|
+
bytes: 15218,
|
|
23
|
+
sha256: '258120f6abb8c42a0e244931141e3fb9fb766ebee2c7188ffb6d9db3589ea74d'
|
|
24
24
|
};
|
|
@@ -15,6 +15,6 @@ export declare const bundledC3Profile: {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
export declare const bundledC3WorkerReceipt: {
|
|
18
|
-
readonly bytes:
|
|
19
|
-
readonly sha256: "
|
|
18
|
+
readonly bytes: 17225;
|
|
19
|
+
readonly sha256: "043817070c6f6c9f6ce3d570a5de79c7be1ca3dba3d40c482be9f962ad714c57";
|
|
20
20
|
};
|
|
@@ -16,6 +16,6 @@ export const bundledC3Profile = {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
export const bundledC3WorkerReceipt = {
|
|
19
|
-
bytes:
|
|
20
|
-
sha256: '
|
|
19
|
+
bytes: 17225,
|
|
20
|
+
sha256: '043817070c6f6c9f6ce3d570a5de79c7be1ca3dba3d40c482be9f962ad714c57'
|
|
21
21
|
};
|
|
@@ -16,6 +16,6 @@ export declare const WASM_CLOJURESCRIPT_RUNTIME_PROFILE: {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const WASM_CLOJURESCRIPT_ASSET_VERSION: "11cf68d6d0987a15fe908464b160396108d4d37e7bb1d8fe02d05222eec7ed7e";
|
|
18
18
|
export declare const WASM_CLOJURESCRIPT_RUNNER_RECEIPT: {
|
|
19
|
-
readonly bytes:
|
|
20
|
-
readonly sha256: "
|
|
19
|
+
readonly bytes: 17656;
|
|
20
|
+
readonly sha256: "d485e8399d07394c004e846d78a976f2d4310b56b6cac4c3c35e40881c35184f";
|
|
21
21
|
};
|
|
@@ -16,6 +16,6 @@ export const WASM_CLOJURESCRIPT_RUNTIME_PROFILE = {
|
|
|
16
16
|
};
|
|
17
17
|
export const WASM_CLOJURESCRIPT_ASSET_VERSION = WASM_CLOJURESCRIPT_RUNTIME_PROFILE.manifestFingerprint;
|
|
18
18
|
export const WASM_CLOJURESCRIPT_RUNNER_RECEIPT = {
|
|
19
|
-
bytes:
|
|
20
|
-
sha256: '
|
|
19
|
+
bytes: 17656,
|
|
20
|
+
sha256: 'd485e8399d07394c004e846d78a976f2d4310b56b6cac4c3c35e40881c35184f'
|
|
21
21
|
};
|
|
@@ -26,7 +26,7 @@ export declare const WASM_COMMONLISP_PROFILE: {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
readonly workerReceipt: {
|
|
29
|
-
readonly bytes:
|
|
30
|
-
readonly sha256: "
|
|
29
|
+
readonly bytes: 12104;
|
|
30
|
+
readonly sha256: "d179242c40cdce862ff45bb35f736eaf8e79b97bdc06754576406ad4de698b7d";
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -27,7 +27,7 @@ export const WASM_COMMONLISP_PROFILE = {
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
workerReceipt: {
|
|
30
|
-
bytes:
|
|
31
|
-
sha256: '
|
|
30
|
+
bytes: 12104,
|
|
31
|
+
sha256: 'd179242c40cdce862ff45bb35f736eaf8e79b97bdc06754576406ad4de698b7d'
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const WASM_D_INTEGRITY_VERSION = "
|
|
1
|
+
export declare const WASM_D_INTEGRITY_VERSION = "aebaa5b7c1ddf0cc";
|
|
2
2
|
export declare const WASM_D_OUTER_ASSET_RECEIPTS: Readonly<{
|
|
3
3
|
'index.js': Readonly<{
|
|
4
|
-
bytes:
|
|
5
|
-
sha256: "
|
|
6
|
-
uncompressedBytes:
|
|
7
|
-
uncompressedSha256: "
|
|
4
|
+
bytes: 50382;
|
|
5
|
+
sha256: "0671a0b3c7759a5a1bfd481c0a2a23ae22971bd80d8bb537581708f58937f218";
|
|
6
|
+
uncompressedBytes: 50382;
|
|
7
|
+
uncompressedSha256: "0671a0b3c7759a5a1bfd481c0a2a23ae22971bd80d8bb537581708f58937f218";
|
|
8
8
|
}>;
|
|
9
9
|
'runtime/runtime-manifest.v1.json': Readonly<{
|
|
10
10
|
bytes: 2303;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export const WASM_D_INTEGRITY_VERSION = '
|
|
1
|
+
export const WASM_D_INTEGRITY_VERSION = 'aebaa5b7c1ddf0cc';
|
|
2
2
|
export const WASM_D_OUTER_ASSET_RECEIPTS = Object.freeze({
|
|
3
3
|
'index.js': Object.freeze({
|
|
4
|
-
bytes:
|
|
5
|
-
sha256: '
|
|
6
|
-
uncompressedBytes:
|
|
7
|
-
uncompressedSha256: '
|
|
4
|
+
bytes: 50382,
|
|
5
|
+
sha256: '0671a0b3c7759a5a1bfd481c0a2a23ae22971bd80d8bb537581708f58937f218',
|
|
6
|
+
uncompressedBytes: 50382,
|
|
7
|
+
uncompressedSha256: '0671a0b3c7759a5a1bfd481c0a2a23ae22971bd80d8bb537581708f58937f218'
|
|
8
8
|
}),
|
|
9
9
|
'runtime/runtime-manifest.v1.json': Object.freeze({
|
|
10
10
|
bytes: 2303,
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
export declare const WASM_D_ASSET_VERSION = "
|
|
1
|
+
export declare const WASM_D_ASSET_VERSION = "454de816988f9ea9";
|
|
2
|
+
export declare const WASM_D_COMPILER_PROFILE: Readonly<{
|
|
3
|
+
version: "ldc-1.42.0-wasi-smoke";
|
|
4
|
+
manifestSha256: "1df7310e813913397f3e1ee49ee77665603745651b678767a82fa2057ffa2690";
|
|
5
|
+
lldProfile: "emscripten-lld-v2-llvm-16.0.4";
|
|
6
|
+
lldLoaderSha256: "991179802d1951f237b248c68ef8fc17993e89bbf5906c3795c2de52beaede88";
|
|
7
|
+
lldDataSha256: "8c58f81883c4f3f0980743dfb75b4241b69447f67b5731341f72ed98571a05c7";
|
|
8
|
+
ldc2: Readonly<{
|
|
9
|
+
bytes: 23577090;
|
|
10
|
+
sha256: "e0e0c2766ae3aff308c6d587439143c4a88e68f11c6e8084ce5f134ee87d2091";
|
|
11
|
+
}>;
|
|
12
|
+
lld: Readonly<{
|
|
13
|
+
bytes: 83133801;
|
|
14
|
+
sha256: "28f079e4997a4e2eebe02b8209a663d56eeba0815b010ff74b3ead2549d0ff9b";
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
export const WASM_D_ASSET_VERSION = '
|
|
1
|
+
export const WASM_D_ASSET_VERSION = '454de816988f9ea9';
|
|
2
|
+
export const WASM_D_COMPILER_PROFILE = Object.freeze({
|
|
3
|
+
version: 'ldc-1.42.0-wasi-smoke',
|
|
4
|
+
manifestSha256: '1df7310e813913397f3e1ee49ee77665603745651b678767a82fa2057ffa2690',
|
|
5
|
+
lldProfile: 'emscripten-lld-v2-llvm-16.0.4',
|
|
6
|
+
lldLoaderSha256: '991179802d1951f237b248c68ef8fc17993e89bbf5906c3795c2de52beaede88',
|
|
7
|
+
lldDataSha256: '8c58f81883c4f3f0980743dfb75b4241b69447f67b5731341f72ed98571a05c7',
|
|
8
|
+
ldc2: Object.freeze({
|
|
9
|
+
bytes: 23577090,
|
|
10
|
+
sha256: 'e0e0c2766ae3aff308c6d587439143c4a88e68f11c6e8084ce5f134ee87d2091'
|
|
11
|
+
}),
|
|
12
|
+
lld: Object.freeze({
|
|
13
|
+
bytes: 83133801,
|
|
14
|
+
sha256: '28f079e4997a4e2eebe02b8209a663d56eeba0815b010ff74b3ead2549d0ff9b'
|
|
15
|
+
})
|
|
16
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WASM_DEBUG_RUNTIME_PROFILE: Readonly<{
|
|
2
2
|
manifestReceipt: Readonly<{
|
|
3
3
|
bytes: 2853;
|
|
4
|
-
sha256: "
|
|
4
|
+
sha256: "d4b08c91cd9bc810d0862ea2a5ef5a092e52f6b22a6f3121499ec5d3df2086b5";
|
|
5
5
|
}>;
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const WASM_DEBUG_RUNTIME_PROFILE = Object.freeze({
|
|
2
2
|
manifestReceipt: Object.freeze({
|
|
3
3
|
bytes: 2853,
|
|
4
|
-
sha256: '
|
|
4
|
+
sha256: 'd4b08c91cd9bc810d0862ea2a5ef5a092e52f6b22a6f3121499ec5d3df2086b5'
|
|
5
5
|
})
|
|
6
6
|
});
|
|
@@ -13,6 +13,6 @@ export declare const WASM_FORTH_RUNTIME_PROFILE: {
|
|
|
13
13
|
};
|
|
14
14
|
export declare const WASM_FORTH_ASSET_VERSION: "86da4fe96b8e3b6f7b0f6b01660b08cc12ae88d8f8418cc01a33a353c4d6cbf4";
|
|
15
15
|
export declare const WASM_FORTH_RUNNER_RECEIPT: {
|
|
16
|
-
readonly bytes:
|
|
17
|
-
readonly sha256: "
|
|
16
|
+
readonly bytes: 11317;
|
|
17
|
+
readonly sha256: "7e54832ea9c4983bda8261dcde49b5968c626bf674792304d97ee200541ccbbd";
|
|
18
18
|
};
|
|
@@ -13,6 +13,6 @@ export const WASM_FORTH_RUNTIME_PROFILE = {
|
|
|
13
13
|
};
|
|
14
14
|
export const WASM_FORTH_ASSET_VERSION = WASM_FORTH_RUNTIME_PROFILE.manifestFingerprint;
|
|
15
15
|
export const WASM_FORTH_RUNNER_RECEIPT = {
|
|
16
|
-
bytes:
|
|
17
|
-
sha256: '
|
|
16
|
+
bytes: 11317,
|
|
17
|
+
sha256: '7e54832ea9c4983bda8261dcde49b5968c626bf674792304d97ee200541ccbbd'
|
|
18
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const WASM_GLEAM_ASSET_VERSION = "4cdb70d711e433b4b077680beb4d16cdc5503344b30fcf889bd410982f337506";
|
|
2
2
|
export declare const WASM_GLEAM_RUNNER_RECEIPT: {
|
|
3
|
-
readonly bytes:
|
|
4
|
-
readonly sha256: "
|
|
3
|
+
readonly bytes: 22223;
|
|
4
|
+
readonly sha256: "ac239a59fbcc08a4f31b13e21ad535fb8f70dc22fc7eb02ed955699d313bdfbf";
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const WASM_GLEAM_ASSET_VERSION = '4cdb70d711e433b4b077680beb4d16cdc5503344b30fcf889bd410982f337506';
|
|
2
2
|
export const WASM_GLEAM_RUNNER_RECEIPT = {
|
|
3
|
-
bytes:
|
|
4
|
-
sha256: '
|
|
3
|
+
bytes: 22223,
|
|
4
|
+
sha256: 'ac239a59fbcc08a4f31b13e21ad535fb8f70dc22fc7eb02ed955699d313bdfbf'
|
|
5
5
|
};
|
|
@@ -19,6 +19,6 @@ export declare const bundledGrainProfile: {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
export declare const bundledGrainWorkerReceipt: {
|
|
22
|
-
readonly bytes:
|
|
23
|
-
readonly sha256: "
|
|
22
|
+
readonly bytes: 28417;
|
|
23
|
+
readonly sha256: "b3650e7f75f4eb21fec429f6cb43fb436e031583902f585ec9851881f021b464";
|
|
24
24
|
};
|
|
@@ -20,6 +20,6 @@ export const bundledGrainProfile = {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
export const bundledGrainWorkerReceipt = {
|
|
23
|
-
bytes:
|
|
24
|
-
sha256: '
|
|
23
|
+
bytes: 28417,
|
|
24
|
+
sha256: 'b3650e7f75f4eb21fec429f6cb43fb436e031583902f585ec9851881f021b464'
|
|
25
25
|
};
|
|
@@ -19,6 +19,6 @@ export declare const WASM_J_RUNTIME_PROFILE: {
|
|
|
19
19
|
};
|
|
20
20
|
export declare const WASM_J_ASSET_VERSION: "ffa037148a6785c5ca7295ca34f00ac28f5057d7354be391d588868c218bab07";
|
|
21
21
|
export declare const WASM_J_RUNNER_RECEIPT: {
|
|
22
|
-
readonly bytes:
|
|
23
|
-
readonly sha256: "
|
|
22
|
+
readonly bytes: 14511;
|
|
23
|
+
readonly sha256: "ff52a685706515e9cf7bfc6f8b5796f9338e9c1b0e89f88bb7a5ba00879296a5";
|
|
24
24
|
};
|
|
@@ -19,6 +19,6 @@ export const WASM_J_RUNTIME_PROFILE = {
|
|
|
19
19
|
};
|
|
20
20
|
export const WASM_J_ASSET_VERSION = WASM_J_RUNTIME_PROFILE.manifestFingerprint;
|
|
21
21
|
export const WASM_J_RUNNER_RECEIPT = {
|
|
22
|
-
bytes:
|
|
23
|
-
sha256: '
|
|
22
|
+
bytes: 14511,
|
|
23
|
+
sha256: 'ff52a685706515e9cf7bfc6f8b5796f9338e9c1b0e89f88bb7a5ba00879296a5'
|
|
24
24
|
};
|
|
@@ -22,8 +22,8 @@ export const WASM_JANET_RUNTIME_PROFILE = {
|
|
|
22
22
|
export const WASM_JANET_RUNTIME_BUNDLE = Object.freeze({
|
|
23
23
|
profile: WASM_JANET_RUNTIME_PROFILE,
|
|
24
24
|
workerReceipt: {
|
|
25
|
-
bytes:
|
|
26
|
-
sha256: '
|
|
25
|
+
bytes: 21839,
|
|
26
|
+
sha256: 'a970c9954dc65fce99806f344855ec8893bab9ed032dfa0012b264b6abedff81'
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export const WASM_JANET_ASSET_VERSION = WASM_JANET_RUNTIME_PROFILE.manifestFingerprint;
|
|
@@ -31,8 +31,8 @@ export const WASM_JULIA_RUNTIME_PROFILE = {
|
|
|
31
31
|
export const WASM_JULIA_RUNTIME_BUNDLE = Object.freeze({
|
|
32
32
|
profile: WASM_JULIA_RUNTIME_PROFILE,
|
|
33
33
|
workerReceipt: {
|
|
34
|
-
bytes:
|
|
35
|
-
sha256: '
|
|
34
|
+
bytes: 28510,
|
|
35
|
+
sha256: 'be54f29775bd5e81560e93834b5783c94046109d53612cd547db5cda1563aa4e'
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
export const WASM_JULIA_ASSET_VERSION = WASM_JULIA_RUNTIME_PROFILE.manifestFingerprint;
|