aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index a098edcb43c..34ac683e233 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -96,8 +96,8 @@ use timers::{IsInterval, OneshotTimerCallback, OneshotTimerHandle, OneshotTimers
use tinyfiledialogs::{self, MessageBoxIcon};
use url::Url;
use util::geometry::{self, MAX_RECT};
+use util::opts;
use util::prefs::PREFS;
-use util::{breakpoint, opts};
use webdriver_handlers::jsval_to_webdriver;
/// Current state of the window object
@@ -669,8 +669,9 @@ impl WindowMethods for Window {
}
}
+ #[allow(unsafe_code)]
fn Trap(&self) {
- breakpoint();
+ unsafe { ::std::intrinsics::breakpoint() }
}
#[allow(unsafe_code)]