Tencent / puerts

PUER(普洱) Typescript. Let's write your game in UE or Unity with TypeScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

zxt5105515 opened this issue · comments

前置阅读 | 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

见上