blob: 1bb8baf3b18b0d32408d305e7515634e1c318ef5 [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");
var successfullyParsed = true;