diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/tests/test262/language/types/object/S8.6_A2_T2.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/types/object/S8.6_A2_T2.js b/js/src/tests/test262/language/types/object/S8.6_A2_T2.js new file mode 100644 index 0000000000..74ccd45349 --- /dev/null +++ b/js/src/tests/test262/language/types/object/S8.6_A2_T2.js @@ -0,0 +1,26 @@ +// 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)) { + throw new Test262Error('#2: var __map={}; "foo" in __map'); +} +// +////////////////////////////////////////////////////////////////////////////// + +reportCompare(0, 0); |