mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Use snake case in Worker.
This commit is contained in:
parent
6311ff07ef
commit
a71ccfabef
1 changed files with 2 additions and 2 deletions
|
@ -57,10 +57,10 @@ impl Worker {
|
|||
}
|
||||
|
||||
// http://www.whatwg.org/html/#dom-worker
|
||||
pub fn Constructor(global: GlobalRef, scriptURL: DOMString) -> Fallible<Temporary<Worker>> {
|
||||
pub fn Constructor(global: GlobalRef, script_url: DOMString) -> Fallible<Temporary<Worker>> {
|
||||
// Step 2-4.
|
||||
let worker_url = match UrlParser::new().base_url(&global.get_url())
|
||||
.parse(scriptURL.as_slice()) {
|
||||
.parse(script_url.as_slice()) {
|
||||
Ok(url) => url,
|
||||
Err(_) => return Err(Syntax),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue