Repository navigation
Read a selector without arguments as a property in JS - #12
Merged
Merged
Conversation
An exposed selector without arguments becomes a read-only property whose getter calls the selector (grid.name); every other selector stays a method (grid.rowAt_(1)). This is how ApptiveScript reads an ASProperty, and what the JS node in apptive-base needs for space.name and space.variables.<key>. - shim: qjs_binding_define_getter, next to qjs_binding_define and with the same C function behind it; the property is not enumerable, so walking a binding calls nothing in Pharo. The old function stays, so the old Pharo code runs on the new library. - QJSBinding>>isProperty: decides; QJSContext defines getter or method. - Tests, README and the QJSFunction comment use the property form. The library changes: the VM needs a new build with this shim before a pin can move here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An exposed selector without arguments becomes a read-only property whose getter calls the selector (grid.name); every other selector stays a method (grid.rowAt_(1)). This is how ApptiveScript reads an ASProperty, and what the JS node in apptive-base needs for space.name and space.variables..
The library changes: the VM needs a new build with this shim before a pin can move here.