Custom util inspectors for Set and Dictionary too

This commit is contained in:
Tony Garnock-Jones 2021-01-07 20:10:11 +01:00
parent 66cac324e0
commit 98e981dccf
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
// Patching to support node.js extensions.
import * as util from 'util';
import { Record, Bytes, Annotated } from './values';
import { Record, Bytes, Annotated, Set, Dictionary } from './values';
[Bytes, Annotated, Record].forEach((C) => {
[Bytes, Annotated, Record, Set, Dictionary].forEach((C) => {
C.prototype[util.inspect.custom] = function (_depth: any, _options: any) {
return this.asPreservesText();
};