aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/errorevent.rs
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2019-07-25 10:09:33 +0900
committerGitHub <noreply@github.com>2019-07-25 10:09:33 +0900
commitcaf7a2488eda6218ccf8dc8d81f090531b4c77e8 (patch)
tree2712b566869664297ab33495612bfbbea52365dd /components/script/dom/errorevent.rs
parent16b4e3446bc466c87327fac3402736d3636a5f73 (diff)
parent82f649751c045730419f9d1704305717c4f346ec (diff)
downloadservo-caf7a2488eda6218ccf8dc8d81f090531b4c77e8.tar.gz
servo-caf7a2488eda6218ccf8dc8d81f090531b4c77e8.zip
Merge branch 'master' into tojson
Diffstat (limited to 'components/script/dom/errorevent.rs')
-rw-r--r--components/script/dom/errorevent.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/errorevent.rs b/components/script/dom/errorevent.rs
index 2894482161c..c306f6cf7f9 100644
--- a/components/script/dom/errorevent.rs
+++ b/components/script/dom/errorevent.rs
@@ -14,8 +14,9 @@ use crate::dom::bindings::str::DOMString;
use crate::dom::bindings::trace::RootedTraceableBox;
use crate::dom::event::{Event, EventBubbles, EventCancelable};
use crate::dom::globalscope::GlobalScope;
+use crate::script_runtime::JSContext;
use dom_struct::dom_struct;
-use js::jsapi::{Heap, JSContext};
+use js::jsapi::Heap;
use js::jsval::JSVal;
use js::rust::HandleValue;
use servo_atoms::Atom;
@@ -135,9 +136,8 @@ impl ErrorEventMethods for ErrorEvent {
self.filename.borrow().clone()
}
- #[allow(unsafe_code)]
// https://html.spec.whatwg.org/multipage/#dom-errorevent-error
- unsafe fn Error(&self, _cx: *mut JSContext) -> JSVal {
+ fn Error(&self, _cx: JSContext) -> JSVal {
self.error.get()
}