diff --git a/js/src/jit-test/tests/debug/Environment-getVariable-13.js b/js/src/jit-test/tests/debug/Environment-getVariable-13.js index 43e69ea8e0d5..37d5e90afc82 100644 --- a/js/src/jit-test/tests/debug/Environment-getVariable-13.js +++ b/js/src/jit-test/tests/debug/Environment-getVariable-13.js @@ -5,6 +5,9 @@ load(libdir + "jitopts.js"); +// GCs can invalidate JIT code and cause this test to fail. +gczeal(0); + if (!jitTogglesMatch(Opts_Ion2NoOffthreadCompilation)) quit(0);