canjs/can-compile

phantomjs "SyntaxError: Parse error"

Closed this issue · 3 comments

not sure if it's actually can-compile issue but jshint gives errors only for views.js compiled using can-compile.
qunit/funcunit test works as expected in browser (like google chrome) but if i use grunt/qunit/phantomjs to run tests it breaks with "SyntaxError: Parse error".

any suggestions?

I don't think this is can-compile related. I've actually been looking at one of the compiled views yesterday and I am pretty sure they are not jsHint friendly (first thing I can think of it the use of the with operator). It might be worth thinking about making them jsHint solid though.

Oh sorry I missed the part where they break in Phantom. Could you provide a breaking example? I only test the development version of the application which might be why I never ran into it.

i'll try to figure out why it breaks and if i manage to provide a simple example i'll reopen this issue.