Repository navigation
Commit 04fc7e0
committed
test(javascript): let the runtime decide how deep the corpus may nest
acorn records `~Not enough stack space` for its deeply nested case, and the
comparison allowed for the two parsers reaching that depth a few frames apart.
It did not allow for a runtime reaching it on neither side: under Bun both
parse the case, so the recorded expectation goes unmet and the verdicts differ
from acorn's on V8.
Stack depth is the runtime's answer rather than the parser's, so a verdict or
a recorded expectation naming it is left alone on either side.1 parent 74f50d7 commit 04fc7e0
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2570 | 2570 | | |
2571 | 2571 | | |
2572 | 2572 | | |
2573 | | - | |
2574 | | - | |
2575 | | - | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
2576 | 2584 | | |
2577 | 2585 | | |
2578 | 2586 | | |
| |||
2714 | 2722 | | |
2715 | 2723 | | |
2716 | 2724 | | |
2717 | | - | |
2718 | | - | |
2719 | 2725 | | |
2720 | | - | |
| 2726 | + | |
| 2727 | + | |
2721 | 2728 | | |
2722 | 2729 | | |
2723 | 2730 | | |
| |||
2752 | 2759 | | |
2753 | 2760 | | |
2754 | 2761 | | |
| 2762 | + | |
2755 | 2763 | | |
2756 | 2764 | | |
2757 | 2765 | | |
| |||
0 commit comments