mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393
This commit is contained in:
parent
e04d517bff
commit
356c57e628
48 changed files with 403 additions and 307 deletions
|
@ -34,8 +34,9 @@ use dom::virtualmethods::VirtualMethods;
|
|||
use dom::window::Window;
|
||||
use dom_struct::dom_struct;
|
||||
use fnv::FnvHasher;
|
||||
use js::jsapi::{CompileFunction, JS_GetFunctionObject, JSAutoCompartment, JSFunction};
|
||||
use js::jsapi::{JS_GetFunctionObject, JSAutoCompartment, JSFunction};
|
||||
use js::rust::{AutoObjectVectorWrapper, CompileOptionsWrapper};
|
||||
use js::rust::wrappers::CompileFunction;
|
||||
use libc::{c_char, size_t};
|
||||
use servo_atoms::Atom;
|
||||
use servo_url::ServoUrl;
|
||||
|
@ -453,7 +454,7 @@ impl EventTarget {
|
|||
args.as_ptr(),
|
||||
body.as_ptr(),
|
||||
body.len() as size_t,
|
||||
handler.handle_mut())
|
||||
handler.handle_mut().into())
|
||||
};
|
||||
if !rv || handler.get().is_null() {
|
||||
// Step 1.8.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue