Skip to content

Commit 6639468

Browse files
authored
Add took recursive isolate lock warning to workerd output exceptions (#4511)
* Add `took recursive isolate lock` warning to workerd output exceptions * Add changeset * Prettify changed file
1 parent 850c4d6 commit 6639468

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.changeset/hot-mirrors-shake.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Add 'took recursive isolate lock' warning to workerd output exceptions

packages/wrangler/src/dev/miniflare.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,19 @@ export function handleRuntimeStdio(stdout: Readable, stderr: Readable) {
415415
const containsLlvmSymbolizerWarning = chunk.includes(
416416
"Not symbolizing stack traces because $LLVM_SYMBOLIZER is not set"
417417
);
418+
const containsRecursiveIsolateLockWarning = chunk.includes(
419+
"took recursive isolate lock"
420+
);
418421
// Matches stack traces from workerd
419422
// - on unix: groups of 9 hex digits separated by spaces
420423
// - on windows: groups of 12 hex digits, or a single digit 0, separated by spaces
421424
const containsHexStack = /stack:( (0|[a-f\d]{4,})){3,}/.test(chunk);
422425

423-
return containsLlvmSymbolizerWarning || containsHexStack;
426+
return (
427+
containsLlvmSymbolizerWarning ||
428+
containsRecursiveIsolateLockWarning ||
429+
containsHexStack
430+
);
424431
},
425432
// Is this chunk an Address In Use error?
426433
isAddressInUse(chunk: string) {

0 commit comments

Comments
 (0)