summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/ch08/8.6/S8.6_A2_T1.js
blob: 4e13df667871075fe557cacb43f27fede982a971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * Do not crash with postincrement custom property
 *
 * @path ch08/8.6/S8.6_A2_T1.js
 * @description Try to implement postincrement for custom property
 */

var __map={foo:"bar"};

//////////////////////////////////////////////////////////////////////////////
//CHECK#1

__map.foo++;
if (!isNaN(__map.foo)) {
  $ERROR('#1: var __map={foo:"bar"}; __map.foo++; __map.foo === Not-a-Number. Actual: ' + (__map.foo));
}

//
//////////////////////////////////////////////////////////////////////////////