diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-09-01 16:03:56 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-09-02 11:44:46 +0200 |
commit | 137845d47b487895ed0d85883c96e7d2019db44f (patch) | |
tree | c4528ad9e71dc8e96042e8dc1d5996a968f6d27b /components/script | |
parent | ac111b96fdee59ac57a79ef0d1598da236c25be9 (diff) | |
download | servo-137845d47b487895ed0d85883c96e7d2019db44f.tar.gz servo-137845d47b487895ed0d85883c96e7d2019db44f.zip |
Panic when stringifying an primitive fails.
This should not happen.
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bindings/error.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs index 752f0d75b49..c111bb62a2a 100644 --- a/components/script/dom/bindings/error.rs +++ b/components/script/dom/bindings/error.rs @@ -232,8 +232,7 @@ pub unsafe fn report_pending_exception(cx: *mut JSContext, dispatch_event: bool) } }, _ => { - error!("Uncaught exception: failed to stringify primitive"); - return; + panic!("Uncaught exception: failed to stringify primitive"); }, } }; |