2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: Correct interpretation of all punctuators
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 7.7_A1
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Using all punctuators
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2015-05-08 17:27:52 +02:00
|
|
|
this.nan = NaN;
|
|
|
|
|
2011-09-07 08:35:18 +02:00
|
|
|
//CHECK#1
|
|
|
|
({});[];
|
2015-05-08 17:27:52 +02:00
|
|
|
this.nan;
|
2011-09-07 08:35:18 +02:00
|
|
|
1 < 2 > 3 <= 4 >= 5 == 6 != 7 === 8 !== 9;
|
|
|
|
1 + 2 - 3 * 4 % 5 / 6 << 7 >> 8 >>> 9;
|
2015-05-08 17:27:52 +02:00
|
|
|
this.nan++; ++this.nan; this.nan--; --this.nan;
|
2011-09-07 08:35:18 +02:00
|
|
|
1 & 2 | 3 ^ 4 && !5 || ~6;
|
|
|
|
1 ? 2 : 3;
|
2015-05-08 17:27:52 +02:00
|
|
|
this.nan = 1; this.nan += 2; this.nan -= 3; this.nan *= 4; this.nan /= 5;
|
|
|
|
this.nan %= 6; this.nan <<= 7; this.nan >>= 8; this.nan >>>= 9;
|
|
|
|
this.nan &= 1; this.nan |= 2; this.nan ^= 3;
|