Yukihiro "Matz" Matsumoto
55842c5a34
resolve conflict; ref #3279
2016-11-25 09:33:20 +09:00
Yukihiro "Matz" Matsumoto
30f12ba4bc
resolve conflict; ref #3283
2016-11-25 09:27:24 +09:00
Yukihiro "Matz" Matsumoto
cc2786c84e
resolve conflict; ref #3285
2016-11-25 09:25:51 +09:00
Yukihiro "Matz" Matsumoto
0b4017fd69
resolve conflict; ref #3286
2016-11-25 09:23:47 +09:00
Yukihiro "Matz" Matsumoto
d77b254108
Merge pull request #3287 from bouk/proc-arity
...
Fix calling .arity on Proc with undefined `initialize`
2016-11-25 09:20:47 +09:00
Yukihiro "Matz" Matsumoto
6905597f5b
Merge pull request #3284 from bouk/remove-method-segfault
...
Fix segfault on remove_method with invalid argument
2016-11-25 09:19:22 +09:00
Yukihiro "Matz" Matsumoto
b4d501750c
Merge pull request #3288 from bouk/chomp-bang-len
...
Get String length after args in String#chomp!
2016-11-25 08:01:41 +09:00
Francis Bogsanyi
964427f82c
Fix unsafe peephole optimization
...
Reported by https://hackerone.com/dkasak
2016-11-24 10:32:34 -05:00
Clayton Smith
76a1bdfa29
Get String length after args in String#chomp!
...
Fixes RCE issue
Reported by @bouk
2016-11-24 10:28:21 -05:00
Francois Chagnon
1ec5994377
Fix calling .arity on Proc with undefined initialize
...
Reported by @bouk
2016-11-24 10:23:31 -05:00
Bouke van der Bijl
71641bbf73
Fix segfault caused by empty condition in ternary
...
Reported by https://hackerone.com/jpenalbae
2016-11-24 10:20:42 -05:00
Bouke van der Bijl
1253982577
Fix codegen issue causing misaligned register
...
Reported by https://hackerone.com/haquaman
2016-11-24 10:18:48 -05:00
Bouke van der Bijl
22f5504054
Fix segfault on remove_method with invalid argument
...
Reported by https://hackerone.com/jpenalbae
2016-11-24 10:13:47 -05:00
Bouke van der Bijl
75b31d7438
Fix segfault on method call with exactly 127 arguments
...
Reported by https://hackerone.com/dkasak
2016-11-24 10:09:37 -05:00
Bouke van der Bijl
73e4f069be
Fix nested empty heredoc causing segfault
...
As reported by https://hackerone.com/jpenalbae
2016-11-24 09:54:18 -05:00
Tomasz Dąbrowski
a8b8abbd82
Fixed float tolerance in tests when MRB_USE_FLOAT is set
2016-11-24 12:48:41 +01:00
Yukihiro "Matz" Matsumoto
fb7776586e
hash value may be overflown from Integer
...
mruby special.
2016-11-22 18:00:04 +09:00
Yutaka HARA
aaa86a1fd5
Fix typo in test
2016-11-22 16:25:18 +09:00
Yukihiro "Matz" Matsumoto
b03b1e37d9
Merge pull request #3255 from ksss/range-include
...
Fix condition of Range#include?
2016-11-18 11:48:49 +09:00
ksss
4ef591c897
Fix condition of Range#include?
2016-11-18 10:01:03 +09:00
Yukihiro "Matz" Matsumoto
57900d809f
String#include? does not take integers
2016-11-17 18:02:10 +09:00
ksss
176d93d72a
Ranges should not rewrite
2016-11-17 14:57:30 +09:00
Yukihiro "Matz" Matsumoto
1f554ff854
Fixed rindex calling into mrb_equal bug
...
Fixed by Alex Snaps and reported by Mathieu Leduc-Hamel,
both from shopify.com. Thank you!
2016-11-16 02:10:44 +09:00
Yukihiro "Matz" Matsumoto
feb9b3debd
Merge pull request #3224 from ksss/define_method
...
Module#define_method supports proc argument
2016-11-11 22:57:52 +09:00
Tomasz Dąbrowski
617050450e
test/assert.rb should not use puts
2016-11-10 13:17:59 +01:00
Yukihiro "Matz" Matsumoto
6c299aae67
fixed wrong stack adjustment for ensure clauses; fix #3175
2016-11-07 00:44:08 +09:00
Yukihiro "Matz" Matsumoto
46995c3264
add quoted symbol tests; ref #3231
2016-11-04 14:21:46 +09:00
ksss
efe4f30b39
Module#define_method supports proc argument
2016-10-12 22:19:54 +09:00
ksss
d467022347
Add testing for regression
2016-09-08 16:35:41 +09:00
Yukihiro "Matz" Matsumoto
22dc84f72a
Fixed spell errors in test/t/lang.rb; ref #3199
2016-08-20 21:57:20 +09:00
Miura Hideki
1751d8fd3b
Add new test for optimize VM
2016-08-20 20:30:37 +09:00
Franck Verrot
f6a2f67648
Correct method name
2016-08-15 20:49:32 -07:00
ksss
9dc820590f
Should raise LocalJumpError when no block given
2016-07-14 13:03:25 +09:00
Yasuhiro Matsumoto
8a15ab0c0c
add test for public_methods(false)
2016-06-18 01:21:21 +09:00
Yukihiro "Matz" Matsumoto
dd072b5364
remove wrong ISO section from safe navigation test; ref 4c1ce0f6
2016-03-24 23:35:04 +09:00
Yukihiro "Matz" Matsumoto
4c1ce0f61c
add safe-navigation operator tests
2016-03-23 08:51:25 +09:00
bggd
a138ae3506
Fix doesn't work bintest on :visualcpp toolchain
2016-03-07 14:50:21 +09:00
Sayed Abdelhaleem
f5f48d9400
protect NoMethodError from calling to_hash in replace
2016-01-27 21:17:33 +02:00
Yukihiro "Matz" Matsumoto
8143285956
Merge pull request #3080 from kou/fix-class-variable-in-module
...
Fix class variable reference in module
2016-01-11 10:00:34 +09:00
Kouhei Sutou
ad492eb9f3
Fix class variable reference in module
...
Fix #3079
2016-01-11 00:34:15 +09:00
Yukihiro "Matz" Matsumoto
1d7d7062fc
__t_printstr__ may not be available for tests
2015-12-31 00:55:07 +09:00
Yukihiro "Matz" Matsumoto
4fdec33ff4
simpler t_print
2015-12-30 14:25:05 +09:00
Kouhei Sutou
0ebac02813
Skip backtrace related tests when backtrace isn't available
2015-12-29 23:26:31 +09:00
Kouhei Sutou
a561bdb25f
Support backtrace after method calls
...
GitHub: fix #2902 , #2917
The current implementation traverses stack to retrieve backtrace. But
stack will be changed when some operations are occurred. It means that
backtrace may be broken after some operations.
This change (1) saves the minimum information to retrieve backtrace when
exception is raised and (2) restores backtrace from the minimum
information when backtrace is needed. It reduces overhead for creating
backtrace Ruby objects.
The space for the minimum information is reused by multiple
exceptions. So memory allocation isn't occurred for each exception.
2015-12-29 20:36:12 +09:00
Zachary Scott
3f228c1da4
Fix "ambiguous first argument" warning
2015-12-17 00:12:19 +09:00
murase_syuka
ef95dcd390
Bugfix nagative-number lshift() bit overflow
2015-11-18 21:37:17 +09:00
murase_syuka
a4d5588101
Bugfix lshift() bit overflow; close #3023
2015-11-18 01:00:46 +09:00
mimaki
22464fe5a0
mruby-1.2.0
2015-11-17 18:02:30 +09:00
Akira Mitsui
1238739997
fail to debuild
2015-11-09 23:57:45 +09:00
cremno
bb141e5532
fix ambiguous first argument warning
...
/home/travis/build/mruby/mruby/test/t/float.rb:201:17:
ambiguous first argument; put parentheses or even spaces
2015-11-06 18:35:19 +01:00