mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Don't fail on environments that miss console object in global scope
This commit is contained in:
parent
1232f20ae4
commit
7313b2bb62
|
@ -483,10 +483,10 @@ function $rt_createOutputFunction(printFunction) {
|
|||
|
||||
var $rt_putStdout = typeof $rt_putStdoutCustom === "function"
|
||||
? $rt_putStdoutCustom
|
||||
: console ? $rt_createOutputFunction(function(msg) { console.info(msg); }) : function() {};
|
||||
: typeof console === "object" ? $rt_createOutputFunction(function(msg) { console.info(msg); }) : function() {};
|
||||
var $rt_putStderr = typeof $rt_putStderrCustom === "function"
|
||||
? $rt_putStderrCustom
|
||||
: console ? $rt_createOutputFunction(function(msg) { console.error(msg); }) : function() {};
|
||||
: typeof console === "object" ? $rt_createOutputFunction(function(msg) { console.error(msg); }) : function() {};
|
||||
|
||||
var $rt_packageData = null;
|
||||
function $rt_packages(data) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user