mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
script: Optionally store backtraces when throwing DOM exceptions.
This commit is contained in:
parent
5dc80dd07a
commit
06bca43aee
9 changed files with 51 additions and 2 deletions
|
@ -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)]
|
||||
|
||||
|
|
|
@ -288,6 +288,8 @@ class CommandBase(object):
|
|||
self.config["build"].setdefault("rustflags", "")
|
||||
self.config["build"].setdefault("incremental", None)
|
||||
self.config["build"].setdefault("thinlto", False)
|
||||
self.config["build"].setdefault("webgl-backtrace", False)
|
||||
self.config["build"].setdefault("dom-backtrace", False)
|
||||
|
||||
self.config.setdefault("android", {})
|
||||
self.config["android"].setdefault("sdk", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue