1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 function newArrayWithGetter() {
7 Object.defineProperty(arr, '1', {
8 get: function() { delete this[1]; return undefined; },
14 var a = newArrayWithGetter();
18 // Sparse case should hit the same code as above due to presence of the getter.
19 a = newArrayWithGetter();
24 a = newArrayWithGetter();
28 a = newArrayWithGetter();