| 1 |
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <[email protected]> |
| 2 |
Date: Sat, 25 Sep 2021 12:46:57 +0000 |
| 3 |
Subject: Ctor are enumerable |
| 4 |
|
| 5 |
Forwarded: https://github.com/jonschlinkert/static-extend/issues/3 |
| 6 |
--- |
| 7 |
index.js | 1 + |
| 8 |
1 file changed, 1 insertion(+) |
| 9 |
|
| 10 |
diff --git a/index.js b/index.js |
| 11 |
index f4124b2..4a0fc22 100644 |
| 12 |
--- a/index.js |
| 13 |
+++ b/index.js |
| 14 |
@@ -69,6 +69,7 @@ function extend(Parent, extendFn) { |
| 15 |
// keep a reference to the parent prototype |
| 16 |
define(Ctor.prototype, '_parent_', { |
| 17 |
configurable: true, |
| 18 |
+ enumerable: true, |
| 19 |
set: function() {}, |
| 20 |
get: function() { |
| 21 |
return Parent.prototype; |