继续推进浏览器 session path 断言组 guard

This commit is contained in:
2026-06-14 13:05:48 +08:00
parent 8de93be2ab
commit cba210b921
2 changed files with 76 additions and 19 deletions

View File

@@ -9536,13 +9536,14 @@
browserInterpMachineId,
opfsSessionLoadOptions(browserInterpWasmPaths),
);
const browserInterpExpectedSessionPaths = {
wasm: browserInterpWasmPaths,
};
assertOpfsSessionStaging(
"opfs_load_session_staging",
loadedSession,
browserInterpMachineId,
{
wasm: browserInterpWasmPaths,
},
browserInterpExpectedSessionPaths,
);
const browserInterpRestoreParameterResultLines = opfsParameterResultLinesForValues(
"restore",
@@ -9806,18 +9807,19 @@
iniFileToolTableWasmPath,
),
);
const iniNamedExpectedSessionPaths = opfsCustomSessionPaths(
iniFileMachineId,
iniFileParameterFilename,
iniFileToolTableFilename,
iniFileIniWasmPath,
iniFileParameterWasmPath,
iniFileToolTableWasmPath,
);
assertOpfsSessionStaging(
"opfs_load_ini_named_session_staging",
loadedIniFileSession,
iniFileMachineId,
opfsCustomSessionPaths(
iniFileMachineId,
iniFileParameterFilename,
iniFileToolTableFilename,
iniFileIniWasmPath,
iniFileParameterWasmPath,
iniFileToolTableWasmPath,
),
iniNamedExpectedSessionPaths,
);
const iniNamedRestoreParameterResultLines = opfsParameterResultLinesForValues(
"restore",
@@ -9972,18 +9974,19 @@
},
),
);
const explicitExpectedSessionPaths = opfsCustomSessionPaths(
iniOverrideMachineId,
explicitParameterFilename,
explicitToolTableFilename,
iniOverrideIniWasmPath,
explicitParameterWasmPath,
explicitToolTableWasmPath,
);
assertOpfsSessionStaging(
"opfs_load_explicit_session_staging",
loadedIniOverrideSession,
iniOverrideMachineId,
opfsCustomSessionPaths(
iniOverrideMachineId,
explicitParameterFilename,
explicitToolTableFilename,
iniOverrideIniWasmPath,
explicitParameterWasmPath,
explicitToolTableWasmPath,
),
explicitExpectedSessionPaths,
);
const explicitRestoreParameterResultLines = opfsParameterResultLinesForValues(
"restore",