Commit 92b58db
committed
test(native): cover arrow-function path and assert C.bar metrics (#1347)
- Add prototype_arrow_function_method_emits_definition test for the
arrow_function RHS branch of emit_js_prototype_method, which was
fixed but had no test coverage
- Assert complexity.is_some() and cfg.is_some() for C.bar in
prototype_object_literal_emits_definitions, matching the assertions
already added for C.foo1 parent e720083 commit 92b58db
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2454 | 2454 | | |
2455 | 2455 | | |
2456 | 2456 | | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
2457 | 2471 | | |
2458 | 2472 | | |
2459 | 2473 | | |
| |||
2483 | 2497 | | |
2484 | 2498 | | |
2485 | 2499 | | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
2486 | 2504 | | |
2487 | 2505 | | |
2488 | 2506 | | |
| |||
0 commit comments