Raise helpful error when include() is called.

pull/5370/head
Ryan Dahl 2009-10-09 13:30:27 +02:00
parent e742d077e0
commit 6325878d43
1 changed files with 4 additions and 0 deletions

View File

@ -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.