bcoin: enumerate properties
This commit is contained in:
parent
b3fd9656f9
commit
0e93cbaec4
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user