mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Pass the javscript file url to the evaluate function
This commit is contained in:
parent
c532c73964
commit
a0d900e1f6
2 changed files with 16 additions and 7 deletions
|
@ -682,10 +682,10 @@ impl ScriptTask {
|
|||
js_info.js_compartment.define_functions(debug_fns);
|
||||
|
||||
// Evaluate every script in the document.
|
||||
for bytes in js_scripts.iter() {
|
||||
for file in js_scripts.iter() {
|
||||
let _ = js_info.js_context.evaluate_script(js_info.js_compartment.global_obj,
|
||||
bytes.clone(),
|
||||
~"???",
|
||||
file.data.clone(),
|
||||
file.url.to_str(),
|
||||
1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue