diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-03-26 15:12:55 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-03-26 15:12:55 +0100 |
commit | 389e69bafeb24d9d0b7153080970f1744b4854ae (patch) | |
tree | fbcfa9a8e59dd72c1862be75584d5df85a632447 /components/script/dom/bindings/error.rs | |
parent | c9b5b8fad342c73790ec8348b7b6ab5f2129d223 (diff) | |
download | servo-389e69bafeb24d9d0b7153080970f1744b4854ae.tar.gz servo-389e69bafeb24d9d0b7153080970f1744b4854ae.zip |
Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25)
Diffstat (limited to 'components/script/dom/bindings/error.rs')
-rw-r--r-- | components/script/dom/bindings/error.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs index 6153f167df5..fdce3f01065 100644 --- a/components/script/dom/bindings/error.rs +++ b/components/script/dom/bindings/error.rs @@ -30,10 +30,12 @@ use js::rust::MutableHandleValue; use libc::c_uint; use std::slice::from_raw_parts; -/// An optional stringified JS backtrace and stringified native backtrace from the -/// the last DOM exception that was reported. #[cfg(feature = "js_backtrace")] -thread_local!(static LAST_EXCEPTION_BACKTRACE: DomRefCell<Option<(Option<String>, String)>> = DomRefCell::new(None)); +thread_local! { + /// An optional stringified JS backtrace and stringified native backtrace from the + /// the last DOM exception that was reported. + static LAST_EXCEPTION_BACKTRACE: DomRefCell<Option<(Option<String>, String)>> = DomRefCell::new(None); +} /// DOM exceptions that can be thrown by a native DOM method. #[derive(Clone, Debug, MallocSizeOf)] |