From 993de8b4c470cfe94350182770d18ee1f25f9628 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 15 Sep 2016 00:45:25 -0400 Subject: [PATCH] (Emscripten) Use .bind() on the console object --- pkg/emscripten/proto.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/emscripten/proto.js b/pkg/emscripten/proto.js index 63b941d1f5..92d02f463c 100644 --- a/pkg/emscripten/proto.js +++ b/pkg/emscripten/proto.js @@ -239,9 +239,9 @@ var Module = arguments: ["-v", "--menu"], preRun: [], postRun: [], - // Print both stdout and stderr to the browser console. - print: console.log, - printErr: console.log, + // Log both stdout and stderr with the browser's console object. + print: console.log.bind(console), + printErr: console.log.bind(console), canvas: document.getElementById('canvas'), totalDependencies: 0, monitorRunDependencies: function(left)