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

javascript-stacktrace is not JSLint valid code #8

Closed
mikkotikkanen opened this issue Oct 21, 2010 · 5 comments
Closed

javascript-stacktrace is not JSLint valid code #8

mikkotikkanen opened this issue Oct 21, 2010 · 5 comments

Comments

@mikkotikkanen
Copy link

There are multiple issues that JSLint catches with javascript-stacktrace. I am working those through but there are some that I have been unable to solve.

For example, the "(0)();" rows come out with "Bad invocation." -error.

And, "var reStack = /{anonymous}(.*)@(\w+://([-\w.]+)+(:\d+)?[^:]+):(\d+):?(\d+)?/;" -row has three separate errors: Unescaped '{', Unescaped '}' and Unescaped '-'.

@eriwen
Copy link
Member

eriwen commented Oct 21, 2010

Thanks for letting me know.

I have fixed all issues except referencing arguments.callee (which I must do because it is fundamental to the project).

Please let me know if you have other ideas/suggestions.

@mikkotikkanen
Copy link
Author

Unfortunately the fresh code still gives few issues.
"207:24: Unsafe character. �yvind Sean Kinsey http://kinsey.no/blog (2010)"
"276:50: Unexpected use of '<<'. var _err = undef << 1;"
"290:38: Unexpected use of '<<'. var _err = undef << 1;"

@eriwen
Copy link
Member

eriwen commented Oct 22, 2010

Interesting. The JSLint tool I'm using did not catch those.

May I ask which tool you're using?

As far as the "Unexpected use of '<<'", I'm intentionally trying to cause an error without throw new Error(..). If you can find a way for me to do that without generating a JSLint warning, I'll be happy to include it.

Thanks again for your help, Eric

@mikkotikkanen
Copy link
Author

I'm actually using the JSLint itself, through Ant+Aptana. :)

@eriwen
Copy link
Member

eriwen commented Oct 22, 2010

I was just checking it through jslint.com, odd that it didn't whine about those things.

This issue was closed.
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