Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24cecfbb authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 21185

* changes:
  Set V8 flag --expose_gc in TestShellActivity.
parents 4e653508 2890920e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -112,6 +112,11 @@ public class TestShellActivity extends Activity implements LayoutTestController

        mWebView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);

        // Expose window.gc function to JavaScript. JSC build exposes
        // this function by default, but V8 requires the flag to turn it on.
        // WebView::setJsFlags is noop in JSC build.
        mWebView.setJsFlags("--expose_gc");

        mHandler = new AsyncHandler();

        Intent intent = getIntent();