mirror of
https://github.com/zoriya/nitro.git
synced 2026-10-13 00:05:23 +00:00
* feat: Make `HybridObject` a `NativeState` * feat: Get `NativeState` inside `callMethod(...)`, no more passing `this*` * Update HybridObject.hpp * fix: Convert NativeState to `jsi::Value` again * Use `Object.create` * fix broken test * feat: Add `__type` hidden state to objects * chore: Format * `makeGlobal` -> `makeShared` * feat: Extract to `HybridObjectPrototype` * Update HybridObject.hpp * feat: Properly build Prototype chain * Cache prototypes * fix: Fix prototype caching * Extract to separate file * fix: Some comments * chore: Format * feat: Freeze prototypes * Remove freeze * feat: Optimize `NativeState` performance, make it 56x faster (#12) * fix: Fix `HybridFunction` usage * Update HybridFunction.hpp * mark final * feat: Add new `registerHybrids(...)` API * fix: Remove logs * perf: Make `registerHybrids` faster by using function pointer instead of `std::function<...>` * fix: Turn off memory allocations debugger * refactor * Format * fix: Fix cyclic includes for `JSIConverter+HybridObject` * DO_NULL_CHECKS * fix: Use `jsi::Value` directly to avoid down and up casting again * Add `__type` to `HybridObject` declaration * feat: Throw `jsi::JSError` again * feat: Add prototype tests * feat: Set `__type` on Prototypes as well * Delete PointerHolder.hpp * Delete `JSIPrototypeCache` * fix: Use `jsi::Value` directly