diff --git a/lib/src/fnc/script/main.rs b/lib/src/fnc/script/main.rs index 9bfbd98a..adaf5928 100644 --- a/lib/src/fnc/script/main.rs +++ b/lib/src/fnc/script/main.rs @@ -40,11 +40,11 @@ pub async fn run( // Register the fetch function as a global object global.init_def::()?; // Register the Duration type as a global class - global.init_def::().unwrap(); + global.init_def::()?; // Register the Record type as a global class - global.init_def::().unwrap(); + global.init_def::()?; // Register the Uuid type as a global class - global.init_def::().unwrap(); + global.init_def::()?; // Attempt to compile the script let res = ctx.compile("script", src)?; // Attempt to fetch the main export