3 ms·
>instead of using `console.log(...)` they use `print (...)` as if it is Python. There's a `Module.print` that wraps `console.log` with a bit of logic. The code
by Arnavion 7y ago
>instead of using `console.log(...)` they use `print (...)` as if it is Python.
There's a `Module.print` that wraps `console.log` with a bit of logic. The code might have intended to call that one.
window.Module = function (e, n, f) {
var d = {
},
p = [
'DEBUGGING ENABLED'
];
return d.print = function (e) {
return p.indexOf(e) < 0 && console.log('WASM: ' + e)
},
d.printErr = function (e) {
return console.error('WASM: ' + e)
},
...
d
}(e, n, f)