Revert "fix(promise): Don't use deprecated Promise.longStackTraces()"

This reverts commit ac7602155c.
This commit is contained in:
Evan Morikawa 2016-09-20 17:23:53 -04:00
parent da2e2eec16
commit 7a0e8691ea
4 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ try
require '../src/window'
NylasEnvConstructor = require '../src/nylas-env'
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
# that are focused in the very first spec run.

View file

@ -243,7 +243,7 @@ class NylasEnvConstructor
@reportError(error, {promise})
if @inSpecMode() or @inDevMode()
Promise.config({longStackTraces: true})
Promise.longStackTraces()
_createErrorCallbackEvent: (error, extraArgs={}) ->
event = _.extend({}, extraArgs, {

View file

@ -19,7 +19,7 @@ require './window'
NylasEnvConstructor = require './nylas-env'
window.NylasEnv = window.atom = NylasEnvConstructor.loadOrCreate()
global.Promise.config({longStackTraces: true}) if NylasEnv.inDevMode()
global.Promise.longStackTraces() if NylasEnv.inDevMode()
NylasEnv.initialize()
NylasEnv.startSecondaryWindow()

View file

@ -8,7 +8,7 @@ require './window'
NylasEnvConstructor = require './nylas-env'
window.NylasEnv = window.atom = NylasEnvConstructor.loadOrCreate()
global.Promise.config({longStackTraces: true}) if NylasEnv.inDevMode()
global.Promise.longStackTraces() if NylasEnv.inDevMode()
NylasEnv.initialize()
NylasEnv.startRootWindow()