auto merge of #2057 : Ms2ger/servo/evaluate_script, r=jdm

This commit is contained in:
bors-servo 2014-04-07 11:19:26 -04:00
commit 3d1a4324b7

View file

@ -878,10 +878,10 @@ impl ScriptTask {
}; };
//FIXME: this should have some kind of error handling, or explicitly //FIXME: this should have some kind of error handling, or explicitly
// drop an exception on the floor. // drop an exception on the floor.
assert!(cx.evaluate_script(global_obj, match cx.evaluate_script(global_obj, file.data.clone(), file.url.to_str(), 1) {
file.data.clone(), Ok(_) => (),
file.url.to_str(), Err(_) => println!("evaluate_script failed")
1).is_ok()); }
}); });
} }