fix isKeyword flow overload
This commit is contained in:
parent
4fc1bbeb60
commit
7ccd135e83
@ -690,7 +690,11 @@ acorn.plugins.flow = function (instance) {
|
||||
// and set startExpr
|
||||
instance.extend("isKeyword", function (inner) {
|
||||
return function(name) {
|
||||
return name !== "void" && inner.call(this, name)
|
||||
if (this.inType && name === "void") {
|
||||
return false
|
||||
} else {
|
||||
return inner.call(this, name)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user