Pass | Setting the prototype of a window to itself via setPrototypeOf | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { Object.setPrototypeOf(window, window); }", "Setting the prototype should throw")
at Test.<anonymous> ( /js/behaviours/SetPrototypeOf-window.html:9:3) |
|
Pass | Setting the prototype of a window to itself via __proto__ | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { window.__proto__ = window; }", "Setting the prototype should throw")
at Test.<anonymous> ( /js/behaviours/SetPrototypeOf-window.html:15:3) |
|
Pass | Setting the prototype of a window to something that has the window on its proto chain via setPrototypeOf | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { Object.setPrototypeOf(window, Object.create(window)); }", "Setting the prototype should throw")
at Test.<anonymous> ( /js/behaviours/SetPrototypeOf-window.html:21:3) |
|
Pass | Setting the prototype of a window to something that has the window on its proto chain via __proto__ | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { window.__proto__ = Object.create(window); }", "Setting the prototype should throw")
at Test.<anonymous> ( /js/behaviours/SetPrototypeOf-window.html:28:3) |
|