summaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/util.js b/lib/util.js
index ae2295533d..8eaf62f0ab 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -285,7 +285,11 @@ function inherits(ctor, superCtor) {
throw new ERR_INVALID_ARG_TYPE('superCtor.prototype',
'Function', superCtor.prototype);
}
- ctor.super_ = superCtor;
+ Object.defineProperty(ctor, 'super_', {
+ value: superCtor,
+ writable: true,
+ configurable: true
+ });
Object.setPrototypeOf(ctor.prototype, superCtor.prototype);
}