(ctx, value, recurseTimes, keys)
| 945 | } |
| 946 | |
| 947 | function formatMap(ctx, value, recurseTimes, keys) |
| 948 | { |
| 949 | const output = new Array(value.size + keys.length + (ctx.showHidden ? 1 : 0)); |
| 950 | let i = 0; |
| 951 | for (const [k, v] of value) |
| 952 | output[i++] = `${formatValue(ctx, k, recurseTimes)} => ` |
| 953 | + formatValue(ctx, v, recurseTimes); |
| 954 | // See comment in formatSet |
| 955 | if (ctx.showHidden) |
| 956 | output[i++] = `[size]: ${ctx.stylize(`${value.size}`, 'number')}`; |
| 957 | for (let n = 0; n < keys.length; n++) |
| 958 | { |
| 959 | output[i++] = formatProperty(ctx, value, recurseTimes, keys[n], 0); |
| 960 | } |
| 961 | return output; |
| 962 | } |
| 963 | |
| 964 | function formatPromise(ctx, value, recurseTimes, keys) |
| 965 | { |
nothing calls this directly
no test coverage detected