global-object-implicit-this-value.any.html
Details
- Test
/webidl/ecmascript-binding/global-object-implicit-this-value.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | Global object's getter throws when called on incompatible object assert_throws_js: function "() => { Object.create(globalThis).self; }" did not throw |
| FAIL | Global object's setter throws when called on incompatible object assert_throws_js: function "() => { Object.create(globalThis).origin = origin; }" did not throw |
| FAIL | Global object's operation throws when called on incompatible object assert_throws_js: function "() => { Object.create(globalThis).setInterval(() => {}, 100); }" did not throw |
| FAIL | Global object's getter throws when called on incompatible object (document.all) assert_throws_js: function "() => { Object.getOwnPropertyDescriptor(window, "document").get.call(document.all); }" did not throw |
| PASS | Global object's setter throws when called on incompatible object (document.all) |
| FAIL | Global object's operation throws when called on incompatible object (document.all) assert_throws_js: function "() => { focus.call(document.all); }" threw object "ReferenceError: focus is not defined" ("ReferenceError") expected instance of function "function TypeError() { [native co… |
| FAIL | Global object's getter works when called on null / undefined Cannot read properties of undefined (reading 'call') |
| FAIL | Global object's setter works when called on null / undefined Cannot read properties of undefined (reading 'call') |
| PASS | Global object's operation works when called on null / undefined |