mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Mostly fix build breaks
This commit is contained in:
parent
3437a3ea53
commit
0300776298
35 changed files with 477 additions and 344 deletions
|
@ -72,8 +72,8 @@ unsafe fn domstring_to_jsval(cx: *JSContext, str: DOMString) -> jsval {
|
|||
|
||||
fn get_compartment(cx: *JSContext) -> *bare_compartment {
|
||||
unsafe {
|
||||
let priv: *libc::c_void = JS_GetContextPrivate(cx);
|
||||
let compartment: *bare_compartment = unsafe::reinterpret_cast(&priv);
|
||||
let privptr: *libc::c_void = JS_GetContextPrivate(cx);
|
||||
let compartment: *bare_compartment = unsafe::reinterpret_cast(&privptr);
|
||||
assert cx == (*compartment).cx.ptr;
|
||||
compartment
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue