(...args)
| 411 | function makeNodeErrorForHideStackFrame(Base, clazz) { |
| 412 | class HideStackFramesError extends Base { |
| 413 | constructor(...args) { |
| 414 | if (isErrorStackTraceLimitWritable()) { |
| 415 | const limit = Error.stackTraceLimit; |
| 416 | Error.stackTraceLimit = 0; |
| 417 | super(...args); |
| 418 | Error.stackTraceLimit = limit; |
| 419 | } else { |
| 420 | super(...args); |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | // This is a workaround for wpt tests that expect that the error |
| 425 | // constructor has a `name` property of the base class. |
nothing calls this directly
no test coverage detected