Implement the entry global.

Partial fix for #10963.
This commit is contained in:
Ms2ger 2016-12-29 13:39:12 +01:00
parent 839b7fe8ef
commit cb47a7e403
15 changed files with 156 additions and 0 deletions

View file

@ -773,6 +773,10 @@ impl TestBindingMethods for TestBinding {
}
fn Panic(&self) { panic!("explicit panic from script") }
fn EntryGlobal(&self) -> Root<GlobalScope> {
GlobalScope::entry()
}
}
impl TestBinding {