mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 17:05:57 +00:00

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>
12 lines
390 B
JavaScript
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());
|