Index: tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart |
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart |
index 4de37b1545064385a848201dd1f3b7cffae4e2c6..382736c33b0602189778a6dfaf28f39cf98131e9 100644 |
--- a/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart |
+++ b/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart |
@@ -18,7 +18,16 @@ main() { |
}""", |
r""" |
function() { |
- P.print(4); |
+ var v0 = H.S(4); |
+ if (typeof dartPrint == "function") |
+ dartPrint(v0); |
+ else if (typeof console == "object" && typeof console.log != "undefined") |
+ console.log(v0); |
+ else if (!(typeof window == "object")) { |
+ if (!(typeof print == "function")) |
+ throw "Unable to print message: " + String(v0); |
+ print(v0); |
+ } |
}"""), |
const TestEntry(""" |
main() { |