diff --git a/spec/spec-bootstrap.coffee b/spec/spec-bootstrap.coffee index a5821399a..060d0173e 100644 --- a/spec/spec-bootstrap.coffee +++ b/spec/spec-bootstrap.coffee @@ -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. diff --git a/src/nylas-env.coffee b/src/nylas-env.coffee index 723f3abd2..cd6abccb3 100644 --- a/src/nylas-env.coffee +++ b/src/nylas-env.coffee @@ -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, { diff --git a/src/secondary-window-bootstrap.coffee b/src/secondary-window-bootstrap.coffee index 768e7b30b..6fc12044b 100644 --- a/src/secondary-window-bootstrap.coffee +++ b/src/secondary-window-bootstrap.coffee @@ -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() diff --git a/src/window-bootstrap.coffee b/src/window-bootstrap.coffee index 990f42d35..e67511083 100644 --- a/src/window-bootstrap.coffee +++ b/src/window-bootstrap.coffee @@ -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()