tests/auto/qml/ecmascripttests/test262/test/language/expressions/postfix-increment/S11.3.1_A1.1_T4.js
raw| 1 | // Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | info: Line Terminator between LeftHandSideExpression and "++" is not allowed |
| 6 | es5id: 11.3.1_A1.1_T4 |
| 7 | description: Checking Paragraph separator |
| 8 | ---*/ |
| 9 | |
| 10 | assert.throws(SyntaxError, function() { |
| 11 | eval("var x = 1; x\u2029++"); |
| 12 | }); |