Index: test/mjsunit/regress/regress-shift-enumerable.js |
diff --git a/test/mjsunit/regress/regress-shift-enumerable.js b/test/mjsunit/regress/regress-shift-enumerable.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f3ee258bf654bedaff4cdd3d197f5ff49d99e0fd |
--- /dev/null |
+++ b/test/mjsunit/regress/regress-shift-enumerable.js |
@@ -0,0 +1,16 @@ |
+// Copyright 2014 the V8 project authors. All rights reserved. |
+// 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); |