Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393

This commit is contained in:
Marcin Mielniczuk 2018-03-28 21:28:30 +02:00
parent e04d517bff
commit 356c57e628
48 changed files with 403 additions and 307 deletions

View file

@ -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