News for hackers. Stuff that matters.
Re:Math.Round opens the browser print dialog by Arnavion on Wednesday June 19, 2019 @07:52PM (#20228514)
>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)

There are no comments on this comment yet.