Symbol.for is defined but not implemented in NGINX njs plugin and throws exception.
err InternalError: not implemented
at Symbol.for (native)
http://hg.nginx.org/njs/file/default/src/njs_symbol.c#l174
Suggestion for
|
BN.prototype[Symbol.for('nodejs.util.inspect.custom')] = inspect; |
Wrap in try/catch block and revert to BN.prototype.inspect = inspect; on error.