fix: harden structured configuration comparisons (#467)
* refactor(process): split ownership observation helpers * fix: compare structured configuration canonically * test(conformance): tolerate Markdown line wrapping * refactor: name caught values explicitly
This commit is contained in:
@@ -297,11 +297,11 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
remaining(),
|
||||
options.signal,
|
||||
);
|
||||
} catch (error) {
|
||||
} catch (cause: unknown) {
|
||||
void opening
|
||||
.then((lateOpened) => closePlaywrightScenarioBrowser(lateOpened))
|
||||
.catch(() => undefined);
|
||||
throw error;
|
||||
throw cause;
|
||||
}
|
||||
try {
|
||||
await withPlaywrightExecutionBoundary(
|
||||
@@ -336,9 +336,9 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
options.signal,
|
||||
);
|
||||
return session;
|
||||
} catch (error) {
|
||||
} catch (cause: unknown) {
|
||||
await closePlaywrightScenarioBrowser(opened);
|
||||
throw error;
|
||||
throw cause;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user