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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Rich Trott authored and Michaël Zasso committed 2018-06-30 11:09:25 +02:00
1 parent e7abde44db
commit 0d98fe6ef9
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@
(function(global) {
// https://github.com/nodejs/node/issues/14909
delete global.Intl.v8BreakIterator;
if (global.Intl) delete global.Intl.v8BreakIterator;
// https://github.com/nodejs/node/issues/21219
// Adds Atomics.notify and warns on first usage of Atomics.wake