Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled rejection has stack trace in Chrome/FF but not IE11 #536

Closed
rogierschouten opened this issue Mar 20, 2015 · 2 comments
Closed

Comments

@rogierschouten
Copy link

An unhandled rejection has a stack property in Chrome and FF but not in IE11, why is that? Uncaught exceptions do have stack traces in IE11.

Code:

Promise.reject(new Error("test rejection"));

IE11:

stack:

Chrome:

stack:

Error: test rejection
    at Navigation.causeReject (http://127.0.0.1:8080/bundle.js:4812:24)
    at Object.executeDispatch (http://127.0.0.1:8080/bundle.js:26244:21)
    at SimpleEventPlugin.executeDispatch (http://127.0.0.1:8080/bundle.js:39018:40)
    at forEachEventDispatch (http://127.0.0.1:8080/bundle.js:26232:5)
    at Object.executeDispatchesInOrder (http://127.0.0.1:8080/bundle.js:26253:3)
    at executeDispatchesAndRelease (http://127.0.0.1:8080/bundle.js:25622:22)
    at forEachAccumulated (http://127.0.0.1:8080/bundle.js:41022:8)
    at Object.EventPluginHub.processEventQueue (http://127.0.0.1:8080/bundle.js:25827:5)
    at runEventQueueInBatch (http://127.0.0.1:8080/bundle.js:33418:18)
    at Object.ReactEventEmitterMixin.handleTopLevel [as _handleTopLevel] (http://127.0.0.1:8080/bundle.js:33444:5)
    at handleTopLevelImpl (http://127.0.0.1:8080/bundle.js:33530:24)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (http://127.0.0.1:8080/bundle.js:39992:20)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (http://127.0.0.1:8080/bundle.js:32157:19)
    at Object.batchedUpdates (http://127.0.0.1:8080/bundle.js:38158:20)
    at ReactEventListener.dispatchEvent (http://127.0.0.1:8080/bundle.js:33625:20

Firefox:

stack:

[23]</Navigation</Navigation.prototype.causeError@http://127.0.0.1:8080/bundle.js:4809:15
executeDispatch@http://127.0.0.1:8080/bundle.js:26244:21
[182]</</SimpleEventPlugin.executeDispatch@http://127.0.0.1:8080/bundle.js:39018:23
forEachEventDispatch@http://127.0.0.1:8080/bundle.js:26232:5
executeDispatchesInOrder@http://127.0.0.1:8080/bundle.js:26253:3
[105]</</executeDispatchesAndRelease@http://127.0.0.1:8080/bundle.js:25622:5
[213]</forEachAccumulated@http://127.0.0.1:8080/bundle.js:41022:5
[105]</</EventPluginHub.processEventQueue@http://127.0.0.1:8080/bundle.js:25827:5
runEventQueueInBatch@http://127.0.0.1:8080/bundle.js:33418:3
[148]</ReactEventEmitterMixin.handleTopLevel@http://127.0.0.1:8080/bundle.js:33444:5
handleTopLevelImpl@http://127.0.0.1:8080/bundle.js:33530:1
[194]</</Mixin.perform@http://127.0.0.1:8080/bundle.js:39992:13
[140]</ReactDefaultBatchingStrategy.batchedUpdates@http://127.0.0.1:8080/bundle.js:32157:7
batchedUpdates@http://127.0.0.1:8080/bundle.js:38158:3
[149]</ReactEventListener.dispatchEvent@http://127.0.0.1:8080/bundle.js:33625:7
@petkaantonov
Copy link
Owner

IE adds stack property to objects that are thrown, not to error objects in general

@rogierschouten
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants