f1cc6e646f
Between the miss and patching, we run user code. That may already patch the same code. IC refactoring broke this (again), so including a regression test this time around. BUG=chromium:601392 LOG=n Review URL: https://codereview.chromium.org/1925583002 Cr-Commit-Position: refs/heads/master@{#35811}
11 lines
263 B
JavaScript
11 lines
263 B
JavaScript
// Copyright 2016 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 i = 0
|
|
function valueOf() {
|
|
while (true) return i++ < 4 ? 1 + this : 2
|
|
}
|
|
|
|
1 + ({valueOf})
|