discard the hack that worked around the deprecation warning

(since the source-map module no longer uses require.js)

refs #9
This commit is contained in:
Mihai Bazon
2012-11-05 22:23:51 +02:00
parent ffccb233e5
commit 7f5f4d60b7

View File

@@ -1,18 +1,5 @@
var path = require("path");
var fs = require("fs");
// Avoid NodeJS warning.
//
// There's a --no-deprecation command line argument supported by
// NodeJS, but that's tricky to use, so I'd like to set it from the
// program itself. Turns out you need to set `process.noDeprecation`,
// but by the time you can set that the `path` module is already
// loaded and `path.existsSync` is already changed to display that
// warning, therefore here's the poor solution:
if (fs.existsSync) {
path.existsSync = fs.existsSync;
}
var vm = require("vm");
var sys = require("util");