blob: 1ce39d4b7bf5b6b4f70e1911a708dfbca31eb716 [file] [log] [blame]
description(
'This test checks that setting a cyclic value for __proto__ throws an exception and does not alter __proto__. This was reported as <a href="http://bugs.webkit.org/show_bug.cgi?id=17927">bug 17927</a>.'
);
x = {};
originalProto = x.__proto__;
shouldThrow('x.__proto__ = x;');
shouldBe("x.__proto__", "originalProto");