summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/postfix-increment/line-terminator-carriage-return.js
blob: 2ff9e7a5ee713078490785c96d0fd8a483f580b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |reftest| error:SyntaxError
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: Line Terminator between LeftHandSideExpression and "++" is not allowed
es5id: 11.3.1_A1.1_T2
esid: postfix-increment-operator
description: Carriage Return
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

x
++;
// The preceding line contains an unprintable CARRIAGE RETURN character (U+000D)