mirror of
https://github.com/servo/servo.git
synced 2025-07-29 10:10:34 +01:00
Auto merge of #23318 - asajeffrey:magicleap-debugmozjs, r=jdm
Fix magicleap debugmozjs <!-- Please describe your changes on the following line: --> These changes get magicleap servo to compile with `--debugmozjs`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #23074 and fix #22069 - [X] These changes do not require tests because we're not building debugmozjs servo for magicleap <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23318) <!-- Reviewable:end -->
This commit is contained in:
commit
c3a79e8711
5 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue