2017-12-05 16:41:55 +01:00
|
|
|
// Copyright 2017 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.
|
|
|
|
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
|
|
|
|
const o = {};
|
|
|
|
|
2019-08-16 11:32:46 +02:00
|
|
|
function foo() {
|
|
|
|
return o[4294967295];
|
|
|
|
};
|
|
|
|
%PrepareFunctionForOptimization(foo);
|
2017-12-05 16:41:55 +01:00
|
|
|
assertEquals(undefined, foo());
|
|
|
|
assertEquals(undefined, foo());
|
|
|
|
%OptimizeFunctionOnNextCall(foo);
|
|
|
|
assertEquals(undefined, foo());
|