Skip to content

Commit 0d98fe6

Browse files
Trotttargos
authored andcommitted
lib: fix segfault with --without-intl
Node.js segfaults when build with `--without-intl` due to an oversight in d13cdd9. This fixes the issue. PR-URL: #21589 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent e7abde4 commit 0d98fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/per_context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
(function(global) {
66
// https://github.com/nodejs/node/issues/14909
7-
delete global.Intl.v8BreakIterator;
7+
if (global.Intl) delete global.Intl.v8BreakIterator;
88

99
// https://github.com/nodejs/node/issues/21219
1010
// Adds Atomics.notify and warns on first usage of Atomics.wake

0 commit comments

Comments
 (0)