We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0aa52 commit 1fa5971Copy full SHA for 1fa5971
1 file changed
runtime/src/ns_proxy.rs
@@ -464,14 +464,9 @@ pub(crate) fn handle_named_property_getter(
464
let clazz_dec = lock.as_any().downcast_ref::<ClassDeclaration>();
465
466
if let Some(clazz_dec) = clazz_dec {
467
- for method in collect_class_methods(clazz_dec) {
468
- let mut method_name = method.overload_name();
469
- if method_name.is_empty() {
470
- method_name = method.name();
471
- }
472
-
473
- if method_name == name {
474
- let declaration = Arc::new(RwLock::new(method.clone()));
+ if let Some(method) = find_class_method(clazz_dec, &name) {
+ {
+ let declaration = Arc::new(RwLock::new(method));
475
let declaration =
476
Box::into_raw(Box::new(DeclarationFFI::new_with_instance(
477
declaration,
0 commit comments