An issue of the If Statement
See original GitHub issueDescription
When running the testcase below, a SyntaxError exception should be thrown while chakra does not.
According to ES10, the Expression
in parentheses of IfStatement
should executed based on this step. And a Comma-terminated expression obviously is not belong to valid Expression
. This maybe an issue of Chakra.
Version
Testcase
var NISLFuzzingFunc = function(){
var f = 0;
if(f === 0,) {
print("run_here");
}
}
NISLFuzzingFunc();
Ecpected output
SyntaxError: Unexpected token ')'
Output
run_here
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
7.3 — Common if statement problems - Learn C++
This lesson is a continuation of lesson 7.2 -- If statements and blocks. In this lesson, we'll take a look at some common...
Read more >The if Statement and Practice Problems - Bowdoin
If the boolean expression is true, the specified statement is executed ; otherwise it is not. In either case, execution continues with the...
Read more >if / else errors - learn how to fix these - Codecademy
If you are getting an error about the else it is because you've told the interpreter that the ; was the end of...
Read more >Conditional branching: if, '?' - The Modern JavaScript Tutorial
The if(...) statement evaluates a condition in parentheses and, if the result is true , executes a block of code. For example:.
Read more >All 3 Excel IF Statements + how to AVOID ... - YouTube
IF Statements are essential for all Excel users to master. ... stuck with nesting and make mistakes that can cause performance issues, wh......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to be free, give it a go.
Fixed via #6551 merged as #6580