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
// 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")
}
});
}