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

Uncaught SyntaxError: Invalid regular expression: /^on-.+$/: Stack overflow #85

Closed
yocontra opened this issue Nov 4, 2012 · 7 comments

Comments

@yocontra
Copy link
Contributor

yocontra commented Nov 4, 2012

Uncaught SyntaxError: Invalid regular expression: /^on-.+$/: Stack overflow
Rivets.View.View.build.parseNode
Rivets.View.View.build
__bind
View
rivets.bind
Rivets.binders.each-*.routine
Rivets.Binding.Binding.set
__bind
Rivets.Binding.Binding.sync
__bind
Rivets.Binding.Binding.bind
__bind
Rivets.View.View.bind
__bind
rivets.bind
Rivets.binders.each-*.routine
Rivets.Binding.Binding.set
__bind
Rivets.Binding.Binding.sync
__bind
Rivets.Binding.Binding.bind
__bind
Rivets.View.View.bind
__bind
rivets.bind
Rivets.binders.each-*.routine
Rivets.Binding.Binding.set
__bind
Rivets.Binding.Binding.sync
__bind
Rivets.Binding.Binding.bind
__bind
Rivets.View.View.bind
__bind
rivets.bind
Rivets.binders.each-*.routine

(repeats like this for a long time)
@mikeric
Copy link
Owner

mikeric commented Nov 4, 2012

Can you provide a contrived example to reproduce this?

@yocontra
Copy link
Contributor Author

yocontra commented Nov 4, 2012

It's difficult to see which part of the application the error is coming from without a stack trace so I can't tell which binding or adapter is causing the issue - will look into it and see if I can get a test for it later today

@yocontra
Copy link
Contributor Author

yocontra commented Nov 4, 2012

Browser is Chromium Version 20.0.1132.47 Ubuntu 12.04 (144678)

@ghost
Copy link

ghost commented Nov 8, 2012

I can reproduce this. I modified the stapes todo sample to isolate the issue. Here is a fiddle:

http://jsfiddle.net/dheeraj_kumar/py4gD/

I don't get the regular expression error, but the stack trace is exactly the same.

@ghost
Copy link

ghost commented Nov 8, 2012

This seems to occur only when the loop is bound to data returned from a method, not to data itself.

Thoughts, @contra ?

@ghost
Copy link

ghost commented Nov 8, 2012

The same todo list, which works perfectly when the loop is bound to actual data, not returned from a method.
http://jsfiddle.net/dheeraj_kumar/qNKht/

@ghost
Copy link

ghost commented Nov 8, 2012

Found it! forking...

@ghost ghost mentioned this issue Nov 8, 2012
@mikeric mikeric closed this as completed in 6c26680 Nov 9, 2012
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

Successfully merging a pull request may close this issue.

2 participants