diff options
Diffstat (limited to 'components/script/compartments.rs')
-rw-r--r-- | components/script/compartments.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/compartments.rs b/components/script/compartments.rs index d047f7fdbcb..552b7573d83 100644 --- a/components/script/compartments.rs +++ b/components/script/compartments.rs @@ -27,4 +27,8 @@ impl<'a> InCompartment<'a> { pub fn in_compartment(token: &AlreadyInCompartment) -> InCompartment { InCompartment::Already(token) } + + pub fn entered(token: &JSAutoRealm) -> InCompartment { + InCompartment::Entered(token) + } } |