Skip to content

DEP0079: Custom inspection function on Objects via .inspect() #184

@fanatid

Description

@fanatid

bn.js/lib/bn.js

Lines 359 to 361 in 98ac84e

BN.prototype.inspect = function inspect () {
return (this.red ? '<BN-R: ' : '<BN: ') + this.toString(16) + '>';
};

Now this is deprecated: https://nodejs.org/api/deprecations.html#deprecations_dep0079_custom_inspection_function_on_objects_via_inspect

Any thought how we can resolve it? Require util is not a option, right?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions