Project

General

Profile

« Previous | Next » 

Revision a04a5fc1

Added by usa (Usaku NAKAMURA) over 5 years ago

merge revision(s) 64745: [Backport #15118]

    Use opt_{aref,aset} over opt_{aref,aset}_with

    * compile.c (iseq_compile_each0): Use `opt_aref`/`opt_aset` over
      `opt_aref_with`/`opt_aset_with` when frozen_string_literal: true,
      not to resurrect the index string on non-Hash receiver.

    [Fix GH-1957]

    From: chopraanmol1 <chopraanmol1@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@65116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e