Fix builds.

This commit is contained in:
Stephen Chung
2023-03-22 16:16:33 +08:00
parent e60d0fc0bc
commit 9d4972f6d3
3 changed files with 29 additions and 20 deletions

View File

@@ -631,6 +631,7 @@ impl Engine {
let hash = hashes.script();
let local_entry = &mut None;
#[cfg(not(feature = "no_object"))]
let resolved = if _is_method_call && !args.is_empty() {
let typed_hash =
crate::calc_typed_method_hash(hash, self.map_type_name(args[0].type_name()));
@@ -638,6 +639,8 @@ impl Engine {
} else {
None
};
#[cfg(feature = "no_object")]
let resolved = None;
let resolved = if resolved.is_none() {
self.resolve_fn(global, caches, local_entry, None, hash, None, false)