coffee-script icon indicating copy to clipboard operation
coffee-script copied to clipboard

Filename property in trace object is invalid for windows in some cases

Open yazla opened this issue 12 years ago • 0 comments

Under windows the paths of file/folder is separated by '' symbol. But '\u' is a unicode symbol start marker in javascript, so if "\u.." is not a valid unicode symbol it is an invalid expression, hence the trace object like this is invalid: new iced.Deferrals(__iced_k, { parent: ___iced_passed_deferral, filename: "code\unicode.coffee" })

The quick fix is easy: in nodes.coffee change line 2425 from fn_rhs = new Value new Literal '"' + o.filename + '"' to fn_rhs = new Value new Literal '"' + o.filename.(/\u/g, '\u') + '"'

but i don't think this is a good one.

yazla avatar Mar 18 '13 19:03 yazla