1// Copyright 2015 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// Flags: --allow-natives-syntax --expose-gc 6 7var dp = Object.defineProperty; 8function getter() { return 111; } 9function setter(x) { print(222); } 10obj1 = {}; 11dp(obj1, "golf", { get: getter, configurable: true }); 12dp(obj1, "golf", { set: setter, configurable: true }); 13gc(); 14obj2 = {}; 15dp(obj2, "golf", { get: getter, configurable: true }); 16dp(obj2, "golf", { set: setter, configurable: true }); 17assertTrue(%HaveSameMap(obj1, obj2)); 18