Guard browser OPFS custom session wasm paths

This commit is contained in:
2026-06-13 23:41:50 +08:00
parent 4f174cb0c2
commit 327f86804c
2 changed files with 62 additions and 12 deletions

View File

@@ -4545,13 +4545,17 @@
return opfsPath;
}
function opfsCustomSessionPaths(machineId, parameterFilename, toolTableFilename, wasmPaths) {
function opfsCustomSessionPaths(machineId, parameterFilename, toolTableFilename, iniWasmPath) {
return {
opfs: {
parameters: opfsMachineFilePath(machineId, parameterFilename),
toolTable: opfsMachineFilePath(machineId, toolTableFilename),
},
wasm: wasmPaths,
wasm: {
ini: iniWasmPath,
parameters: `/work/${parameterFilename}`,
toolTable: `/work/${toolTableFilename}`,
},
};
}
@@ -9440,11 +9444,7 @@
"browser-ini-file-session",
"browser-custom.var",
"browser-custom-tool.tbl",
{
ini: "/work/browser-ini-file-session.ini",
parameters: "/work/browser-custom.var",
toolTable: "/work/browser-custom-tool.tbl",
},
"/work/browser-ini-file-session.ini",
),
);
verifyExpectedOutput(
@@ -9614,11 +9614,7 @@
"browser-ini-override-session",
"browser-explicit.var",
"browser-explicit-tool.tbl",
{
ini: "/work/browser-ini-override-session.ini",
parameters: "/work/browser-explicit.var",
toolTable: "/work/browser-explicit-tool.tbl",
},
"/work/browser-ini-override-session.ini",
),
);
verifyExpectedOutput(