blob: 84b98e3beb214b6d8490810b8d78c0e474af0605 [file] [log] [blame]
This test makes sure we don't hang when setting cyclic prototype values: http://bugs.webkit.org/show_bug.cgi?id=6985
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS o1.__proto__ = o3; threw exception TypeError: cyclic __proto__ value.
PASS Object.setPrototypeOf(o1, o3) threw exception TypeError: cyclic __proto__ value.
PASS globalException.constructor is TypeError
PASS globalException.constructor is TypeError
PASS ({}).hasOwnProperty.call(o1, '__proto__') is false
PASS ({}).hasOwnProperty.call(o1, '__proto__') is true
PASS Object.getPrototypeOf(o1) is null
PASS Object.setPrototypeOf(o1, o3) threw exception TypeError: cyclic __proto__ value.
PASS successfullyParsed is true
TEST COMPLETE