node/deps/v8/test/mjsunit/regress/regress-crbug-610228.js
Michaël Zasso 4453c0c250
deps: upgrade to V8 5.0.71.52
Pick up the latest set of patch level updates from the V8 5.0 branch.
https://github.com/v8/v8/compare/5.0.71.47...5.0.71.52

Fixes: https://github.com/nodejs/node/issues/6158
PR-URL: https://github.com/nodejs/node/pull/6928
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2016-05-25 10:29:25 +02:00

12 lines
390 B
JavaScript

// 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());