This commit is contained in:
Shinichi Morimoto 2020-03-28 20:17:16 +09:00
parent 7d66871a9f
commit 80b2a87be7
3 changed files with 13 additions and 3 deletions

View file

@ -50,7 +50,7 @@ pub enum Condition {
}
impl Condition {
fn is_satisfied(&self, cx: JSContext, obj: HandleObject, global: HandleObject) -> bool {
pub fn is_satisfied(&self, cx: JSContext, obj: HandleObject, global: HandleObject) -> bool {
match *self {
Condition::Pref(name) => prefs::pref_map().get(name).as_bool().unwrap_or(false),
Condition::Func(f) => f(cx, obj),