tests/auto/qml/ecmascripttests/test262/test/language/expressions/assignment/line-terminator.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 | description: > |
| 5 | White Space between LeftHandSideExpression and "=" or between "=" and |
| 6 | AssignmentExpression is allowed |
| 7 | es5id: 11.13.1_A1 |
| 8 | ---*/ |
| 9 | |
| 10 | var x; |
| 11 | |
| 12 | x |
| 13 | = |
| 14 | true; |
| 15 | |
| 16 | if (x !== true) { |
| 17 | $ERROR('#6: (x\\u000A=\\u000Atrue) === true'); |
| 18 | } |