Fix bug with calling scripted function.

This commit is contained in:
Stephen Chung
2020-10-16 21:16:06 +08:00
parent e62df6cbed
commit f995d09d8b
4 changed files with 46 additions and 17 deletions

View File

@@ -1652,9 +1652,7 @@ impl Engine {
ensure_no_data_race(name, args, false)?;
}
self.call_script_fn(
scope, &mut mods, &mut state, lib, this_ptr, name, fn_def, args, 0,
)
self.call_script_fn(scope, &mut mods, &mut state, lib, this_ptr, fn_def, args, 0)
}
/// Optimize the `AST` with constants defined in an external Scope.