Skip to content
Permalink
Browse files

Fix debugmozjs build #23074

  • Loading branch information...
asajeffrey committed May 3, 2019
1 parent 64c8489 commit 5d7f238794c5af717a00f6410d03ca73122a4469
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/script/script_runtime.rs
@@ -685,11 +685,11 @@ unsafe fn set_gc_zeal_options(cx: *mut JSContext) {
use js::jsapi::{JS_SetGCZeal, JS_DEFAULT_ZEAL_FREQ};

let level = match pref!(js.mem.gc.zeal.level) {
Some(level @ 0...14) => level as u8,
level @ 0...14 => level as u8,
_ => return,
};
let frequency = match pref!(js.mem.gc.zeal.frequency) {
Some(frequency) if frequency >= 0 => frequency as u32,
frequency if frequency >= 0 => frequency as u32,
_ => JS_DEFAULT_ZEAL_FREQ,
};
JS_SetGCZeal(cx, level, frequency);

0 comments on commit 5d7f238

Please sign in to comment.
You can’t perform that action at this time.