Index: tests/compiler/dart2js/cps_ir/runner.dart |
diff --git a/tests/compiler/dart2js/cps_ir/runner.dart b/tests/compiler/dart2js/cps_ir/runner.dart |
index 46fc56de1cce8284044922625ebf74ead25a175f..af77384d79236b8d192db76ec492ad419a9f0098 100644 |
--- a/tests/compiler/dart2js/cps_ir/runner.dart |
+++ b/tests/compiler/dart2js/cps_ir/runner.dart |
@@ -118,7 +118,7 @@ String _formatTest(Map test) { |
String _getCodeForMain(CompilerImpl compiler) { |
Element mainFunction = compiler.mainFunction; |
js.Node ast = compiler.enqueuer.codegen.generatedCode[mainFunction]; |
- return js.prettyPrint(ast, compiler).getText(); |
+ return js.prettyPrint(ast, compiler); |
} |
String _getCodeForMethod(CompilerImpl compiler, |
@@ -138,5 +138,5 @@ String _getCodeForMethod(CompilerImpl compiler, |
} |
js.Node ast = compiler.enqueuer.codegen.generatedCode[foundElement]; |
- return js.prettyPrint(ast, compiler).getText(); |
+ return js.prettyPrint(ast, compiler); |
} |