summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-11-19 10:40:07 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-11-19 10:57:07 +0900
commit0a0cc5a217b577dfadddfb250d5a91ca69978887 (patch)
treed3c99a1024991bc0569539ea7198fe8f0cdcfd70 /include/mruby.h
parent31a961acf16b7a9454ccb0f0ece91b79e95f7078 (diff)
downloadmruby-0a0cc5a217b577dfadddfb250d5a91ca69978887.tar.gz
mruby-0a0cc5a217b577dfadddfb250d5a91ca69978887.zip
Check method existence for Enumerators; fix #3920
The issue #3920 was fixed but the fundamental flaw of lack of stack depth check along with fibers still remains, even though it's not easy to cause the issue. Use `MRB_GC_FIXED_ARENA` to avoid the issue for workaround. After this patch, `obj.to_enum` raises `ArgumentError` if the object does not respond to the enumerating method. This is incompatible to CRuby but I think this behavior is better and CRuby should be updated to behave like this.
Diffstat (limited to 'include/mruby.h')
0 files changed, 0 insertions, 0 deletions