fix parsing of arrow function with bind

fixes #1510
This commit is contained in:
kzc
2017-02-28 02:47:33 +08:00
committed by alexlamsl
parent 57777b6cfa
commit a0eaff750d
2 changed files with 23 additions and 0 deletions

View File

@@ -635,6 +635,11 @@ function OutputStream(options) {
return false;
});
PARENS(AST_Arrow, function(output){
var p = output.parent();
return p instanceof AST_PropAccess && p.expression === this;
});
// same goes for an object literal, because otherwise it would be
// interpreted as a block of code.
PARENS(AST_Object, function(output){