From 049f472ac91b5fd21d32c62c1339a1f3c3436106 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 23 Jan 2021 10:34:38 +0800 Subject: [PATCH] Fix bug in internals. --- src/fn_native.rs | 1 + 1 file changed, 1 insertion(+) 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(),