v8/test/mjsunit/es6/regress/regress-411237.js
2015-03-20 11:03:14 +00:00

16 lines
339 B
JavaScript

// Copyright 2014 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
try {
%OptimizeFunctionOnNextCall(print);
} catch(e) { }
try {
function* f() {
}
%OptimizeFunctionOnNextCall(f);
} catch(e) { }