Chromium Code Reviews| Index: test/mjsunit/regress/regress-enumerable-element.js |
| diff --git a/test/mjsunit/regress/regress-enumerable-element.js b/test/mjsunit/regress/regress-enumerable-element.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f3ee258bf654bedaff4cdd3d197f5ff49d99e0fd |
| --- /dev/null |
| +++ b/test/mjsunit/regress/regress-enumerable-element.js |
| @@ -0,0 +1,16 @@ |
| +// Copyright 2014 the V8 project authors. All rights reserved. |
|
Michael Starzinger
2014/10/24 17:04:08
suggestion: Maybe call this file "regress-shift-en
adamk
2014/10/24 18:03:44
Renamed
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +var arr = [1, 2]; |
| +Object.defineProperty(arr, 0xfffe, { |
| + value: 3, |
| + configurable: true, |
| + writable: true, |
| + enumerable: false |
| +}); |
| +arr[0xffff] = 4; |
| +arr.shift(); |
| +var desc = Object.getOwnPropertyDescriptor(arr, 0xfffe); |
| +assertEquals(4, desc.value); |
| +assertFalse(desc.enumerable); |