js/src/tests/test262/ch11/11.1/11.1.6/S11.1.6_A3_T5.js

branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
equal deleted inserted replaced
-1:000000000000 0:63c0363e7e28
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 * "This" operator only evaluates Expression
6 *
7 * @path ch11/11.1/11.1.6/S11.1.6_A3_T5.js
8 * @description Using grouping operator in declaration of variables
9 */
10
11 //CHECK#1
12 (x) = 1;
13 if (x !== 1) {
14 $ERROR('#1: (x) = 1; x === 1. Actual: ' + (x));
15 }
16
17 //CHECK#2
18 var y = 1; (y)++; ++(y); (y)--; --(y);
19 if (y !== 1) {
20 $ERROR('#2: var y = 1; (y)++; ++(y); (y)--; --(y); y === 1. Actual: ' + (y));
21 }
22

mercurial