aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/error.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-07-29 10:24:29 +0200
committerMs2ger <Ms2ger@gmail.com>2016-07-29 10:24:29 +0200
commit5a611427206e7075934bb077cc931b713adba5b6 (patch)
treeb2ac760067fd9f9fa8414cd78d41ffa744d9b5b8 /components/script/dom/bindings/error.rs
parent93eb35d358cc0e6c215a5d93e588a7921a5edb04 (diff)
downloadservo-5a611427206e7075934bb077cc931b713adba5b6.tar.gz
servo-5a611427206e7075934bb077cc931b713adba5b6.zip
Remove an unused argument to ErrorInfo::from_dom_exception.
Diffstat (limited to 'components/script/dom/bindings/error.rs')
-rw-r--r--components/script/dom/bindings/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs
index bd63ba84fb1..c4bda97e521 100644
--- a/components/script/dom/bindings/error.rs
+++ b/components/script/dom/bindings/error.rs
@@ -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 => {