Skip to content

feat: codegen#12

Merged
Reider745 merged 6 commits into
NukkitMotfrom
feature/codegen
Jun 25, 2026
Merged

feat: codegen#12
Reider745 merged 6 commits into
NukkitMotfrom
feature/codegen

Conversation

@Reider745

Copy link
Copy Markdown
Owner

No description provided.

Eugene Smirnov and others added 6 commits June 22, 2026 00:45
…sistent:

Now get/put/has and ScriptableObject.get/put/hasProperty on the ScriptableModuleInstanceImpl object will be equivalent to each other

1. has() will return true for bound methods, fields and extra fields, added in prototype
2. get() will return methods or fields from prototype, but if they are overridden in this object, will prioritize those
3. put() will
- write into java field bindings directly via new ScriptableObject.getRawSetter
- override java method bindings for this object only (if VALIDATE_INVALID_WRITES = false)
- add/override extra fields (if VALIDATE_INVALID_WRITES = false)
@Reider745
Reider745 merged commit 28c1c40 into NukkitMot Jun 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant