JS lib: introduced different output strategies, and chose them depending of environment.
#KT-2994 Fixed
This commit is contained in:
@@ -140,6 +140,9 @@ public final class RhinoUtils {
|
||||
try {
|
||||
ScriptableObject scope = getScope(ecmaVersion, context, jsLibraries);
|
||||
putGlobalVariablesIntoScope(scope, variables);
|
||||
|
||||
context.evaluateString(scope, "Kotlin.out = new Kotlin.BufferedOutput();", "setup Kotlin.out", 0, null);
|
||||
|
||||
for (String filename : fileNames) {
|
||||
runFileWithRhino(filename, context, scope);
|
||||
//String problems = lintIt(context, filename, scope);
|
||||
|
||||
@@ -130,4 +130,8 @@ public final class NativeInteropTest extends SingleFileTranslationTest {
|
||||
public void testNestedElements() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
|
||||
public void testPrint() throws Exception {
|
||||
checkFooBoxIsOk();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user