Closed Shilpi3 closed 7 years ago
script 557 : ({ a = 0 }); earlyErrors : false
({ a = 0 });
Expected: No Exception Actual: Exception ` ../shift-parser-js/dist/parser.js:1069 throw this.firstExprError; ^
Error: [1:4]: Illegal property initializer`
This is indeed supposed to be an early error, but our AST format can't represent that program. Closing as WONTFIX.
script 557 :
({ a = 0 });
earlyErrors : falseExpected: No Exception Actual: Exception ` ../shift-parser-js/dist/parser.js:1069 throw this.firstExprError; ^
Error: [1:4]: Illegal property initializer`