aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2015-05-04 15:07:16 +0300
committerMihai Bazon <mihai.bazon@gmail.com>2015-05-04 15:07:16 +0300
commitd2dda34b2a8de310f26a26e58ed28275ba5ecc7f (patch)
treed444d33ab5d6f198b8ad17c2ad9e4405620b5903 /tools
parentc3a10c135eac6fff360ad109f30245459b0b7e13 (diff)
downloadtracifyjs-d2dda34b2a8de310f26a26e58ed28275ba5ecc7f.tar.gz
tracifyjs-d2dda34b2a8de310f26a26e58ed28275ba5ecc7f.zip
Remove deprecated calls to utils.print/utils.error
Close #542, #641, #647
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/node.js b/tools/node.js
index 054a05c0..cbe49e39 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -1,10 +1,8 @@
var path = require("path");
var fs = require("fs");
var vm = require("vm");
-var sys = require("util");
var UglifyJS = vm.createContext({
- sys : sys,
console : console,
process : process,
Buffer : Buffer,
@@ -19,7 +17,7 @@ function load_global(file) {
} catch(ex) {
// XXX: in case of a syntax error, the message is kinda
// useless. (no location information).
- sys.debug("ERROR in file: " + file + " / " + ex);
+ console.log("ERROR in file: " + file + " / " + ex);
process.exit(1);
}
};
@@ -42,7 +40,7 @@ var FILES = exports.FILES = [
FILES.forEach(load_global);
UglifyJS.AST_Node.warn_function = function(txt) {
- sys.error("WARN: " + txt);
+ console.error("WARN: %s", txt);
};
// XXX: perhaps we shouldn't export everything but heck, I'm lazy.