diff --git a/src/fn_native.rs b/src/fn_native.rs index 6372c3c7..7c69a768 100644 --- a/src/fn_native.rs +++ b/src/fn_native.rs @@ -120,6 +120,7 @@ impl<'e, 'n, 's, 'a, 'm, 'pm> NativeCallContext<'e, 'n, 's, 'a, 'm, 'pm> { ) -> Self { Self { engine, + fn_name, source: source.clone(), mods: Some(imports), lib: lib.as_ref(),