aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-10-02 06:57:38 -0400
committerGitHub <noreply@github.com>2018-10-02 06:57:38 -0400
commit57053e03bbfc65e1d2f283cfa8646038be9f9b06 (patch)
treec15d90f86e590b0a45a4364ed044d2deb34722ff /components/script/lib.rs
parent37b978af686975eaf13689580868d9ea201ef04c (diff)
parent06bca43aeef990da8f02cd8b814329f7607365dd (diff)
downloadservo-57053e03bbfc65e1d2f283cfa8646038be9f9b06.tar.gz
servo-57053e03bbfc65e1d2f283cfa8646038be9f9b06.zip
Auto merge of #21825 - jdm:backtrace-helpers, r=Manishearth
Optional backtraces for JS errors and WebGL errors This adds two new build-time features to enable useful debugging tools when investigating why JS and WebGL content isn't working. They're optional because they're quite heavyweight. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they're optional developer features. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21825) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r--components/script/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs
index f8341323466..097f69d7808 100644
--- a/components/script/lib.rs
+++ b/components/script/lib.rs
@@ -19,6 +19,8 @@
extern crate app_units;
extern crate audio_video_metadata;
+#[cfg(any(feature = "webgl_backtrace", feature = "js_backtrace"))]
+extern crate backtrace;
extern crate base64;
#[macro_use]
extern crate bitflags;