Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity] Bug: 过滤掉构造函数.ctor后,仍然生成了Constructor绑定函数 #1785

Open
3 tasks done
zxt5105515 opened this issue Jul 10, 2024 · 0 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working Unity

Comments

@zxt5105515
Copy link

前置阅读 | Pre-reading

Puer的版本 | Puer Version

2.0.4

Unity的版本 | Unity Version

2021.3.21f1

发生在哪个平台 | Platform

Editor(win)

错误信息 | Error Message

过滤了 TestClass的.ctor方法,但仍然生成了一个无用的Constructor绑定

        [Puerts.MonoPInvokeCallback(typeof(Puerts.V8ConstructorCallback))]
        internal static IntPtr Constructor(IntPtr isolate, IntPtr info, int paramLen, long data)
        {
            try
            {


                Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to " + typeof(TestClass).GetFriendlyName() + " constructor");
            } catch (Exception e) {
                Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace);
            }
            return IntPtr.Zero;
        }

问题重现 | Bug reproduce

见上

@zxt5105515 zxt5105515 added bug Something isn't working Unity labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Unity
Projects
None yet
Development

No branches or pull requests

2 participants