From a84ae27882a4e00db07b18831d41f0545cea0439 Mon Sep 17 00:00:00 2001 From: Nicholas Fredricks Date: Sat, 3 Jul 2021 13:32:44 -0400 Subject: [PATCH] fix: handle methods with pointer type params (#116) fixes #109 --- NativeScript/runtime/ClassBuilder.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NativeScript/runtime/ClassBuilder.mm b/NativeScript/runtime/ClassBuilder.mm index f24ef8ab..ebedae1e 100644 --- a/NativeScript/runtime/ClassBuilder.mm +++ b/NativeScript/runtime/ClassBuilder.mm @@ -466,6 +466,8 @@ return pdw->TypeEncoding()->type; } else if (wrapper->Type() == WrapperType::ObjCObject) { return BinaryTypeEncodingType::IdEncoding; + } else if (wrapper->Type() == WrapperType::PointerType) { + return BinaryTypeEncodingType::PointerEncoding; } }