Skip to content
Commit 42201e33 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

ucode-mod-lua: support prototype lookups and method calls on ucode values



Expose ucode arrays and objects with prototypes as userdata proxy objects
to Lua and extend the userdata metadatable with an __index metamethod to
lookup not found properties in the ucode values prototype chain.

Also extend the __call metamethod implementation to infer method call
status from the activation record in order to invoke ucode functions with
the correct `this` context when called as method from Lua.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 7e4c087f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment