Skip to content

Commit 42dd629

Browse files
committed
deprecation error for process.inherits()
1 parent 9cfa4fd commit 42dd629

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/node.js

+5
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ node.dns.createConnection = function () {
6666
throw new Error("node.dns.createConnection() has moved. Use require('dns') to access it.");
6767
};
6868

69+
node.inherits = function () {
70+
throw new Error("node.inherits() has moved. Use require('sys') to access it.");
71+
};
72+
73+
process.inherits = node.inherits;
6974

7075

7176

0 commit comments

Comments
 (0)