diff options
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index c1c3a717f1a..dcee911c46a 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -742,7 +742,7 @@ impl ScriptTask { // needs to be smarter about exiting pipelines. None => false, } - + } /// The entry point to document loading. Defines bindings, sets up the window and document @@ -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") + } }); } @@ -1096,7 +1096,7 @@ impl ScriptTask { } None => { target_compare = true; } } - + if target_compare { if mouse_over_targets.is_some() { page.damage(MatchSelectorsDocumentDamage); |