This commit is contained in:
2026-01-23 14:11:27 +01:00
parent 3be978ffb0
commit fdd9785fc7
4 changed files with 29 additions and 28 deletions

View File

@@ -83,10 +83,10 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
private offset = 0;
private isRunning = false;
private readonly memory = new WebAssembly.Memory({
initial: 4096,
maximum: 8192
});
private readonly memory = new WebAssembly.Memory({
initial: 4096,
maximum: 8192
});
private memoryView!: Int32Array;
@@ -97,14 +97,14 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
seed = 42424242;
perf?: PerformanceStore;
constructor(
private readonly registry: NodeRegistry,
public cache?: SyncCache<Int32Array>
) {
this.cache = undefined;
this.refreshView();
log.info('MemoryRuntimeExecutor initialized');
}
constructor(
private readonly registry: NodeRegistry,
public cache?: SyncCache<Int32Array>
) {
this.cache = undefined;
this.refreshView();
log.info('MemoryRuntimeExecutor initialized');
}
private refreshView(): void {
this.memoryView = new Int32Array(this.memory.buffer);