aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/compartments.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2019-06-02 07:12:44 +0200
committerest31 <MTest31@outlook.com>2019-06-03 04:18:12 +0200
commite64de8d90acba327d4276f5b872d2b6eaa1bde9c (patch)
tree6de0b941b63273736dcf31e6aa8ed60e5b07cbb7 /components/script/compartments.rs
parent8b6ed3d1823876fa7e3c5ff6b1a9036aa22a72f4 (diff)
downloadservo-e64de8d90acba327d4276f5b872d2b6eaa1bde9c.tar.gz
servo-e64de8d90acba327d4276f5b872d2b6eaa1bde9c.zip
Remove unused code from a bunch of crates
Diffstat (limited to 'components/script/compartments.rs')
-rw-r--r--components/script/compartments.rs4
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)
+ }
}