// 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.varindexZeroCallCount=0;varindexOneCallCount=0;varlengthCallCount=0;varacceptList={get0(){indexZeroCallCount++;return'foo';},get1(){indexOneCallCount++;return'bar';},getlength(){lengthCallCount++;return1;}};Object.observe({},function(){},acceptList);assertEquals(1,lengthCallCount);assertEquals(1,indexZeroCallCount);assertEquals(0,indexOneCallCount);