question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An issue of the If Statement

See original GitHub issue

Description

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

eaaf7ac

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:closed
  • Created 4 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rhuanjlcommented, Dec 21, 2020

Hello, I would like to try fixing this issue. Is anyone working on it at the moment?

It seems to be free, give it a go.

0reactions
rhuanjlcommented, Jan 16, 2021

Fixed via #6551 merged as #6580

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found