Closed johnnypez closed 11 years ago
I'm seeing this odd issue, hopefully someone can confirm it.
var data = "<%= foo(\"bar\") %>"; var view = { foo: function(str){ return x(str) } } parrot.render(data, {sandbox:view})
var data = "<%= foo('bar') %>"; var view = { foo: function(str){ return x(str) } } parrot.render(data, {sandbox:view})
B works when I encapsulate the function param 'bar' with single quotes instead of double quotes.
Can anyone else reproduce this?
duplicated in #7, resolved in #8
I'm seeing this odd issue, hopefully someone can confirm it.
A - This Fails
SyntaxError: Unexpected token ILLEGAL parrot/index.js:165
B - This Works
B works when I encapsulate the function param 'bar' with single quotes instead of double quotes.
Can anyone else reproduce this?