You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following piece of javascript, which could be quiet common in an express.js node application:
functionrouter(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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: