aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrview.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/xrview.rs')
-rw-r--r--components/script/dom/xrview.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/xrview.rs b/components/script/dom/xrview.rs
index bc51d8f38c8..04a4a2b66c8 100644
--- a/components/script/dom/xrview.rs
+++ b/components/script/dom/xrview.rs
@@ -40,7 +40,6 @@ impl XRView {
}
}
- #[allow(unsafe_code)]
pub fn new<V: Copy>(
global: &GlobalScope,
session: &XRSession,
@@ -65,7 +64,7 @@ impl XRView {
// row_major since euclid uses row vectors
let proj = view.projection.to_row_major_array();
- let cx = unsafe { JSContext::from_ptr(global.get_cx()) };
+ let cx = global.get_cx();
create_typed_array(cx, &proj, &ret.proj);
ret
}