blob: 28984e4efa2112374846aa7a5e98dbe2f20fa2c5 [file] [log] [blame]
// 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 postincrement custom property
es5id: 8.6_A2_T2
description: Try to implement postincrement for not declared custom property
---*/
var __map={};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
assert.sameValue(__map.foo++, NaN);
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
if (!("foo" in __map)) {
$ERROR('#2: var __map={}; "foo" in __map');
}
//
//////////////////////////////////////////////////////////////////////////////