Implement the incumbent global.

Fixes #10963.
This commit is contained in:
Ms2ger 2017-01-05 16:22:44 +01:00
parent 933b74781b
commit 51df04d93e
7 changed files with 152 additions and 5 deletions

View file

@ -777,6 +777,9 @@ impl TestBindingMethods for TestBinding {
fn EntryGlobal(&self) -> Root<GlobalScope> {
GlobalScope::entry()
}
fn IncumbentGlobal(&self) -> Root<GlobalScope> {
GlobalScope::incumbent().unwrap()
}
}
impl TestBinding {