Closed Shilpi3 closed 7 years ago
input script 563: 0++ input script 564: 0-- input script 565: ++0 input script 566: --0
0++
0--
++0
--0
earlyErrors: false Expected: No Exception Actual: Exception ` ../shift-parser-js/dist/parser.js:1533 throw this.createErrorWithLocation(startLocation, _errors.ErrorMessages.INVALID_UPDATE_OPERAND); ^
Error: [1:1]: Increment/decrement target must be an identifier or member expression `
This is indeed supposed to be an early error, but our AST format can't represent that program. Closing as WONTFIX.
input script 563:
0++
input script 564:0--
input script 565:++0
input script 566:--0
earlyErrors: false Expected: No Exception Actual: Exception ` ../shift-parser-js/dist/parser.js:1533 throw this.createErrorWithLocation(startLocation, _errors.ErrorMessages.INVALID_UPDATE_OPERAND); ^
Error: [1:1]: Increment/decrement target must be an identifier or member expression `