Kaido Kert | f309f9a | 2021-04-30 12:09:15 -0700 | [diff] [blame] | 1 | // 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 | })(); |