blob: ac9e1d309fb63c4098edd3ac35716d15f6dc552c [file] [log] [blame]
// Expectation for test:
// var foo = 42;
// main() { print(foo); }
function() {
var line = H.S($.foo);
if (typeof dartPrint == "function")
dartPrint(line);
else if (typeof console == "object" && typeof console.log != "undefined")
console.log(line);
else if (!(typeof window == "object")) {
if (!(typeof print == "function"))
throw "Unable to print message: " + String(line);
print(line);
}
}