()
| 282 | function someMethod () { return this.code; } |
| 283 | |
| 284 | function makeNonError () { |
| 285 | return { |
| 286 | code: "ERESET", |
| 287 | name: "TypeError", |
| 288 | message: "This looks like an error, but it's not one", |
| 289 | stack: createFakeStack( |
| 290 | { fn: "foo", file: "foo.js", line: 15, col: 27 }, |
| 291 | { fn: "bar", file: "bar.js", line: 86, col: 12 } |
| 292 | ), |
| 293 | foo: "bar", |
| 294 | }; |
| 295 | } |
| 296 | |
| 297 | function newErrorWithNonErrorAndProps (nonError) { |
| 298 | return ono(nonError, { |
no test coverage detected
searching dependent graphs…