visionmedia/jade — Issue #422: Unexpected reserved word using node > 0.6.0
Author: PabloSerbo
Created: 2011-11-29 12:54:58+00:00
State: open

I get the following when rendering certain pages through jade@0.18.0 on node 0.6.0+

The problem seems to be this line:

161 fn = new Function('local s, attrs, escape, rethrow', fn);

Stacktrace

Unexpected Exception stack=SyntaxError: Unexpected reserved word
at Object.Function (unknown source)
at Object.compile (/private/var/application/Personal/control/node_modules/jade/lib/jade.js:161:8)
at Function.compile (/private/var/application/Personal/control/node_modules/express/lib/view.js:65:33)
at ServerResponse._render (/private/var/application/Personal/control/node_modules/express/lib/view.js:414:18)
at ServerResponse.render (/private/var/application/Personal/control/node_modules/express/lib/view.js:315:17)
at /private/var/application/Personal/control/lib/viewRenderDelegate.js:4:7
at /private/var/application/Personal/control/bundles/admin/controller.js:56:3
at callbacks (/private/var/application/Personal/control/node_modules/express/lib/router/index.js:272:11)
at /private/var/application/Personal/control/bundles/admin/controller.js:23:4
at /private/var/application/Personal/control/lib/utils/mongodbCrudDelegate.js:129:4