Skip to content

Commit

Permalink
Remove SM staging tests wrongly testing invalid LHS
Browse files Browse the repository at this point in the history
It is an early error if the LHS of:
- ForOfStatement
- UpdateExpression
- AssignmentExpression
- DestructuringAssignmentTarget
is not simple (i.e. not a function call).
  • Loading branch information
nicolo-ribaudo committed Dec 13, 2024
1 parent dc0082c commit 6338df2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 177 deletions.
95 changes: 0 additions & 95 deletions test/staging/sm/extensions/inc-dec-functioncall.js

This file was deleted.

81 changes: 0 additions & 81 deletions test/staging/sm/regress/regress-609617.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/staging/sm/statements/for-of-iterator-close.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function test() {
throw "in lhs";
}
assertThrowsValue(function() {
for ((throwlhs()) of iterable)
for ((throwlhs().x) of iterable)
continue;
}, "in lhs");
assert.sameValue(returnCalled, ++returnCalledExpected);
Expand Down

0 comments on commit 6338df2

Please sign in to comment.