Skip to content
This repository was archived by the owner on Sep 7, 2018. It is now read-only.

allow more than 3 arguments in handleUncaughtError()#423

Merged
dkl-ppi merged 1 commit into
busterjs:masterfrom
dominykas:onerror-args-length
Oct 1, 2014
Merged

allow more than 3 arguments in handleUncaughtError()#423
dkl-ppi merged 1 commit into
busterjs:masterfrom
dominykas:onerror-args-length

Conversation

@dominykas
Copy link
Copy Markdown
Member

This is probably a recent change in the browsers - Firefox and Chrome now both have 5 arguments to window.onerror

https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers.onerror

This fixes Uncaught exception: undefined at the start of the test run into an actually readable Uncaught exception: ./index.test.js:1 Uncaught ReferenceError: require is not defined (or whatever the error was)

Part of #422

dkl-ppi added a commit that referenced this pull request Oct 1, 2014
allow more than 3 arguments in handleUncaughtError()
@dkl-ppi dkl-ppi merged commit 600b5cb into busterjs:master Oct 1, 2014
@dkl-ppi
Copy link
Copy Markdown
Member

dkl-ppi commented Oct 1, 2014

Thank you! Good job! Keep going! ;)

@dominykas dominykas deleted the onerror-args-length branch October 1, 2014 20:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants