[Proto-Scripty] Re: SyntaxError: unterminated string literal

2009-05-21 Thread Vladimir Tkach
OK Thanks for your comments 2009/5/21 Richard Quadling > > 2009/5/21 Chris Sansom : > > > > At 17:24 +0300 21/5/09, Vladimir Tkach wrote: > >>Prototype gsub error? > >> > >>$H({s:'\'}).toJSON() > >> > >>Result : SyntaxError: unterminated string literal > > > > I /think/, though the experts her

[Proto-Scripty] Re: SyntaxError: unterminated string literal

2009-05-21 Thread Richard Quadling
2009/5/21 Chris Sansom : > > At 17:24 +0300 21/5/09, Vladimir Tkach wrote: >>Prototype gsub error? >> >>$H({s:'\'}).toJSON() >> >>Result : SyntaxError: unterminated string literal > > I /think/, though the experts hereabouts will confirm or otherwise, > that JavaScript thinks the \ is escaping the

[Proto-Scripty] Re: SyntaxError: unterminated string literal

2009-05-21 Thread Chris Sansom
At 17:24 +0300 21/5/09, Vladimir Tkach wrote: >Prototype gsub error? > >$H({s:'\'}).toJSON() > >Result : SyntaxError: unterminated string literal I /think/, though the experts hereabouts will confirm or otherwise, that JavaScript thinks the \ is escaping the quote that comes after it. To do wha