maxtaco/coffee-script — pull request #39 by midworld (2012-08-26 11:28:37+00:00)
Title: Fix file path including '\' (mostly Windows path)

In Windows platform, unescaped \ makes some problem.

compiled string:
(function(__iced_k) {
__iced_deferrals = new iced.Deferrals(__iced_k, {
filename: "E:\Work\123456\trunk\controllers\user\a.iced" // unescaped!!!
});

and error message:
E:\Work\123456\trunk\controllers\user\a.iced:14
filename: "E:\Work\123456\trunk\controllers\user\a.iced"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:437:25)
at Object.require.extensions.(anonymous function) [as .iced] (E:\Work\pub272
\trunk\node_modules\iced-coffee-script\lib\coffee-script\coffee-script.js:39:23)

at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at E:\Work\pub272\trunk\app.iced:106:9
at Deferrals.exports.generator.runtime.Deferrals.Deferrals._call (E:\Work\pu
b272\trunk\node_modules\iced-coffee-script\lib\coffee-script\iced.js:98:18)
at Deferrals.exports.generator.runtime.Deferrals.Deferrals._fulfill (E:\Work
\pub272\trunk\node_modules\iced-coffee-script\lib\coffee-script\iced.js:107:23)
at RedisClient.exports.generator.intern.makeDeferReturn.ret (E:\Work\pub272\
trunk\node_modules\iced-coffee-script\lib\coffee-script\iced.js:56:20)
at RedisClient.EventEmitter.emit (events.js:85:17)