2018-11-26 14:09:45 +00:00
|
|
|
// Copyright 2018 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.
|
|
|
|
|
|
|
|
// Previously, spreading in-object properties would always treat double fields
|
|
|
|
// as tagged, potentially dereferencing a Float64.
|
|
|
|
|
|
|
|
// Ensure that we don't fail an assert from --verify-heap when cloning a
|
2019-08-20 13:24:13 +00:00
|
|
|
// HeapNumber in the CloneObjectIC handler case.
|
2018-11-26 14:09:45 +00:00
|
|
|
var src, clone;
|
|
|
|
for (var i = 0; i < 40000; i++) {
|
|
|
|
src = { ...i, x: -9007199254740991 };
|
|
|
|
clone = { ...src };
|
|
|
|
}
|