warn with array should behave like puts with array #4383

Closed
grosser opened this Issue Dec 13, 2016 · 0 comments

Projects

None yet

3 participants

@grosser
grosser commented Dec 13, 2016

jruby 9.1.5.0 (2.3.1) 2016-09-07 036ce39 Java HotSpot(TM) 64-Bit Server VM 24.71-b01 on 1.7.0_71-b14 +jit [darwin-x86_64]

>> warn ["a", "b"]
["a", "b"]
=> nil

vs

 2.3.1
>> warn ["a", "b"]
a
b
@enebo enebo added this to the JRuby 9.1.7.0 milestone Dec 13, 2016
@enebo enebo added a commit that closed this issue Dec 13, 2016
@enebo enebo Fixes #4383. warn with array should behave like puts with array.
Also fixes two other problems:
1. we do not dynamic dispatch to puts.  MRI always uses builtin.
2. as part of switching from two writes to builtin puts we also emit
   an extra newline which fixes our last broken spec.

Next commit will add spec for this issue so we have coverage.
4b83350
@enebo enebo closed this in 4b83350 Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment