Commit Graph
3 Commits
Author SHA1 Message Date
Marc RousavyandGitHub 915221d8f8 fix: Check cached global if it's still safe (#983) 2025-10-24 10:31:32 +02:00
Marc RousavyandGitHub e685668188 feat: Implement Variant ordering (and add missing imports) (#970)
* fix: Add imports for missing core types

* generate

* feat: Add test for a really complex variant

* Filter non duplicates

* fix: Fix `Date` `canConvert()`

* fix: Use non optional type

* feat: Implement ordering for variants

* Order again

* fix: Use new variant ordering in impl

* fix: Use in Kotlin

* fix: Promise returns now

* fix: Import `HybridObject` in Kotlin

* fix: Fix Kotlin import

* fix: Avoid comments in comment

* fix: Fix `holds something else!` string test
2025-10-20 12:29:06 +02:00
Marc RousavyandGitHub 229e7d83db feat: Create ObjectUtils for Object.freeze, Object.defineProperty, ... (#967)
* feat: Create `ObjectUtils` for `Object.freeze`, `Object.defineProperty`, ...

* Use Object.create

* Fix missing obj

* fix: Better error

* Cache

* fix: Actually cache by preventing copy

* Object.create is part of RN 78

* Use `defineProperty(...)` for `Dispatcher` too

* Optimize Dispatcher install

* Create `getGlobalFunction`

* feat: Use `defineGlobal(...)` to define our global props

* fix: Move the globals

* fix: Don't protect/freeze the globals in JS

we already do it in native.
2025-10-17 18:35:16 +02:00