mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -511,7 +511,6 @@ impl EventTarget {
|
|||
|
||||
// Step 3.9
|
||||
|
||||
let url_serialized = CString::new(handler.url.to_string()).unwrap();
|
||||
let name = CString::new(format!("on{}", &**ty)).unwrap();
|
||||
|
||||
// Step 3.9, subsection ParameterList
|
||||
|
@ -528,7 +527,7 @@ impl EventTarget {
|
|||
|
||||
let cx = window.get_cx();
|
||||
let options = unsafe {
|
||||
CompileOptionsWrapper::new(*cx, url_serialized.as_ptr(), handler.line as u32)
|
||||
CompileOptionsWrapper::new(*cx, &handler.url.to_string(), handler.line as u32)
|
||||
};
|
||||
|
||||
// Step 3.9, subsection Scope steps 1-6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue