rails / coffee-rails

CoffeeScript adapter for the Rails asset pipeline. Also adds support for .coffee views.
MIT License
230 stars 64 forks source link

Problems using '\0' on Strings #31

Closed hesenrre closed 11 years ago

hesenrre commented 12 years ago

Hi.

I'm having some problems using the '\0' character on Strings for example if I write: console.debug("hello world\0")

I got this error Uncaught Error: ExecJS::RuntimeError: SyntaxError: octal escape sequences "Hello World\0" are not allowed on line ...

but if I try the same on coffee from command line (from node) it work: coffee> console.log("hello world\0") hello world undefined

rafaelfranca commented 11 years ago

This is a runtime error, so it is not a coffee-rails issue.