mirror of https://github.com/tc39/test262.git
22 lines
625 B
JavaScript
22 lines
625 B
JavaScript
// 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;
|
|
if (!isNaN(__map.foo)) {
|
|
$ERROR('#1: var __map={foo:"bar"}; ++__map.foo; __map.foo === Not-a-Number. Actual: ' + (__map.foo));
|
|
}
|
|
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////
|