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

/*---
info: Do not crash with pefixincrement custom property
es5id: 8.6_A3_T1
description: Try to implement pefixincrement for custom property
---*/

var __map={foo:'bar'};

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

++__map.foo;
assert.sameValue(__map.foo, NaN);
//
//////////////////////////////////////////////////////////////////////////////

reportCompare(0, 0);