From e256ea5d0849bbeeca5e7f0210369d458ad7e0a2 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 21 Sep 2017 14:14:53 +0200 Subject: Fix warning --- orig/pq-web/sim.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/orig/pq-web/sim.js b/orig/pq-web/sim.js index 52fcb5d..2b0b5a7 100644 --- a/orig/pq-web/sim.js +++ b/orig/pq-web/sim.js @@ -78,17 +78,14 @@ var document = null; if (typeof process !== "undefined") { // Node var fs = require("fs"); - var sys = require("sys"); var load = function (filename) { var content = fs.readFileSync(filename); require("vm").runInThisContext(content, filename); //global.eval.call(global, String(content)); }; var print = function () { - for (var i = 0, len = arguments.length; i < len; ++i) { - sys.print(arguments[i] + " "); - } - sys.puts(""); + args = Array.prototype.slice.call(arguments); + console.log(args.join(" ")); }; var read = function (f) { return fs.readFileSync(f); }; var write = function (f,c) { fs.writeFileSync(f,c); }; -- cgit v1.2.3