blob: 332960b360af3d3169dcb385ee1dae7449d45bdf [file] [log] [blame]
Kaido Kertf309f9a2021-04-30 12:09:15 -07001// Copyright 2019 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --allow-natives-syntax
6
7(function() {
8 function foo() {
9 return { [bla]() {} };
10 }
11 %PrepareFunctionForOptimization(foo);
12 %OptimizeFunctionOnNextCall(foo);
13 try { foo() } catch(_) {};
14})();