JS backend: fixed variable capturing in extension functions.

Fixed ClosureTest.testWrappedVariableInExtensionFun IteratorsTest.foldReducesTheFirstNElements and IteratorsTest.takeExtractsTheFirstNElements. All tests passed.

(cherry picked from commit f8f1895)
This commit is contained in:
develar
2013-08-08 21:28:41 +04:00
committed by Zalim Bashorov
parent 786652940d
commit e786e62fd7
12 changed files with 121 additions and 71 deletions
@@ -47,4 +47,8 @@ public final class ClosureTest extends SingleFileTranslationTest {
public void testClosureInNestedFunctionsInMethod() throws Exception {
checkFooBoxIsOk();
}
public void testWrappedVariableInExtensionFun() throws Exception {
fooBoxTest();
}
}