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:
@@ -47,4 +47,8 @@ public final class ClosureTest extends SingleFileTranslationTest {
|
||||
public void testClosureInNestedFunctionsInMethod() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testWrappedVariableInExtensionFun() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user