blob: ca077d5631668beb918102faf20c64f079b7bb6a [file] [log] [blame]
// Copyright 2016 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
function foo() { return JSON.stringify({a: 0.1}); }
assertEquals('{"a":0.1}', foo());
assertEquals('{"a":0.1}', foo());
%OptimizeFunctionOnNextCall(foo);
assertEquals('{"a":0.1}', foo());