handle cases when body of for-of statement is expanded after loop conversion (#13677)

This commit is contained in:
Vladimir Matveev
2017-01-25 09:53:34 -08:00
committed by GitHub
parent e679b2ee76
commit abc30b26c7
5 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
// @target: es5
declare let doSomething;
for (let a1 of [])
for (let a2 of a1.someArray)
doSomething(() => a2);