Skip to content

Commit 1c30343

Browse files
committed
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 <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 71e1602 commit 1c30343

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)