mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove an unused argument to ErrorInfo::from_dom_exception.
This commit is contained in:
parent
93eb35d358
commit
5a61142720
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ impl ErrorInfo {
|
|||
})
|
||||
}
|
||||
|
||||
fn from_dom_exception(cx: *mut JSContext, object: HandleObject) -> Option<ErrorInfo> {
|
||||
fn from_dom_exception(object: HandleObject) -> Option<ErrorInfo> {
|
||||
let exception = match root_from_object::<DOMException>(object.get()) {
|
||||
Ok(exception) => exception,
|
||||
Err(_) => return None,
|
||||
|
@ -215,7 +215,7 @@ pub unsafe fn report_pending_exception(cx: *mut JSContext, obj: *mut JSObject) {
|
|||
|
||||
rooted!(in(cx) let object = value.to_object());
|
||||
let error_info = ErrorInfo::from_native_error(cx, object.handle())
|
||||
.or_else(|| ErrorInfo::from_dom_exception(cx, object.handle()));
|
||||
.or_else(|| ErrorInfo::from_dom_exception(object.handle()));
|
||||
let error_info = match error_info {
|
||||
Some(error_info) => error_info,
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue