Files
Kmake/deps/v8/test/mjsunit/regress/regress-374812617.js

20 lines
411 B
JavaScript
Raw Normal View History

2026-05-26 23:36:42 -07:00
// Copyright 2024 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: --expose-gc --trace-gc-object-stats
var obj = {
a: 1,
b: 2,
q: 3
};
obj[44] = 44;
Object.defineProperty(obj, "c", {
get: () => 7,
enumerable: true
});
obj2 = JSON.parse(JSON.stringify(obj));
gc();
assertEquals(obj, obj2);