Francis Bogsanyi
|
964427f82c
|
Fix unsafe peephole optimization
Reported by https://hackerone.com/dkasak
|
2016-11-24 10:32:34 -05:00 |
|
Yukihiro "Matz" Matsumoto
|
22f73250db
|
redo should work well in for statement; fix #3275
|
2016-11-24 21:25:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
227daa8811
|
Relax 'void value expression' check that was too strict
|
2016-11-24 11:22:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1c9593954b
|
Add "void value expression" check to the parser.
|
2016-11-24 10:32:28 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
dc4be19aab
|
Add forgotten loop_pop() in NODE_OP_ASGN codegen
|
2016-11-24 10:01:03 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
669bbc70b0
|
codegen_scope should not keep old iseq ptr from irep
|
2016-11-23 21:08:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
752ca514f6
|
do not dump_node if parser failed
|
2016-11-11 22:51:48 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
185dad3a6e
|
node_dump() to print NODE_HEREDOC terminator
|
2016-11-11 22:50:41 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
45aadd7e60
|
HEREDOC could fail with NUL terminated lines; fix#3244
|
2016-11-11 22:49:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3f002b6993
|
fixed a bug when number of LHS and RHS differs; fix #3239
|
2016-11-11 04:37:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1142cf2037
|
fixed a bug with [] in RHS of multiple assignments; fix #3236
|
2016-11-08 22:18:41 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
cc3f1b7f5c
|
allow single quoted labels in hashes; ref #3231
|
2016-11-02 16:14:20 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
13d0832965
|
allow quoted labels in hashes; fix #3231
|
2016-11-02 08:41:43 +09:00 |
|
Nobuyoshi Nakada
|
6511bfd79a
|
Removed trailing spaces
|
2016-09-28 12:29:41 +09:00 |
|
ksss
|
b1fa180ea3
|
Fix unexpected behavior with break
```
def yie
yield
end
def bre
yie {
1+1
break
}
end
p bre #=> display 2, but should be nil
```
|
2016-09-26 12:17:46 +09:00 |
|
Nozomi SATO
|
068b46d5e2
|
- fix mrbc_filename leak; cxt->filename would not be freed until the state is closed.
|
2016-09-04 18:35:23 +09:00 |
|
Nobuyoshi Nakada
|
73dd82e30a
|
parse.y: lparen_arg statement
allow parenthesised statement as a method argument.
reported [Feature:12686] in bugs.ruby-lang.org fixed in CRuby 2.4.
|
2016-08-19 11:11:54 +09:00 |
|
Nobuyoshi Nakada
|
bdd7e2bc8c
|
parse.y: fix chained assignments
fix syntax errors with chained assignment with op assign.
reported [Bug:12669] in bugs.ruby-lang.org fixed in CRuby 2.4.
|
2016-08-13 13:56:14 +09:00 |
|
Nobuyoshi Nakada
|
a06940daa9
|
parse.y: simplify 90e8ce5
simplify tOP_ASGN rules by command_rhs and arg_rhs rules with
%prec.
|
2016-08-12 10:14:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
90e8ce5c30
|
parse.y: rescue modifiers for OP_ASGN should protect rhs only
reported in [Bug:12402] in bugs.ruby-lang.org fixed in CRuby 2.4
|
2016-08-11 16:27:14 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e635dc2a47
|
Merge pull request #3181 from sdottaka/fix-crash-on-mrb_parser_free
Fix crash in mrb_parser_free() due to freed memory access
|
2016-07-26 00:12:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
34ac707ea3
|
OP_ASGN vsp may be negative
reported by https://gist.github.com/miura1729/53fbd8af889c289a79108e38635b2378
fix proposed by @miura1729 in
https://github.com/miura1729/mruby/commit/b1b7933f7aa950cfb747b06327a0d0340f3e4ff8
|
2016-07-25 11:34:55 +09:00 |
|
Takashi Sawanaka
|
2eefbfed9d
|
Fix crash in mrb_parser_free() due to freed memory access
|
2016-07-23 11:34:04 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d4d807b774
|
relax string length limitation to 64KB; fix #2725
|
2016-07-13 03:22:15 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
44de80f76d
|
fix a compiler warning for uninitialized variable
|
2016-06-10 10:11:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6b0299f72b
|
fixed remaining bugs in OP_ASGN stack adjustment; close #3159
|
2016-05-16 15:36:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
29d3a40418
|
stack adjustment after NODE_OP_ASGN with NODE_CALL was wrong; fix #3159
|
2016-05-16 01:49:24 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
2e81fee731
|
parser_dump() to show symbol number for NODE_SYM
|
2016-05-16 01:49:24 +09:00 |
|
cremno
|
309791b3ae
|
raise the error at runtime; fix #3152
|
2016-05-09 16:57:56 +02:00 |
|
Yukihiro "Matz" Matsumoto
|
e1e888e354
|
fix too much optimization for ||=
|
2016-04-01 01:22:16 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d098d823de
|
fix duplicated eval in op_asgn
`a` in `a.m += c` or `a[b] += c` should be evaluated only once.
|
2016-03-30 20:43:57 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4979b52d61
|
reduce OP_ARRAY in argument splat
|
2016-03-30 01:35:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3886becec5
|
better code generation for ||=; #3138
|
2016-03-24 16:03:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1ce471c1cc
|
||= with cvars and constants should work with false values; #3138
|
2016-03-24 07:59:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4fcff34747
|
||= reference error can happen with constants as well; #3138
|
2016-03-23 23:51:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
21a3ae08f7
|
add safe-navigation (aka lonely) operator &.
|
2016-03-23 08:51:25 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
2b0baec32a
|
fixed silly class variable/constant confusion; #3138
|
2016-03-22 00:06:32 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a02acf2635
|
rescue NameError from class variable access like @@foo ||= 42; fix #3138
|
2016-03-21 03:49:08 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
41d6ba23b5
|
fix dump_prefix() with wrong type argument; fix #3128
|
2016-03-07 10:59:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b8479b62d8
|
too many register push for else-less condtions; fix #3117
|
2016-02-22 09:55:51 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
819c9da8d2
|
peephole optimization for LOADNIL before STRCAT; ref #3110
|
2016-02-17 11:03:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d8fc09cf92
|
push value for NULL AST when value is required; fix #3110
|
2016-02-17 11:02:29 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
da96c335fe
|
syntax error in interpolated symbol; fixed #3108
|
2016-02-16 11:33:58 +09:00 |
|
HAYASHI Kentaro
|
9442cb9652
|
Fix a typo
su ported ->
supported
^
|
2016-01-31 00:48:12 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f7afe1d82a
|
change mrb_run related API names; compatibility macros provided
|
2016-01-07 22:36:29 +09:00 |
|
Yasuhiro Matsumoto
|
f0205e1182
|
rename include blocker
|
2015-12-25 13:43:01 +09:00 |
|
Kazuho Oku
|
adadbf5792
|
in peekc_n, adjust column number after calling nextc
|
2015-12-21 15:08:56 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1636ad41a6
|
C++ compiler does not like cast from pointer to enum; ref #3039
|
2015-12-01 10:17:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c2996514d3
|
should ignore block to next, break, etc. fix #3039
|
2015-12-01 09:38:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5c405dea3d
|
include changed from by quotes ("") to by brackets (<>); close #3032
|
2015-11-27 17:48:23 +09:00 |
|