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