mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Support the updated spidermonkey bindings
This commit is contained in:
parent
32daa17d5c
commit
e733a7c46a
20 changed files with 234 additions and 223 deletions
|
@ -779,9 +779,9 @@ impl<'a, T: Reflectable> ScriptHelpers for &'a T {
|
|||
let _ac = JSAutoCompartment::new(cx, globalhandle.get());
|
||||
let options = CompileOptionsWrapper::new(cx, filename.as_ptr(), 0);
|
||||
unsafe {
|
||||
if Evaluate2(cx, options.ptr, code.as_ptr() as *const i16,
|
||||
code.len() as libc::size_t,
|
||||
rval) == 0 {
|
||||
if !Evaluate2(cx, options.ptr, code.as_ptr(),
|
||||
code.len() as libc::size_t,
|
||||
rval) {
|
||||
debug!("error evaluating JS string");
|
||||
report_pending_exception(cx, globalhandle.get());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue