Skip to content

Commit 7d361dd

Browse files
committed
[GR-65999] Adding expose-wasm, no-allow-natives-syntax and no-compilation-cache among ignored V8 options.
PullRequest: js/3541
2 parents 9f3d8a0 + a23d7d8 commit 7d361dd

File tree

1 file changed

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

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public static class OptionsParser extends AbstractLanguageLauncher implements Fu
150150
"expose-debug-as",
151151
"expose-internals",
152152
"expose-natives-as",
153+
"expose-wasm",
153154
"gc-global",
154155
"gc-interval",
155156
"harmony",
@@ -163,12 +164,14 @@ public static class OptionsParser extends AbstractLanguageLauncher implements Fu
163164
"jitless",
164165
"lazy",
165166
"log-timer-events",
167+
"no-allow-natives-syntax",
168+
"no-compilation-cache",
166169
"no-concurrent-array-buffer-freeing",
167170
"no-concurrent-array-buffer-sweeping",
168171
"no-freeze-flags-after-init",
169172
"no-harmony-top-level-await",
170-
"nolazy",
171-
"nouse-idle-notification",
173+
"no-lazy",
174+
"no-use-idle-notification",
172175
"rehash-snapshot",
173176
"stack-size",
174177
"trace-gc",
@@ -219,6 +222,9 @@ protected List<String> preprocessArguments(List<String> arguments, Map<String, S
219222
}
220223
}
221224
String normalizedKey = key.replace('_', '-');
225+
if (normalizedKey.startsWith("no") && !normalizedKey.startsWith("no-")) {
226+
normalizedKey = "no-" + normalizedKey.substring(2);
227+
}
222228
if (AUX_CACHE_OPTIONS.contains(normalizedKey)) {
223229
auxEngineCacheMode = true;
224230
}

0 commit comments

Comments
 (0)