diff --git a/components/script/dom/webidls/Window.webidl b/components/script/dom/webidls/Window.webidl index 901af062903..35e608f23b3 100644 --- a/components/script/dom/webidls/Window.webidl +++ b/components/script/dom/webidls/Window.webidl @@ -141,8 +141,6 @@ partial interface Window { [Pref="dom.servo_helpers.enabled"] undefined gc(); [Pref="dom.servo_helpers.enabled"] - undefined trap(); - [Pref="dom.servo_helpers.enabled"] undefined js_backtrace(); }; diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index fb73a82645e..8ca059711a2 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -1102,11 +1102,6 @@ impl WindowMethods for Window { } } - #[allow(unsafe_code)] - fn Trap(&self) { - unsafe { ::std::intrinsics::breakpoint() } - } - #[allow(unsafe_code)] fn Js_backtrace(&self) { unsafe { diff --git a/components/script/lib.rs b/components/script/lib.rs index e78cd58d7a7..be61094d1da 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -2,7 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#![feature(core_intrinsics)] #![feature(drain_filter)] #![feature(once_cell)] #![feature(plugin)]