ialex32x / unity-jsb

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

Increase function magic numbers from 16-bit to 32-bit #92

Closed KurtGokhan closed 2 years ago

KurtGokhan commented 2 years ago

When I do too much calls to dynamic methods, after a while I receive an error like "dynamic method not found". It happens after 32767 calls because magic number goes negative after that. This seems too low and I think QuickJS should support 32 bit magic numbers. The dynamic method list in C# side is written for 32 bit integer.