summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/postfix-increment/line-terminator-line-separator.js
blob: e9e53b0c2d512ae22178c681e6f34c8056553950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |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_T3
esid: postfix-increment-operator
description: Checking Line Separator
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

x++;
// The preceding line contains an unprintable LINE SEPARATOR character (U+2028)