diff --git a/conformance-suites/2.0.0/js/js-test-pre.js b/conformance-suites/2.0.0/js/js-test-pre.js index e1e70188fb..626440a566 100644 --- a/conformance-suites/2.0.0/js/js-test-pre.js +++ b/conformance-suites/2.0.0/js/js-test-pre.js @@ -708,6 +708,14 @@ function webglHarnessCollectGarbage() { return; } + // WebKit's MiniBrowser with the following environment variables set: + // export JSC_useDollarVM=1 + // export __XPC_JSC_useDollarVM=1 + if (window.$vm) { + window.$vm.gc(); + return; + } + function gcRec(n) { if (n < 1) return {}; diff --git a/sdk/tests/js/js-test-pre.js b/sdk/tests/js/js-test-pre.js index 8a3cede5a0..b6202a2789 100644 --- a/sdk/tests/js/js-test-pre.js +++ b/sdk/tests/js/js-test-pre.js @@ -737,6 +737,14 @@ function webglHarnessCollectGarbage() { return; } + // WebKit's MiniBrowser with the following environment variables set: + // export JSC_useDollarVM=1 + // export __XPC_JSC_useDollarVM=1 + if (window.$vm) { + window.$vm.gc(); + return; + } + function gcRec(n) { if (n < 1) return {};