Closed Shilpi3 closed 5 years ago
The script (async (...x = []) => {}); should throw syntax error as REST Formal parameters do not accept default values. However, the script is throwing an error for the wrong reason. Following is the output through the parser.
(async (...x = []) => {});
throw new Error('Not reached');
The test is a part of the test262 test suite.
Fixed by #418.
The script
(async (...x = []) => {});
should throw syntax error as REST Formal parameters do not accept default values. However, the script is throwing an error for the wrong reason. Following is the output through the parser.The test is a part of the test262 test suite.