mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
auto merge of #2057 : Ms2ger/servo/evaluate_script, r=jdm
This commit is contained in:
commit
3d1a4324b7
1 changed files with 4 additions and 4 deletions
|
@ -878,10 +878,10 @@ impl ScriptTask {
|
|||
};
|
||||
//FIXME: this should have some kind of error handling, or explicitly
|
||||
// drop an exception on the floor.
|
||||
assert!(cx.evaluate_script(global_obj,
|
||||
file.data.clone(),
|
||||
file.url.to_str(),
|
||||
1).is_ok());
|
||||
match cx.evaluate_script(global_obj, file.data.clone(), file.url.to_str(), 1) {
|
||||
Ok(_) => (),
|
||||
Err(_) => println!("evaluate_script failed")
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue