-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ReferenceError] complete solution #488
Conversation
I planned to do some tests. But I don't know how to assert the error output from the script:
Also several tests currently fail, because they were written to expect wrong thing, for example: scenario = r#"
{
let bar = "bar";
}
bar == undefined;
"#;
assert_eq!(&exec(scenario), "true"); This is incorrect assertion. |
This might be something to look at, since depending on which function you use to execute the code, this will happen. If we use
For these cases, just fix the test or remove it, since it's not spec compliant. |
Codecov Report
@@ Coverage Diff @@
## master #488 +/- ##
==========================================
+ Coverage 67.62% 67.64% +0.01%
==========================================
Files 160 162 +2
Lines 9836 9871 +35
==========================================
+ Hits 6652 6677 +25
- Misses 3184 3194 +10
Continue to review full report at Codecov.
|
Try/Catch is working. The issue was in something else. I thus managed to unignore and verify 4 additional test cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks perfect to me :)
#463