Bug 1492011 change ShouldIncludeStackTrace from instance to class method r=baku

Depends on D67991

Differential Revision: https://phabricator.services.mozilla.com/D67992
This commit is contained in:
Karl Tomlinson committed 2020-03-24 09:01:04 +00:00
1 parent 1acef10bc1
commit 1694569abd
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -2300,7 +2300,8 @@ JS::Value Console::CreateCounterOrResetCounterValue(
return value;
}
bool Console::ShouldIncludeStackTrace(MethodName aMethodName) const {
/* static */
bool Console::ShouldIncludeStackTrace(MethodName aMethodName) {
switch (aMethodName) {
case MethodError:
case MethodException:
+1 -1
View File
@@ -392,7 +392,7 @@ class Console final : public nsIObserver, public nsSupportsWeakReference {
const nsAString& aCountLabel,
uint32_t aCountValue) const;
bool ShouldIncludeStackTrace(MethodName aMethodName) const;
static bool ShouldIncludeStackTrace(MethodName aMethodName);
JSObject* GetOrCreateSandbox(JSContext* aCx, nsIPrincipal* aPrincipal);