Skip to content

Commit 6338df2

Browse files
Remove SM staging tests wrongly testing invalid LHS
It is an early error if the LHS of: - ForOfStatement - UpdateExpression - AssignmentExpression - DestructuringAssignmentTarget is not simple (i.e. not a function call).
1 parent dc0082c commit 6338df2

File tree

3 files changed

+1
-177
lines changed

3 files changed

+1
-177
lines changed

test/staging/sm/extensions/inc-dec-functioncall.js

-95
This file was deleted.

test/staging/sm/regress/regress-609617.js

-81
This file was deleted.

test/staging/sm/statements/for-of-iterator-close.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function test() {
4040
throw "in lhs";
4141
}
4242
assertThrowsValue(function() {
43-
for ((throwlhs()) of iterable)
43+
for ((throwlhs().x) of iterable)
4444
continue;
4545
}, "in lhs");
4646
assert.sameValue(returnCalled, ++returnCalledExpected);

0 commit comments

Comments
 (0)