Consider the following piece of javascript, which could be quiet common in an express.js node application:
function router(app) {
app.post("/some/route", function (req, res, next) {
next();
});
// this will break the parser:
app.delete("/some/route", function (req,res, next) {
next();
});
}
The second route will break the syntax highlighter (and in general the javascript parser) because of the delete method.
Yeah, the parser is old - reserved words as property names were disallowed until recently. Not sure if this is something to fix or wait till the new version with a new parser.
Consider the following piece of javascript, which could be quiet common in an express.js node application:
The second route will break the syntax highlighter (and in general the javascript parser) because of the delete method.