Browse Source

Remove a few old deprecation warnings

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
f47ad10db7
  1. 5
      src/node.js
  2. 5
      test/simple/test-global-leak.js

5
src/node.js

@ -13,11 +13,6 @@ function removed (reason) {
} }
} }
GLOBAL.__module = removed("'__module' has been renamed to 'module'");
GLOBAL.include = removed("include(module) has been removed. Use require(module)");
GLOBAL.puts = removed("puts() has moved. Use require('sys') to bring it back.");
GLOBAL.print = removed("print() has moved. Use require('sys') to bring it back.");
GLOBAL.p = removed("p() has moved. Use require('sys') to bring it back.");
process.debug = removed("process.debug() has moved. Use require('sys') to bring it back."); process.debug = removed("process.debug() has moved. Use require('sys') to bring it back.");
process.error = removed("process.error() has moved. Use require('sys') to bring it back."); process.error = removed("process.error() has moved. Use require('sys') to bring it back.");
process.watchFile = removed("process.watchFile() has moved to fs.watchFile()"); process.watchFile = removed("process.watchFile() has moved to fs.watchFile()");

5
test/simple/test-global-leak.js

@ -8,11 +8,6 @@ var knownGlobals = [ setTimeout
, Buffer , Buffer
, process , process
, global , global
, __module
, include
, puts
, print
, p
]; ];
for (var x in global) { for (var x in global) {

Loading…
Cancel
Save