diff options
| author | John Hawthorn <john@hawthorn.email> | 2021-05-26 13:09:32 -0700 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:35 -0400 |
| commit | 546ca8167d341bca2b7a1927950a0369b5185bf0 (patch) | |
| tree | 0897c937641d87e6ae050169dc4ead242cc1a5db /spec/ruby/core/array/array_spec.rb | |
| parent | 9283fc1bb554da800fe02bdd1653520f8b743344 (diff) | |
Guard for T_OBJECT at compile time (#53)
Previously this could crash on Nokogiri when JITing the getivar
instruction because we would attempt to treat Nokogiri::XML::Document's
T_DATA as a T_OBJECT in calling rb_iv_index_tbl_lookup.
This commit also checks for T_OBJECT at compile time and emits the
rb_ivar_get fallback in that case.
Co-authored-by: HParker <HParker@github.com>
Co-authored-by: Dinah Shi <dinahshi@github.com>
Co-authored-by: HParker <HParker@github.com>
Co-authored-by: Dinah Shi <dinahshi@github.com>
Diffstat (limited to 'spec/ruby/core/array/array_spec.rb')
0 files changed, 0 insertions, 0 deletions
