feat(script): add {DissimilarOriginWindow, PaintWorkletGlobalScope, TestWorkletGlobalScope}::origin

This commit is contained in:
yvt 2021-07-11 23:20:39 +09:00
parent bfa2026220
commit 5959c2ef9b
4 changed files with 19 additions and 2 deletions

View file

@ -84,6 +84,10 @@ impl WorkletGlobalScope {
}
}
pub fn origin(&self) -> &MutableOrigin {
self.globalscope.origin()
}
/// Get the JS context.
pub fn get_cx(&self) -> JSContext {
self.globalscope.get_cx()