mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 00: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"
|
var $rt_putStdout = typeof $rt_putStdoutCustom === "function"
|
||||||
? $rt_putStdoutCustom
|
? $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"
|
var $rt_putStderr = typeof $rt_putStderrCustom === "function"
|
||||||
? $rt_putStderrCustom
|
? $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;
|
var $rt_packageData = null;
|
||||||
function $rt_packages(data) {
|
function $rt_packages(data) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user