Project

General

Profile

« Previous | Next » 

Revision 9580586b

Added by nobu (Nobuyoshi Nakada) about 7 years ago

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

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