Browse Source

Raise helpful error when include() is called.

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
6325878d43
  1. 4
      src/node.js

4
src/node.js

@ -39,6 +39,10 @@ node.tcp.createConnection = function (port, host) {
throw new Error("node.tcp.createConnection() has moved. Use require('/tcp.js') to access it.");
};
include = function () {
throw new Error("include() has been removed. Use node.mixin(process, require(file)) to get the same effect.");
}
/* From jQuery.extend in the jQuery JavaScript Library v1.3.2
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.

Loading…
Cancel
Save