mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
f2dc76e3b5
Since `Env` objects are shared by Blocks/Procs in the same context, making multiple aliases in one context screws up with alias names. New implementation uses alias bodies (Procs) to refer new names. As a side effect, `__callee__` stop working correctly for aliases. To fix this `__callee__` problem, we need to keep alias method names in `callinfo`, which consumes more memory. We are wondering that is worth the compatibility.