fix corner case with arguments (#4697)

fixes #4696
This commit is contained in:
Alex Lam S.L
2021-02-27 01:26:15 +00:00
committed by GitHub
parent ba4a771bbc
commit 0a42457df6
3 changed files with 24 additions and 1 deletions

View File

@@ -428,7 +428,7 @@ var AST_For = DEFNODE("For", "init condition step", {
}, AST_IterationStatement);
var AST_ForEnumeration = DEFNODE("ForEnumeration", "init object", {
$documentation: "Base class for enumeration loops, i.e. `for ... in`, `for ... of` & `for await ... of`",
$documentation: "Base class for enumeration loops, i.e. `for ... in`, `for ... of` & `for await ... of`",
$propdoc: {
init: "[AST_Node] the assignment target during iteration",
object: "[AST_Node] the object to iterate over"