more debug output
This commit is contained in:
parent
849aed2d4f
commit
61ed456c89
3 changed files with 5 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ pub fn eval_boolean(s: &str, js_trace: JsValue) -> JsValue {
|
|||
Expr::Bool(bool_expr) => BooleanSemantics::eval::<interpolation::Constant>(&bool_expr, &m),
|
||||
_ => return JsValue::from_str("expected boolean expression (this should never happen)"),
|
||||
};
|
||||
console::log_1(&JsValue::from_str("evaluated property"));
|
||||
let mut result = Vec::<StateBuddyEvalResultEntry>::new();
|
||||
match eval_result {
|
||||
Ok(r) => {
|
||||
|
|
@ -105,6 +106,7 @@ pub fn eval_boolean(s: &str, js_trace: JsValue) -> JsValue {
|
|||
return JsValue::from_str(format!("failed to evaluate expression: {}", e).as_str());
|
||||
}
|
||||
}
|
||||
console::log_1(&JsValue::from_str("now converting to JS value again"));
|
||||
to_value(&StateBuddyEvalResult { entries: result }).expect("fuuuck")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue