Bug 1819090 - Fix frequent cgc test failure in debug/optimized-out-03.js jit-test. r=jonco

The test is checking that we get the "optimized out" value with the debugger API
for an Ion-compiled script, but `gczeal` can affect JIT compilations.

Differential Revision: https://phabricator.services.mozilla.com/D171101
This commit is contained in:
Jan de Mooij 2023-02-27 16:18:42 +00:00
parent 910d11be4d
commit 277c70c9f2

View file

@ -1,5 +1,8 @@
// Test that eval-in-frame throws on accessing optimized out values.
// Use gczeal 0 to keep CGC from invalidating Ion code and causing test failures.
gczeal(0);
load(libdir + "jitopts.js");
if (!jitTogglesMatch(Opts_IonEagerNoOffthreadCompilation))