ollym/parrot — pull request #5 by n0valyfe (2011-12-29 14:47:02+00:00)
Title: Bugs with latest node (0.6.6)

.replace(new RegExp(':\\s*' + et, 'gm'), '{ %>')
^
SyntaxError: Invalid flags supplied to RegExp constructor 'g,m'
at new RegExp (unknown source)
at Object.render (/home/../node_modules/parrot/index.js:156:12)

Line 156 and the following 6 lines have been changed from ["g", "m"] to "gm", not sure why this has been changed in node but it now works.

Script.runInNewContext(data, config.sandbox);
^
TypeError: Cannot call method 'runInNewContext' of undefined
at Object.render (/home/../node_modules/parrot/index.js:165:9)

Script = process.binding('evals').Script has been changed to Script = require('vm') where 'runInNewContext' is now located.