Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / cyclic-proto.js
blob1ce39d4b7bf5b6b4f70e1911a708dfbca31eb716
1 description(
2 '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>.'
3 );
5 x = {};
6 originalProto = x.__proto__;
7 shouldThrow('x.__proto__ = x;');
8 shouldBe("x.__proto__", "originalProto");