Commit 4eed9b9
committed
Fix console error normalization for accurate comparison
- Normalize JavaScript error messages to match database expected outputs
- Handle temporal dead zone errors (Cannot access before initialization) as ReferenceError
- Handle ReferenceError, TypeError, and SyntaxError consistently
- Ensure correct scoring when errors are the expected output
- Fix console logic to properly validate error-based questions1 parent cdfe52e commit 4eed9b9
1 file changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
497 | 514 | | |
498 | | - | |
499 | | - | |
| 515 | + | |
| 516 | + | |
500 | 517 | | |
501 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
502 | 531 | | |
503 | 532 | | |
504 | 533 | | |
| |||
0 commit comments