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