(ctx, proxy, recurseTimes)
| 1088 | } |
| 1089 | |
| 1090 | function formatProxy(ctx, proxy, recurseTimes) { |
| 1091 | if (recurseTimes > ctx.depth && ctx.depth !== null) { |
| 1092 | return ctx.stylize('Proxy [Array]', 'special'); |
| 1093 | } |
| 1094 | recurseTimes += 1; |
| 1095 | ctx.indentationLvl += 2; |
| 1096 | const res = [ |
| 1097 | formatValue(ctx, proxy[0], recurseTimes), |
| 1098 | formatValue(ctx, proxy[1], recurseTimes), |
| 1099 | ]; |
| 1100 | ctx.indentationLvl -= 2; |
| 1101 | return reduceToSingleString( |
| 1102 | ctx, res, '', ['Proxy [', ']'], kArrayExtrasType, recurseTimes); |
| 1103 | } |
| 1104 | |
| 1105 | // Note: using `formatValue` directly requires the indentation level to be |
| 1106 | // corrected by setting `ctx.indentationLvL += diff` and then to decrease the |
no test coverage detected
searching dependent graphs…