Skip to content

VM: Route map property read/write using Rhai similar to indexing. - #1164

Merged
schungx merged 1 commit into
mainfrom
vm-revise-walk-property
Sep 13, 2026
Merged

VM: Route map property read/write using Rhai similar to indexing.#1164
schungx merged 1 commit into
mainfrom
vm-revise-walk-property

Conversation

@schungx

@schungx schungx commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Originally, Grain rolls its own indexing and property get/set logic.

Then indexing was rerouted to Rhai's standard get_indexed_mut function that properly handles a range of special situations, such as the Engine::on_invalid_array_index callback.

This PR routes also the property read/write process to Rhai, thus properly handling missing properties and the Engine::on_map_missing_property callback.

@schungx
schungx requested a review from ImTheSquid September 9, 2026 13:10
@schungx schungx added regression vm Issues related to the Rhai Grain bytecodes compiler and VM. labels Sep 9, 2026
@schungx
schungx force-pushed the vm-revise-walk-property branch 3 times, most recently from a841d2c to c34479f Compare September 9, 2026 13:37
@schungx
schungx force-pushed the vm-revise-walk-property branch from c34479f to 718c81d Compare September 10, 2026 05:38
@schungx
schungx merged commit 74bf227 into main Sep 13, 2026
54 checks passed
@schungx
schungx deleted the vm-revise-walk-property branch September 13, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

regression vm Issues related to the Rhai Grain bytecodes compiler and VM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants