Improve infer and transforms

This commit is contained in:
UditDey
2026-09-16 07:32:04 +00:00
parent 5d687e308e
commit 1a36873812
8 changed files with 303 additions and 78 deletions
+2 -4
View File
@@ -42,12 +42,10 @@ fn get_exception(ctx: *mut ffi::JSContext) -> String {
let err = ffi::JS_GetException(ctx);
let text = ffi::JS_ToCStringLen2(ctx, std::ptr::null_mut(), err, false);
let message = if text.is_null() {
if text.is_null() {
"quickjs raised an exception it could not describe".to_string()
} else {
CStr::from_ptr(text).to_string_lossy().into_owned()
};
message
}
}
}