From 0e93cbaec4f5f8f0b814c5fa75ac834aa1621cea Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Fri, 17 Aug 2018 14:58:49 -0700 Subject: [PATCH] bcoin: enumerate properties --- lib/bcoin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bcoin.js b/lib/bcoin.js index 30301a25..b5e2a018 100644 --- a/lib/bcoin.js +++ b/lib/bcoin.js @@ -30,6 +30,7 @@ const bcoin = exports; bcoin.define = function define(name, path) { let cache = null; Object.defineProperty(bcoin, name, { + enumerable: true, get() { if (!cache) cache = require(path);