(depth, options)
| 237 | } |
| 238 | |
| 239 | [customInspectSymbol](depth, options) { |
| 240 | validateThisInternalField(this, kWrap, 'Module'); |
| 241 | if (typeof depth === 'number' && depth < 0) |
| 242 | return this; |
| 243 | |
| 244 | const constructor = getConstructorOf(this) || Module; |
| 245 | const o = { __proto__: { constructor } }; |
| 246 | o.status = this.status; |
| 247 | o.identifier = this.identifier; |
| 248 | o.context = this.context; |
| 249 | |
| 250 | ObjectSetPrototypeOf(o, ObjectGetPrototypeOf(this)); |
| 251 | ObjectDefineProperty(o, SymbolToStringTag, { |
| 252 | __proto__: null, |
| 253 | value: constructor.name, |
| 254 | configurable: true, |
| 255 | }); |
| 256 | |
| 257 | // Lazy to avoid circular dependency |
| 258 | const { inspect } = require('internal/util/inspect'); |
| 259 | return inspect(o, { ...options, customInspect: false }); |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | const kNoError = Symbol('kNoError'); |
nothing calls this directly
no test coverage detected