Skip to content

Commit

Permalink
Support WebKit's MiniBrowser in webglHarnessCollectGarbage(). (Khrono…
Browse files Browse the repository at this point in the history
…sGroup#3137)

This allows the expando-loss.html and expando-loss-2.html tests to be
run correctly in the MiniBrowser with the following two environment
variables set:
  export JSC_useDollarVM=1
  export __XPC_JSC_useDollarVM=1

Thanks to Yusuke Suzuki from Apple for this tip.
  • Loading branch information
kenrussell authored Aug 11, 2020
1 parent 5d33e2f commit 1ed3cff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conformance-suites/2.0.0/js/js-test-pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down
8 changes: 8 additions & 0 deletions sdk/tests/js/js-test-pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down

0 comments on commit 1ed3cff

Please sign in to comment.