Skip to content

Commit 8c710f7

Browse files
committed
set CONSTRAINED sandbox policy for js.webassembly option
1 parent 900af29 commit 8c710f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime/JSContextOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public String apply(String tag) {
551551
@CompilationFinal private boolean useUTCForLegacyDates;
552552

553553
public static final String WEBASSEMBLY_NAME = JS_OPTION_PREFIX + "webassembly";
554-
@Option(name = WEBASSEMBLY_NAME, category = OptionCategory.USER, stability = OptionStability.STABLE, help = "Enable WebAssembly JavaScript API.") //
554+
@Option(name = WEBASSEMBLY_NAME, category = OptionCategory.USER, stability = OptionStability.STABLE, sandbox = SandboxPolicy.CONSTRAINED, help = "Enable WebAssembly JavaScript API.") //
555555
public static final OptionKey<Boolean> WEBASSEMBLY = new OptionKey<>(false);
556556
@CompilationFinal private boolean webAssembly;
557557

0 commit comments

Comments
 (0)