mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
fix(promise): Don't use deprecated Promise.longStackTraces()
This commit is contained in:
parent
89252a7c9d
commit
ac7602155c
4 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ try
|
|||
require '../src/window'
|
||||
NylasEnvConstructor = require '../src/nylas-env'
|
||||
window.NylasEnv = window.atom = NylasEnvConstructor.loadOrCreate()
|
||||
global.Promise.longStackTraces() if NylasEnv.inDevMode()
|
||||
global.Promise.config({longStackTraces: true}) if NylasEnv.inDevMode()
|
||||
|
||||
# Show window synchronously so a focusout doesn't fire on input elements
|
||||
# that are focused in the very first spec run.
|
||||
|
|
|
@ -243,7 +243,7 @@ class NylasEnvConstructor
|
|||
@reportError(error, {promise})
|
||||
|
||||
if @inSpecMode() or @inDevMode()
|
||||
Promise.longStackTraces()
|
||||
Promise.config({longStackTraces: true})
|
||||
|
||||
_createErrorCallbackEvent: (error, extraArgs={}) ->
|
||||
event = _.extend({}, extraArgs, {
|
||||
|
|
|
@ -19,7 +19,7 @@ require './window'
|
|||
NylasEnvConstructor = require './nylas-env'
|
||||
window.NylasEnv = window.atom = NylasEnvConstructor.loadOrCreate()
|
||||
|
||||
global.Promise.longStackTraces() if NylasEnv.inDevMode()
|
||||
global.Promise.config({longStackTraces: true}) if NylasEnv.inDevMode()
|
||||
|
||||
NylasEnv.initialize()
|
||||
NylasEnv.startSecondaryWindow()
|
||||
|
|
|
@ -8,7 +8,7 @@ require './window'
|
|||
|
||||
NylasEnvConstructor = require './nylas-env'
|
||||
window.NylasEnv = window.atom = NylasEnvConstructor.loadOrCreate()
|
||||
global.Promise.longStackTraces() if NylasEnv.inDevMode()
|
||||
global.Promise.config({longStackTraces: true}) if NylasEnv.inDevMode()
|
||||
NylasEnv.initialize()
|
||||
NylasEnv.startRootWindow()
|
||||
|
||||
|
|
Loading…
Reference in a new issue