reject invalid for...of syntax (#4632)

This commit is contained in:
Alex Lam S.L
2021-02-09 21:42:27 +00:00
committed by GitHub
parent 14fedbf123
commit 228cdf8e7e
4 changed files with 91 additions and 44 deletions

View File

@@ -0,0 +1,3 @@
var a = [ 1 ], b;
for (b = 2 of a)
console.log(b);