Skip to content

Commit 69efb81

Browse files
targosRafaelGSS
authored andcommitted
src: enable explicit resource management
This feature is enabled in stable Chrome 136 but not in V8 by default. PR-URL: #58154 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 442b416 commit 69efb81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/node.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,10 @@ static ExitCode InitializeNodeWithArgsInternal(
845845
// is security relevant, for Node it's less important.
846846
V8::SetFlagsFromString("--no-freeze-flags-after-init");
847847

848+
// These features are completed and enabled by default in Chrome, but not
849+
// in V8.
850+
V8::SetFlagsFromString("--js-explicit-resource-management");
851+
848852
#if defined(NODE_V8_OPTIONS)
849853
// Should come before the call to V8::SetFlagsFromCommandLine()
850854
// so the user can disable a flag --foo at run-time by passing

0 commit comments

Comments
 (0)