more debug output

This commit is contained in:
Joeri Exelmans 2025-11-05 10:06:34 +01:00
parent 849aed2d4f
commit 61ed456c89
3 changed files with 5 additions and 0 deletions

View file

@ -352,6 +352,9 @@ function __wbg_get_imports() {
const ret = arg0.length;
return ret;
};
imports.wbg.__wbg_log_8cec76766b8c0e33 = function(arg0) {
console.log(arg0);
};
imports.wbg.__wbg_log_eeaf399d6effdabf = function(arg0, arg1) {
console.log(arg0, arg1);
};

Binary file not shown.

View file

@ -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")
}