// 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.vara=[];varendIndex=0xffff;a[endIndex]=3;Object.defineProperty(a,0,{get:function(){this[1]=2;return1;}});assertEquals('123',a.join(''));deletea[1];// reset the arrayassertEquals('1,2,',a.join().slice(0,4));