bcoin: enumerate properties

This commit is contained in:
Braydon Fuller 2018-08-17 14:58:49 -07:00
parent b3fd9656f9
commit 0e93cbaec4

View File

@ -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);