Bug 1450311 - Update jsval.rs's glue code for JS::Value::layout going away and its former members being renamed. r=me on the dead-simple changes

--HG--
extra : rebase_source : 23bbbc8ae51aea90647edb6369f072ede435bfef
This commit is contained in:
Jeff Walden 2018-03-30 13:54:46 -07:00
parent 99a28341f3
commit 0b7bf2909d

View File

@ -70,9 +70,7 @@ const JSVAL_PAYLOAD_MASK: u64 = 0x00007FFFFFFFFFFF;
#[inline(always)]
fn AsJSVal(val: u64) -> JS::Value {
JS::Value {
data: JS::Value_layout {
asBits: val,
}
asBits_: val,
}
}
@ -192,7 +190,7 @@ pub fn PrivateValue(o: *const c_void) -> JS::Value {
impl JS::Value {
#[inline(always)]
unsafe fn asBits(&self) -> u64 {
self.data.asBits
self.asBits_
}
#[inline(always)]