Actions
Bug #10959
closedrb_iseq_load: problems with hash containing symbolic keys
ruby -v:
ruby 2.2.1p85 (2015-02-26 revision 49769) [x64-mingw32]
Tags:
Description
Hello!
I've found a bug in the rb_iseq_load function. When I'm trying to load the next code:
def func @basis << {:a => 1} end
compiled by RubyVM::InstructionSequence.compile_file(filename).to_a
call it throws an exception "wrong argument type false (expected Symbol). If :a is replaced to "a" the precompiled code loads correctly. All files required for reproducing this bug is attached to the report.
Files
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
- Status changed from Open to Closed
I get OK
for all three test files uploaded. I tested Ruby 2.0, 2.2, and 2.7 and got the same result with each. So if this was a problem, it appears to have been fixed.
Actions
Like0
Like0