Skip to content

Commit 436ad8c

Browse files
joyeecheungmarco-ippolito
authored andcommitted
src: print v8::OOMDetails::detail when it's available
This provides a bit more information when V8 runs out of memory. PR-URL: #53360 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
1 parent f773b28 commit 436ad8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/node_errors.cc

+3
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ void OOMErrorHandler(const char* location, const v8::OOMDetails& details) {
598598
} else {
599599
FPrintF(stderr, "FATAL ERROR: %s\n", message);
600600
}
601+
if (details.detail != nullptr) {
602+
FPrintF(stderr, "Reason: %s\n", details.detail);
603+
}
601604

602605
Isolate* isolate = Isolate::TryGetCurrent();
603606
bool report_on_fatalerror;

0 commit comments

Comments
 (0)