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

stacktrace.js breaks in strict mode in IE 10 #80

Closed
fresheneesz opened this issue May 5, 2014 · 2 comments
Closed

stacktrace.js breaks in strict mode in IE 10 #80

fresheneesz opened this issue May 5, 2014 · 2 comments

Comments

@fresheneesz
Copy link
Contributor

I'm bundling stacktrace.js with my other modules using browserify, and the entrypoint function declares "use strict". I'm not sure why this is causing IE to evaluate stacktrace.js itself with strict mode (I suspect its not supposed to), but it's causing stacktrace.js to throw an exception in this case.

For some reason, the exception is being labeled as mode 'other' (instead of 'ie', even though this.mode(this.createException()) returns 'ie'), and is going through code that executes curr = curr.caller, which IE complains that "Accessing the 'caller' property of a function or arguments is not allowed in strict mode".

@fresheneesz
Copy link
Contributor Author

Nevermind, this was happening because I was passing my own error into stacktrace. Stupid IE

@rcorrie
Copy link

rcorrie commented Apr 7, 2016

This was happening to me when I passed an Object instead of a String.

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

No branches or pull requests

2 participants