aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2016-06-20 13:22:53 -0400
committerJosh Matthews <josh@joshmatthews.net>2016-06-22 09:35:19 -0400
commitfbf6c7fc2bcabc69c16e0006c0c37e27e505d64d (patch)
tree6c3a00b7a4b1a4650da4843a30809a25760df08b /components/script/dom/testbinding.rs
parenta0a62ed3fdc023015fd59cf9358e0a0cc3b2bc9b (diff)
downloadservo-fbf6c7fc2bcabc69c16e0006c0c37e27e505d64d.tar.gz
servo-fbf6c7fc2bcabc69c16e0006c0c37e27e505d64d.zip
Add a manual test for panicking while JS stack frames exist.
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r--components/script/dom/testbinding.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs
index bbbbc8aa5d6..8cd53ee57fb 100644
--- a/components/script/dom/testbinding.rs
+++ b/components/script/dom/testbinding.rs
@@ -580,6 +580,8 @@ impl TestBindingMethods for TestBinding {
ptr::write_volatile(p, 0xbaadc0de);
}
}
+
+ fn Panic(&self) { panic!("explicit panic from script") }
}
impl TestBinding {