3e9a7aff9d
BUG=v8:6325 Change-Id: I5a638c47b33d6e75d31f020c499ffd084348fea4 Reviewed-on: https://chromium-review.googlesource.com/489505 Commit-Queue: Wiktor Garbacz <wiktorg@google.com> Reviewed-by: Marja Hölttä <marja@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Reviewed-by: Daniel Clifford <danno@chromium.org> Cr-Commit-Position: refs/heads/master@{#45010}
11 lines
340 B
JavaScript
11 lines
340 B
JavaScript
// Copyright 2015 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 a = [0,1,2,,,,7];
|
|
var proto = {}
|
|
a.__proto__ = proto;
|
|
var visits = 0;
|
|
Array.prototype.forEach.call(a, (v,i,o) => { ++visits; proto[4] = 4; });
|
|
assertEquals(5, visits);
|