ialex32x / unity-jsb

It brings Javascript runtime capability to Unity3D by integrating QuickJS.
MIT License
335 stars 41 forks source link

Improvements for QuickJS - C# interoperability #77

Closed KurtGokhan closed 2 years ago

KurtGokhan commented 2 years ago

General idea of this PR is to have a smoother interop when passing values from and to between QuickJS and C#. Also see my comments for each change.

KurtGokhan commented 2 years ago

My changes would be more meaningful if I could show them as unit tests. I can add automated tests to this repo if that won't be too intrusive.

ialex32x commented 2 years ago

I'm also considering adding automated tests (in C# and Typescripts separately, it seems many changes are required to use an existing solution like Mocha/Jest etc. due to the lacking of the real nodejs envioronment). Anyway, always welcome if you have any PR. Thanks a lot!