241c8fa48f
Bug: chromium:1127405, v8:7790 Change-Id: Ibba029725b46c691b7848b0a092f0159259651c6 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2410381 Reviewed-by: Santiago Aboy Solanes <solanes@chromium.org> Commit-Queue: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#69887}
19 lines
464 B
JavaScript
19 lines
464 B
JavaScript
// Copyright 2020 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
|
|
// Flags: --no-analyze-environment-liveness --no-use-ic --assert-types
|
|
|
|
const symbol = Symbol();
|
|
|
|
function foo(x) {
|
|
try { x[symbol] = 42 } catch (e) {}
|
|
new Number();
|
|
}
|
|
|
|
%PrepareFunctionForOptimization(foo);
|
|
foo({});
|
|
%OptimizeFunctionOnNextCall(foo);
|
|
foo({});
|