(target, code, ...args)
| 218 | } |
| 219 | |
| 220 | function deprecateInstantiation(target, code, ...args) { |
| 221 | assert(typeof code === 'string'); |
| 222 | |
| 223 | getDeprecationWarningEmitter(code, `Instantiating ${target.name} without the 'new' keyword has been deprecated.`, target)(); |
| 224 | |
| 225 | return ReflectConstruct(target, args); |
| 226 | } |
| 227 | |
| 228 | function decorateErrorStack(err) { |
| 229 | if (!(isError(err) && err.stack) || err[decorated_private_symbol]) |
no test coverage detected
searching dependent graphs…