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

karma stop when error object is not string (Firefox & IE) #1750

Open
nam-truong-le opened this issue Dec 7, 2015 · 0 comments
Open

karma stop when error object is not string (Firefox & IE) #1750

nam-truong-le opened this issue Dec 7, 2015 · 0 comments

Comments

@nam-truong-le
Copy link

I started a test with Karma and received the error TypeError: undefined is not a function. I tried to debug it and found out that: in the function createErrorFormatter in the file reporter.js this line couldn't be executed:
msg = (msg || '').replace(URL_REGEXP, function (_, prefix, path, __, ___, line, ____, column) {...

The reason is the msg which was given in the method onKarmaError in the file browser.js is not a String and hence the replace function is undefined:

Surprisingly this issue occurs only when I test with Firefox and IE. There is no issue with Chrome and Safari.

karma1

karma2

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

No branches or pull requests

2 participants