From kde-commits Wed Oct 24 00:14:51 2007 From: Maks Orlovich Date: Wed, 24 Oct 2007 00:14:51 +0000 To: kde-commits Subject: tests/khtmltests/regression/tests/js Message-Id: <1193184891.847703.410.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=119318610313115 SVN commit 728710 by orlovich: A test for cyclic prototype chains. M +1 -0 prototype_proto.js --- trunk/tests/khtmltests/regression/tests/js/prototype_proto.js #728709:728710 @@ -7,3 +7,4 @@ shouldBe("Date.prototype.__proto__","Object.prototype"); shouldBe("RegExp.prototype.__proto__","Object.prototype"); shouldBe("Error.prototype.__proto__","Object.prototype"); +shouldBe("o = {}; v = 'FAIL'; try { o.__proto__ = o; } catch (e) { v = 'PA' }; o.foo = 'SS'; v = v + o.foo;","'PASS'"); \ No newline at end of file