summaryrefslogtreecommitdiffhomepage
path: root/NEWS
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-04-19 20:14:23 +0900
committerKOBAYASHI Shuji <[email protected]>2019-04-19 20:14:23 +0900
commit4a8b88f7757f71d7d88b89764b533dd5ba59fd44 (patch)
treeca3a11f4ddd74d86054a9ef0adfa776823c9f333 /NEWS
parent05f65d2d429fcc5ff6bf5f2f8729fcb5de63b2ca (diff)
downloadmruby-4a8b88f7757f71d7d88b89764b533dd5ba59fd44.tar.gz
mruby-4a8b88f7757f71d7d88b89764b533dd5ba59fd44.zip
Add type check (conversion) in `String#[]=`
Before this patch: 'a'[0] = 1 #=> 1 'a'[:a] = '1' #=> ArgumentError 'a'[:a, 0] = '1' #=> ArgumentError 'a'[0, :a] = '1' #=> ArgumentError 'a'[0, 1] = 1 #=> 1 After this patch / Ruby: 'a'[0] = 1 #=> TypeError 'a'[:a] = '1' #=> TypeError 'a'[:a, 0] = '1' #=> TypeError 'a'[0, :a] = '1' #=> TypeError 'a'[0, 1] = 1 #=> TypeError
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions