From 6325878d4328b7fbea7da1598b1210547104e9fe Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 9 Oct 2009 13:30:27 +0200 Subject: [PATCH] Raise helpful error when include() is called. --- src/node.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node.js b/src/node.js index 66938ea4a6..0838b75a8d 100644 --- a/src/node.js +++ b/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.