mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update mozjs to 0.14.1
This update pulls in improvements on mozjs that now removes the need to pass pointers to CompileOptionsWraper::new(), allows NewProxyObject to now accept a Singleton bool and JSClass and removes an unsafe Handle::new usage.
This commit is contained in:
parent
9e6da58d77
commit
f8c9ee4eff
7 changed files with 12 additions and 17 deletions
|
@ -118,7 +118,6 @@ use std::borrow::Cow;
|
|||
use std::cell::Cell;
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::collections::{HashMap, VecDeque};
|
||||
use std::ffi::CString;
|
||||
use std::mem;
|
||||
use std::ops::Index;
|
||||
use std::rc::Rc;
|
||||
|
@ -2586,7 +2585,6 @@ impl GlobalScope {
|
|||
self.time_profiler_chan().clone(),
|
||||
|| {
|
||||
let cx = self.get_cx();
|
||||
let filename = CString::new(filename).unwrap();
|
||||
|
||||
let ar = enter_realm(&*self);
|
||||
|
||||
|
@ -2597,7 +2595,7 @@ impl GlobalScope {
|
|||
match code {
|
||||
SourceCode::Text(text_code) => {
|
||||
let options =
|
||||
CompileOptionsWrapper::new(*cx, filename.as_ptr(), line_number);
|
||||
CompileOptionsWrapper::new(*cx, filename, line_number);
|
||||
|
||||
debug!("compiling dom string");
|
||||
compiled_script.set(Compile1(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue