Skip to content
Permalink
Browse files
[JSC] Disable ShadowRealm
https://bugs.webkit.org/show_bug.cgi?id=245166

Reviewed by Mark Lam.

* Source/JavaScriptCore/runtime/OptionsList.h:

Canonical link: https://commits.webkit.org/254483@main
  • Loading branch information
Constellation committed Sep 14, 2022
1 parent 29056c6 commit 06acbb88e0e92342240020f9c006a13fbe772449
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
@@ -1,3 +1,4 @@
//@ requireOptions("--useShadowRealm=1")
function shouldThrow(func, errorMessage) {
var errorThrown = false;
var error = null;
@@ -1,3 +1,4 @@
//@ requireOptions("--useShadowRealm=1")
let s = new ShadowRealm();
let z = s.evaluate(`(function foo() {}).bind()`);
z.toString();
@@ -1,3 +1,4 @@
//@ requireOptions("--useShadowRealm=1")
let foo = new ShadowRealm().evaluate(`()=>{}`);
for (let i = 0; i < 1000000; i++) {
foo();
@@ -5987,3 +5987,22 @@ webkit.org/b/243562 imported/w3c/web-platform-tests/css/css-ui/compute-kind-widg
imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/css-module/charset.html [ Pass Failure ]
imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/css-module/cors-crossorigin-requests.html [ Pass Failure ]
imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/cors-crossorigin-requests.html [ Pass Failure ]

# Disable ShadowRealm (while running to ensure we do not crash)
http/tests/misc/iframe-shadow-realm.html [ Pass Failure ]
inspector/shadow-realm-console.html [ Pass Failure ]
imported/w3c/web-platform-tests/compression/idlharness-shadowrealm.window.html [ Pass Failure ]
imported/w3c/web-platform-tests/dom/idlharness-shadowrealm.window.html [ Pass Failure ]
imported/w3c/web-platform-tests/encoding/idlharness-shadowrealm.window.html [ Pass Failure ]
imported/w3c/web-platform-tests/hr-time/idlharness-shadowrealm.window.html [ Pass Failure ]
imported/w3c/web-platform-tests/html/dom/idlharness-shadowrealm.window.html [ Pass Failure ]
imported/w3c/web-platform-tests/performance-timeline/idlharness-shadowrealm.window.html [ Pass Failure ]
imported/w3c/web-platform-tests/streams/idlharness-shadowrealm.window.html [ Pass Failure ]
imported/w3c/web-platform-tests/url/idlharness-shadowrealm.window.html [ Pass Failure ]
imported/w3c/web-platform-tests/user-timing/idlharness-shadowrealm.window.html [ Pass Failure ]
js/ShadowRealm-evaluate.html [ Pass Failure ]
js/ShadowRealm-globalThis.html [ Pass Failure ]
js/ShadowRealm-iframe-detach.html [ Pass Failure ]
js/ShadowRealm-iframe-sandboxed.html [ Pass Failure ]
js/ShadowRealm-importValue.html [ Pass Failure ]
js/ShadowRealm-worker.html [ Pass Failure ]
@@ -549,7 +549,7 @@ bool canUseWebAssemblyFastMemory();
v(Bool, useImportAssertion, true, Normal, "Enable import assertion.") \
v(Bool, useIntlEnumeration, true, Normal, "Expose the Intl enumeration APIs.") \
v(Bool, useSharedArrayBuffer, false, Normal, nullptr) \
v(Bool, useShadowRealm, true, Normal, "Expose the ShadowRealm object.") \
v(Bool, useShadowRealm, false, Normal, "Expose the ShadowRealm object.") \
v(Bool, useTemporal, false, Normal, "Expose the Temporal object.") \
v(Bool, useWebAssemblyThreading, true, Normal, "Allow instructions from the wasm threading spec.") \
v(Bool, useWebAssemblyTypedFunctionReferences, false, Normal, "Allow function types from the wasm typed function references spec.") \

0 comments on commit 06acbb8

Please sign in to comment.