(ctx, value, recurseTimes, keys)
| 927 | } |
| 928 | |
| 929 | function formatSet(ctx, value, recurseTimes, keys) |
| 930 | { |
| 931 | const output = new Array(value.size + keys.length + (ctx.showHidden ? 1 : 0)); |
| 932 | let i = 0; |
| 933 | for (const v of value) |
| 934 | output[i++] = formatValue(ctx, v, recurseTimes); |
| 935 | // With `showHidden`, `length` will display as a hidden property for |
| 936 | // arrays. For consistency's sake, do the same for `size`, even though this |
| 937 | // property isn't selected by Object.getOwnPropertyNames(). |
| 938 | if (ctx.showHidden) |
| 939 | output[i++] = `[size]: ${ctx.stylize(`${value.size}`, 'number')}`; |
| 940 | for (let n = 0; n < keys.length; n++) |
| 941 | { |
| 942 | output[i++] = formatProperty(ctx, value, recurseTimes, keys[n], 0); |
| 943 | } |
| 944 | return output; |
| 945 | } |
| 946 | |
| 947 | function formatMap(ctx, value, recurseTimes, keys) |
| 948 | { |
nothing calls this directly
no test coverage detected