ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

chakra require () after catch

Open YiWen-y opened this issue 3 years ago • 0 comments

Version
chakra-1.11.24.0
Test case
var foo = function () {
    try {
        print("1")
    } catch {
    }
};
foo();
Execution steps
/root/.jsvu/ch Testcase.js
Output
SyntaxError: Expected '(' at code (javascriptTestcase_eut5pcps.js:4:12)
Expected behavior
1
Description

When executing this test case, other engines can execute normally and output the expected result 1, but chakra throws a syntax error in line 4. It seems like chakra requires () after catch, or it won't work properly.

YiWen-y avatar Mar 30 '22 11:03 YiWen-y