... | ... | @@ -64,7 +64,7 @@ disambiguate. Algorithm: |
|
|
// ... + {...}
|
|
|
// ... typeof {...}
|
|
|
return false
|
|
|
else if tok-1 is "return"
|
|
|
else if tok-1 is one of "return" "yield"
|
|
|
// handle ASI
|
|
|
if lineNumber(tok) isnt lineNumber(tok-1)
|
|
|
// return
|
... | ... | @@ -73,8 +73,6 @@ disambiguate. Algorithm: |
|
|
else
|
|
|
// return {...}
|
|
|
return false
|
|
|
else if tok-1 is "yield" // could also put "yield" in unaryOps
|
|
|
return false
|
|
|
else if tok-1 is one of "debugger" "break" "continue" "throw"
|
|
|
parse error
|
|
|
else if tok-1 is one of "void" "typeof" "in" "case" "delete"
|
... | ... | |