Guard browser OPFS session wasm map helper

This commit is contained in:
2026-06-14 00:18:34 +08:00
parent 1a339be12d
commit caa6fd98c4
2 changed files with 67 additions and 10 deletions

View File

@@ -4549,6 +4549,10 @@
return `/work/${filename}`;
}
function opfsSessionWasmPaths(ini, parameters, toolTable) {
return { ini, parameters, toolTable };
}
function opfsCustomSessionPaths(machineId, parameterFilename, toolTableFilename, iniWasmPath) {
return {
opfs: {
@@ -9169,11 +9173,11 @@
loadedSession,
browserInterpMachineId,
{
wasm: {
ini: browserInterpIniWasmPath,
parameters: browserInterpParameterWasmPath,
toolTable: browserInterpToolTableWasmPath,
},
wasm: opfsSessionWasmPaths(
browserInterpIniWasmPath,
browserInterpParameterWasmPath,
browserInterpToolTableWasmPath,
),
},
);
verifyExpectedOutput(
@@ -9340,11 +9344,11 @@
loadedRandomSession,
browserRandomMachineId,
{
wasm: {
ini: browserRandomIniWasmPath,
parameters: browserRandomParameterWasmPath,
toolTable: browserRandomToolTableWasmPath,
},
wasm: opfsSessionWasmPaths(
browserRandomIniWasmPath,
browserRandomParameterWasmPath,
browserRandomToolTableWasmPath,
),
},
);
verifyExpectedOutput(