blob: 37ebb1fd8794cbc41ab9b7b2c5e6754801f5ca9c [file] [log] [blame]
description(
"This test checks whether getters and setters work correctly with garbage collection."
);
var o = {};
o.__defineGetter__("x", function() { return 242; })
shouldBe('o.x', '242');
// Force a gc
var i = 0;
var s;
while (i < 5000) {
i = i+1.11;
s = s + " ";
}
shouldBe('o.x', '242')