mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
0da6df6063
Fixes a null pointer dereference in `find_visibility_scope` when defining a singleton method inside `instance_eval`. This was caused by `ci->u.env` being `NULL` in this context. The fix adds a `NULL` check to prevent the crash. Co-authored-by: Gemini <gemini@google.com>