lib: fix segfault with --without-intl
Node.js segfaults when build with --without-intl
due to an oversight
in d13cdd9c. This fixes the issue.
This is an alternate to https://github.com/nodejs/node/pull/21587 and was proposed in IRC by @devsnek and also @refack. But @devsnek doesn't have access to GitHub right now, so I'm submitting it to fast-track it and get CI green again.
Speaking of which:
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines