Merge pull request #576 from braydonf/ac

Tab completion of API in Node.js REPL
This commit is contained in:
Javed Khan 2018-08-27 22:26:19 +05:30 committed by GitHub
commit e4f41db5ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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