Bug 1448201: Fix SpiderMonkey Rust breakage. r=jdm

Was broken by bug 888600, which converted JSID_VOID into a constexpr and thus
made it not appear at build time.

This should make this faster as well...

MozReview-Commit-ID: 34eQhr5H5Ks
This commit is contained in:
Emilio Cobos Álvarez committed 2018-03-23 02:15:55 +01:00
1 parent 0ffe0d0601
commit 943d94de7f
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -245,7 +245,7 @@ const WHITELIST_VARS: &'static [&'static str] = &[
"JS_STRUCTURED_CLONE_VERSION",
"JSCLASS_.*",
"JSFUN_.*",
"JSID_VOID",
"JSID_TYPE_VOID",
"JSITER_.*",
"JSPROP_.*",
"JS::FalseHandleValue",
+3 -3
View File
@@ -541,8 +541,8 @@ impl JS::HandleObject {
impl Default for jsid {
fn default() -> jsid {
unsafe {
JSID_VOID
jsid {
asBits: JSID_TYPE_VOID as usize,
}
}
}
@@ -567,7 +567,7 @@ pub trait GCMethods {
}
impl GCMethods for jsid {
unsafe fn initial() -> jsid { JSID_VOID }
unsafe fn initial() -> jsid { Default::default() }
unsafe fn post_barrier(_: *mut jsid, _: jsid, _: jsid) {}
}