Skip to content

Commit 0841496

Browse files
addaleaxrvagg
authored andcommitted
src: fix without-intl build
In 5d38d54, an additional property in node_config.cc was added whose definition depends on having the local `env` variable declared, which in turn depended on `NODE_HAVE_I18N_SUPPORT` being defined. Moving `env = ...` out of the `#ifdef` block allows building via `./configure --without-intl` again. PR-URL: #6820 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent bae7adb commit 0841496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_config.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ using v8::Value;
2929
void InitConfig(Local<Object> target,
3030
Local<Value> unused,
3131
Local<Context> context) {
32-
#ifdef NODE_HAVE_I18N_SUPPORT
3332
Environment* env = Environment::GetCurrent(context);
33+
#ifdef NODE_HAVE_I18N_SUPPORT
3434

3535
READONLY_BOOLEAN_PROPERTY("hasIntl");
3636

0 commit comments

Comments
 (0)