script: Optionally store backtraces when throwing DOM exceptions.

This commit is contained in:
Josh Matthews 2018-08-01 14:54:08 -04:00
parent 5dc80dd07a
commit 06bca43aee
9 changed files with 51 additions and 2 deletions

View file

@ -257,6 +257,11 @@ class MachCommands(CommandBase):
if debug_mozjs:
features += ["debugmozjs"]
if self.config["build"]["webgl-backtrace"]:
features += ["webgl-backtrace"]
if self.config["build"]["dom-backtrace"]:
features += ["dom-backtrace"]
if features:
opts += ["--features", "%s" % ' '.join(features)]