2020-07-13 10:39:42 +02:00
|
|
|
// Copyright 2020 the V8 project authors. All rights reserved.
|
2014-03-31 14:38:28 +02:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
|
2020-07-13 10:39:42 +02:00
|
|
|
Object.prototype[1] = 1;
|
|
|
|
function foo(baz) {
|
|
|
|
return 1 in arguments;
|
|
|
|
}
|
|
|
|
assertTrue(foo(0));
|
2019-08-16 11:32:46 +02:00
|
|
|
%PrepareFunctionForOptimization(foo);
|
2020-07-13 10:39:42 +02:00
|
|
|
assertTrue(foo(0));
|
2014-03-31 14:38:28 +02:00
|
|
|
%OptimizeFunctionOnNextCall(foo);
|
2020-07-13 10:39:42 +02:00
|
|
|
assertTrue(foo(0));
|