OLD | NEW |
1 Test what happens when you set the window's prototype to various values. | 1 Test what happens when you set the window's prototype to various values. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS __proto__ = window; __proto threw exception TypeError: Cyclic __proto__ val
ue. | 6 PASS __proto__ = window; __proto__ threw exception TypeError: Immutable prototyp
e object '#<Window>' cannot have their prototype set. |
7 PASS __proto__ = chainPointingBackToWindow; __proto__ threw exception TypeError:
Cyclic __proto__ value. | 7 PASS __proto__ = chainPointingBackToWindow; __proto__ threw exception TypeError:
Immutable prototype object '#<Window>' cannot have their prototype set. |
8 PASS __proto__ = 1; __proto__ is originalWindowPrototype | 8 PASS __proto__ = 1; __proto__ is originalWindowPrototype |
9 PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype | 9 PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype |
10 PASS __proto__ = anotherObject; __proto__ is anotherObject | 10 PASS __proto__ = anotherObject; __proto__ threw exception TypeError: Immutable p
rototype object '#<Window>' cannot have their prototype set. |
11 PASS anotherObject.__proto__ = window; __proto__ threw exception TypeError: Cycl
ic __proto__ value. | 11 PASS anotherObject.__proto__ = window; __proto__ is originalWindowPrototype |
12 PASS __proto__ = 1; __proto__ is anotherObject | 12 PASS __proto__ = 1; __proto__ is originalWindowPrototype |
13 PASS __proto__ = 'a string'; __proto__ is anotherObject | 13 PASS __proto__ = 'a string'; __proto__ is originalWindowPrototype |
14 PASS __proto__ = anotherObject; __proto__ is anotherObject | 14 PASS __proto__ = anotherObject; __proto__ threw exception TypeError: Immutable p
rototype object '#<Window>' cannot have their prototype set. |
15 PASS __proto__ = originalWindowPrototype; __proto__ is originalWindowPrototype | 15 PASS __proto__ = originalWindowPrototype; __proto__ is originalWindowPrototype |
16 PASS anotherObject.__proto__ = window; anotherObject.__proto__ is window | 16 PASS anotherObject.__proto__ = window; anotherObject.__proto__ is window |
17 PASS __proto__ = null; window.__proto__ is undefined | 17 PASS __proto__ = null; __proto__ threw exception TypeError: Immutable prototype
object '#<Window>' cannot have their prototype set. |
| 18 PASS location.__proto__.__proto__ = location threw exception TypeError: Cyclic _
_proto__ value. |
18 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
19 | 20 |
20 TEST COMPLETE | 21 TEST COMPLETE |
21 | 22 |
OLD | NEW |