diff options
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/testbinding.rs | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/TestBinding.webidl | 2 |
2 files changed, 4 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 { diff --git a/components/script/dom/webidls/TestBinding.webidl b/components/script/dom/webidls/TestBinding.webidl index eb6e5a9ae7b..29b5d9e1d71 100644 --- a/components/script/dom/webidls/TestBinding.webidl +++ b/components/script/dom/webidls/TestBinding.webidl @@ -455,6 +455,8 @@ interface TestBinding { static void funcControlledStaticMethodEnabled(); [Func="TestBinding::condition_satisfied"] const unsigned short funcControlledConstEnabled = 0; + + void panic(); }; partial interface TestBinding { |