e1c8e996b7
Almost no calls are going to work at this point, but core.js can load now and there is enough in place to continue to load sunflower. R=sigmund@google.com Review URL: https://codereview.chromium.org/1020043002
26 lines
636 B
JavaScript
26 lines
636 B
JavaScript
var _js_primitives;
|
|
(function(exports) {
|
|
'use strict';
|
|
// Function printString: (String) → void
|
|
function printString(string) {
|
|
if (typeof dartPrint == "function") {
|
|
dartPrint(string);
|
|
return;
|
|
}
|
|
if (typeof console == "object" && typeof console.log != "undefined") {
|
|
console.log(string);
|
|
return;
|
|
}
|
|
if (typeof window == "object") {
|
|
return;
|
|
}
|
|
if (typeof print == "function") {
|
|
print(string);
|
|
return;
|
|
}
|
|
throw "Unable to print message: " + String(string);
|
|
}
|
|
// Exports:
|
|
exports.printString = printString;
|
|
})(_js_primitives || (_js_primitives = {}));
|