Skip to content

Commit be84fad

Browse files
committed
Negative V8 option can start with both 'no' and 'no-' prefixes.
1 parent 9f3d8a0 commit be84fad

File tree

1 file changed

+5
-2
lines changed
  • graal-nodejs/mx.graal-nodejs/com.oracle.truffle.trufflenode/src/com/oracle/truffle/trufflenode

1 file changed

+5
-2
lines changed

graal-nodejs/mx.graal-nodejs/com.oracle.truffle.trufflenode/src/com/oracle/truffle/trufflenode/Options.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public static class OptionsParser extends AbstractLanguageLauncher implements Fu
167167
"no-concurrent-array-buffer-sweeping",
168168
"no-freeze-flags-after-init",
169169
"no-harmony-top-level-await",
170-
"nolazy",
171-
"nouse-idle-notification",
170+
"no-lazy",
171+
"no-use-idle-notification",
172172
"rehash-snapshot",
173173
"stack-size",
174174
"trace-gc",
@@ -219,6 +219,9 @@ protected List<String> preprocessArguments(List<String> arguments, Map<String, S
219219
}
220220
}
221221
String normalizedKey = key.replace('_', '-');
222+
if (normalizedKey.startsWith("no") && !normalizedKey.startsWith("no-")) {
223+
normalizedKey = "no-" + normalizedKey.substring(2);
224+
}
222225
if (AUX_CACHE_OPTIONS.contains(normalizedKey)) {
223226
auxEngineCacheMode = true;
224227
}

0 commit comments

Comments
 (0)