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. 4 5 var a = []; 6 a[10000] = 1; 7 a.length = 0; 8 a[1] = 1; 9 a.length = 0; 10 assertEquals(undefined, a[1]); 11 12 var o = {}; 13 Object.freeze(o); 14 assertEquals(undefined, o[1]); 15