mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Fixes #4164 Make Constructor and new functions take GlobalRef by value
This commit is contained in:
parent
cf616b90a2
commit
85df7f0d6f
25 changed files with 61 additions and 61 deletions
|
@ -40,8 +40,8 @@ impl URLSearchParams {
|
|||
reflect_dom_object(box URLSearchParams::new_inherited(), global, URLSearchParamsBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(global: &GlobalRef, init: Option<StringOrURLSearchParams>) -> Fallible<Temporary<URLSearchParams>> {
|
||||
let usp = URLSearchParams::new(*global).root();
|
||||
pub fn Constructor(global: GlobalRef, init: Option<StringOrURLSearchParams>) -> Fallible<Temporary<URLSearchParams>> {
|
||||
let usp = URLSearchParams::new(global).root();
|
||||
match init {
|
||||
Some(eString(_s)) => {
|
||||
// XXXManishearth we need to parse the input here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue