()
| 313 | } |
| 314 | |
| 315 | toString() { |
| 316 | let s = this.symbol(); |
| 317 | if (this.isTransition()) return s + this.name; |
| 318 | if (this.isFastToSlow()) return s + this.reason; |
| 319 | if (this.isCopyAsPrototype()) return s + 'Copy as Prototype'; |
| 320 | if (this.isOptimizeAsPrototype()) { |
| 321 | return s + 'Optimize as Prototype'; |
| 322 | } |
| 323 | if (this.isReplaceDescriptors() && this.name) { |
| 324 | return this.type + ' ' + this.symbol() + this.name; |
| 325 | } |
| 326 | return this.type + ' ' + (this.reason ? this.reason : '') + ' ' + |
| 327 | (this.name ? this.name : '') |
| 328 | } |
| 329 | } |
no test coverage detected