fix: add a short race timeout for wasm pause handlers (#2124)
Seems like evaluation can sometimes be delayed for a while depending on the target state.
This commit is contained in:
Родитель
6902aae25b
Коммит
19879406b9
|
@ -2008,9 +2008,10 @@ export class Thread implements IVariableStoreLocationProvider {
|
|||
// WASM pauses should be unconditionally installed because DWARF parsing
|
||||
// always happens at runtime, not in the brekapoint predictor (currently)
|
||||
if (handler) {
|
||||
await Promise.all(
|
||||
const installed = Promise.all(
|
||||
[...this._executionContexts.keys()].map(id => this._installWasmPauseHandler(id)),
|
||||
);
|
||||
await Promise.race([installed, delay(100)]);
|
||||
}
|
||||
|
||||
return !!this._pauseOnSourceMapBreakpointIds?.length;
|
||||
|
|
Загрузка…
Ссылка в новой задаче