more debug output
This commit is contained in:
parent
849aed2d4f
commit
61ed456c89
3 changed files with 5 additions and 0 deletions
|
|
@ -352,6 +352,9 @@ function __wbg_get_imports() {
|
||||||
const ret = arg0.length;
|
const ret = arg0.length;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_log_8cec76766b8c0e33 = function(arg0) {
|
||||||
|
console.log(arg0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_log_eeaf399d6effdabf = function(arg0, arg1) {
|
imports.wbg.__wbg_log_eeaf399d6effdabf = function(arg0, arg1) {
|
||||||
console.log(arg0, arg1);
|
console.log(arg0, arg1);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -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),
|
Expr::Bool(bool_expr) => BooleanSemantics::eval::<interpolation::Constant>(&bool_expr, &m),
|
||||||
_ => return JsValue::from_str("expected boolean expression (this should never happen)"),
|
_ => 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();
|
let mut result = Vec::<StateBuddyEvalResultEntry>::new();
|
||||||
match eval_result {
|
match eval_result {
|
||||||
Ok(r) => {
|
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());
|
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")
|
to_value(&StateBuddyEvalResult { entries: result }).expect("fuuuck")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue