Yukihiro "Matz" Matsumoto
|
db47ae5de5
|
Fixed a bug in mrb_convert_to_integer(); fix #3581
Did not update the result from `mrb_check_string_type()` before
string-to-integer conversion.
|
2017-04-11 02:00:02 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9094415acf
|
An object attached to a singleton class may not be a class; fix #3587
The fix for #3539 was incomplete.
|
2017-04-10 22:02:51 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
0048dd118a
|
Protect arguments from GC; fix #3597
GC may be called with OP_ENTER (especially when GC_STRESS is set).
|
2017-04-10 21:12:41 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a55b237d89
|
Callinfo may be changed in ecall(); fix #3589
|
2017-04-10 20:39:49 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ab25eaea23
|
Avoid clearing VM stack every time to gain performance.
VM stack is cleared by 5c114c9, 0cb501 and c063641.
|
2017-04-10 09:59:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5c114c91d4
|
Clear unused stack region that may refer freed objects; fix #3596
|
2017-04-10 09:46:09 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
491d68bb30
|
Skip stack marking at all if c->stack is NULL.
|
2017-04-10 09:28:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
0cb501545c
|
Fill omitted arguments by nil for non-strict Proc.
|
2017-04-10 09:24:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c063641ab0
|
Clear local (but non-argument) variables in OP_ENTER.
Otherwise, the following script prints an uninitialized value.
def f(*a)
if false
b = 15
end
p b
end
f(1,2,3)
|
2017-04-10 08:25:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
47f181519f
|
Avoid updating regs[] from function calls; ref #3588
|
2017-04-08 17:47:35 +09:00 |
|
Kouichi Nakanishi
|
15b55c32e9
|
Attach a name to embbeded value of rescue/ensure stack size
|
2017-04-08 11:22:41 +09:00 |
|
Kouichi Nakanishi
|
fd0f79ca67
|
Get constant of parent class even if child class is defined in signleton class; fix #3575
|
2017-04-06 23:31:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e5b61d34f6
|
Fixed possible SEGV in Kernel#block_given?; ref #3593
|
2017-04-06 10:07:53 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5e79bc9377
|
Make String#replace to check equality before modifying flags.
ref #3588
|
2017-04-06 08:25:25 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a7b0ab3769
|
Save block argument position in e->cioff; fix #3593
|
2017-04-05 22:30:39 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d9fb8b69b0
|
Fixed a bug in OP_SUPER block conversion; fix #3590
|
2017-04-05 18:22:26 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
2daebfb6a7
|
Fixed a bug when method_missing take 126 args; fix #3592
|
2017-04-05 14:41:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
7f37c2fc57
|
Use stderr for debug prints in DEBUG(); fix #3584
|
2017-04-05 12:38:38 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ab63ee61ca
|
Fixed out-of-bounds access of ensure[]; ref #3491
|
2017-04-03 18:47:38 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b8461c8681
|
Protect ensure clause lambdas from GC; fix #3491
|
2017-04-03 18:38:49 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
0a1f15e57c
|
Insert mrb_field_write_barrier() for GC; fix #3534
|
2017-04-03 18:01:43 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
246db71139
|
Add struct REnv to union RVALUE; ref #3534
|
2017-04-03 18:01:17 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
77331d127b
|
Unify else clause style
|
2017-04-03 16:56:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
fbf4089d2f
|
Remove spaces around parens
|
2017-04-03 16:49:18 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f5632f2f12
|
Restrict recursion levels in method_missing(); fix #3556
Note this is a temporary fix. Error message generation
(including `inspect`) should be deferred until its use.
|
2017-04-03 10:50:31 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d27a3d47cd
|
String#initialize to make a string empty; ref #3574
|
2017-04-03 10:22:38 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a49c9f86e7
|
Update callinfo->target_class in mrb_exec_irep(); fix #3543
|
2017-04-03 00:05:16 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5a445f012e
|
Add alias "append" to Array#push, and "prepend" to Array#unshift.
According to CRuby [Feature#12746]
|
2017-04-01 21:27:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
93d802987e
|
Extend VM stack just in case; ref #3551
|
2017-04-01 21:21:57 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
071164b799
|
Should not shrink VM stack; fix #3551
|
2017-04-01 18:54:37 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
56322cd5dd
|
Pacify signed warning; ref #3565
|
2017-04-01 18:41:55 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1e87dfdf48
|
The stack may be reallocated in the func call; fix #3560
|
2017-04-01 13:20:19 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
195af525fb
|
Expand stack for method_missing; fix #3528
|
2017-04-01 12:42:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9eb2ed0879
|
Merge pull request #3571 from keizo042/fix_get_constant_of_module_from_sigleton
Modify to get constant of parent module in singleton class; fix #3568
|
2017-03-31 16:39:21 +09:00 |
|
Kouichi Nakanishi
|
507e00e86f
|
Modify to get constant of parent module in singleton class; fix #3568
|
2017-03-31 13:43:20 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
39ca4ef3bc
|
Avoid crash if hv.n is greater than kh_size(h); fix #3565
The resulting behavior is different from CRuby, but modifying
hash key afterwards is undefined behavior in ISO spec.
|
2017-03-31 13:02:01 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
952207d243
|
small cosmetic change; ref #3570
|
2017-03-30 17:10:44 +09:00 |
|
Kouichi Nakanishi
|
5efe77fede
|
Modify class variable definition in singleton class; fix #3539
|
2017-03-30 16:29:47 +09:00 |
|
ksss
|
db3573e0bf
|
Should raise FloatDomainError
|
2017-03-29 11:59:19 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1f6bf0e14f
|
Merge pull request #3563 from clayton-shopify/dup-renumber-keys
Renumber hash keys during dup since there may be duplicates.
|
2017-03-29 09:43:33 +09:00 |
|
okkez
|
6dbe2272cf
|
Set proper class to subclass of Array
More compatibility to CRuby.
|
2017-03-29 08:02:21 +09:00 |
|
Clayton Smith
|
a6e25f73a0
|
Renumber hash keys during dup since there may be duplicates.
|
2017-03-28 16:31:19 -04:00 |
|
ksss
|
b1c5c3b0a5
|
Fix lost lineno
|
2017-03-25 15:56:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
339c6aed64
|
Add explicit cast from float to mrb_int.
|
2017-03-20 02:54:21 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
dcf6a413ca
|
Use snprintf() to stringify fixnum numbers; fix #3492
|
2017-03-20 01:39:33 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
cea6a16cf4
|
Fixed some compiler errors regarding PRId.
|
2017-03-19 23:42:49 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
09574922a9
|
Should not check/call to_str for immediate objects; ref #3515
|
2017-03-19 20:59:30 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
527dcd5247
|
super class error formats the superclass by inspect; rerf #3515
|
2017-03-19 20:58:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ef105b5ca4
|
Use MRB_PRId instead of "%d"; fix #3515
|
2017-03-19 20:43:25 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d01118d261
|
OP_RESCUE refactored; ref #3519
|
2017-03-19 18:40:58 +09:00 |
|