(depth, opts)
| 370 | } |
| 371 | |
| 372 | [inspect](depth, opts) { |
| 373 | if (typeof depth === 'number' && depth < 0) |
| 374 | return this; |
| 375 | const ctor = getConstructorOf(this); |
| 376 | const obj = { __proto__: { |
| 377 | constructor: ctor === null ? TextEncoder : ctor, |
| 378 | } }; |
| 379 | obj.encoding = this.#encoding; |
| 380 | // Lazy to avoid circular dependency |
| 381 | lazyInspect ??= require('internal/util/inspect').inspect; |
| 382 | return lazyInspect(obj, opts); |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | ObjectDefineProperties( |
nothing calls this directly
no test coverage detected