From 1026ffea4040af8630a223b28accbafdb0d754d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisend=C3=B6rfer?= Date: Wed, 11 Nov 2009 17:03:13 +0100 Subject: [PATCH] Proper deprecation message for process.inherits --- src/node.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/node.js b/src/node.js index 9fbc24b046..794b6fd913 100644 --- a/src/node.js +++ b/src/node.js @@ -70,8 +70,9 @@ node.inherits = function () { throw new Error("node.inherits() has moved. Use require('sys') to access it."); }; -process.inherits = node.inherits; - +process.inherits = function () { + throw new Error("process.inherits() has moved. Use require('sys') to access it."); +}; process.createChildProcess = function (file, args, env) {