Push the Symbol class for BuiltinClass in AOT bytecode · jruby/jruby@0831f88 · GitHub
Skip to content

Commit 0831f88

Browse files
committed
Push the Symbol class for BuiltinClass in AOT bytecode
NormalValueCompiler.pushSymbolClass pushed the Object class, so in AOT bytecode the check a single pattern uses to tell a missing hash key from other errors, Symbol === error, was always true, and a length mismatch in an array pattern raised the message built for a missing key. Fixes #9854
1 parent b1f0895 commit 0831f88

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎core/src/main/java/org/jruby/ir/targets/simple/NormalValueCompiler.java‎

Lines changed: 1 addition & 1 deletion

‎spec/compiler/general_spec.rb‎

Lines changed: 15 additions & 0 deletions

0 commit comments

Comments
 (0)