2016-09-29 21:19:54 +02:00
|
|
|
// 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
|
|
|
|
|
2016-12-23 16:30:57 +01:00
|
|
|
var v = {p:0};
|
|
|
|
// Turn the object into dictionary mode.
|
|
|
|
v.__defineGetter__("p", function() { return 13; });
|
2016-09-29 21:19:54 +02:00
|
|
|
|
2016-12-23 16:30:57 +01:00
|
|
|
function f() {
|
|
|
|
var boom = (v.foo = v);
|
|
|
|
assertEquals(v, boom.foo);
|
|
|
|
}
|
2016-09-29 21:19:54 +02:00
|
|
|
|
2016-12-23 16:30:57 +01:00
|
|
|
f();
|
|
|
|
f();
|
|
|
|
f();
|