summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-06-11Retrieve `b` operand from the instruction (for debugging); ref #4020Yukihiro "Matz" Matsumoto
2018-06-08`mrb_class_real()` did not work for `BasicObject`; fix #4037Yukihiro "Matz" Matsumoto
2018-06-07Allow `Object#clone` to copy frozen status only; fix #4036Yukihiro "Matz" Matsumoto
Copying all flags from the original object may overwrite the clone's flags e.g. the embedded flag.
2018-06-07Merge pull request #4035 from katzer/patch-1Yukihiro "Matz" Matsumoto
[mruby-socket] Declare inet_ntop and inet_pton as static
2018-06-07Merge pull request #4039 from i110/i110/fix-broken-lexical-variablesYukihiro "Matz" Matsumoto
fix broken lexical variables
2018-06-07Extend stack when pushing arguments that does not fit in; fix #4038Yukihiro "Matz" Matsumoto
2018-06-07Export `stack_extend` function (renamed `mrb_stack_extend`); fix #3219Yukihiro "Matz" Matsumoto
This change is required to support #4038.
2018-06-06add test for evalIchito Nagata
2018-06-06Revert "Fix heap use after free on mruby-aws-sigv4."Ichito Nagata
This reverts commit b8869498b7b1458af1cf2a5ccc7644849f826230.
2018-06-05Declare inet_ntop and inet_pton as static Sebastián Katzer
To avoid conflicts with multiple definitions of inet_ntop and inet_pton if compiled with # define _WIN32_WINNT _WIN32_WINNT_VISTA C:/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libWs2_32.a(dghfs00169.o):(.text+0x0): multiple definition of `inet_pton' 722C:/projects/iss/mruby/build/host/lib/libmruby.a(socket.o):C:/projects/iss/mruby/mrbgems/mruby-socket/src/socket.c:80: first defined here define _WIN32_WINNT _WIN32_WINNT_VISTA
2018-06-03Merge pull request #4033 from i110/i110/fix-envadjustYukihiro "Matz" Matsumoto
fix env->stack misadjusting: fix #4029
2018-06-03fix env->stack misadjustingIchito Nagata
2018-06-01Instead of defining `Hash#dup`, we should define `Hash#initialize_copy`.Yukihiro "Matz" Matsumoto
`Hash#clone` did not work properly; fix #4030
2018-06-01The `clone` method should copy object status (e.g. frozen) too; #4030Yukihiro "Matz" Matsumoto
2018-06-01Merge pull request #4031 from i110/i110/hash_defaultYukihiro "Matz" Matsumoto
let Hash#merge keep ifnone value
2018-06-01let Hash#merge keep ifnone valueIchito Nagata
2018-05-30Should not call `initialize_copy` for `TT_ICLASS`; fix #4027Yukihiro "Matz" Matsumoto
Since `TT_ICLASS` is a internal object that should never be revealed to Ruby world.
2018-05-30Clear `__classname__` of duped class/module; ref #4027Yukihiro "Matz" Matsumoto
2018-05-23Check if the exception is frozen; fix #4025Yukihiro "Matz" Matsumoto
`exc_debug_info()` and `mrb_keep_backtrace()` raise `FrozenError` if the exception is frozen and lead to infinite loop.
2018-05-23Add `then` alias to `yield_self`.Yukihiro "Matz" Matsumoto
`then' was added in CRuby 2.6.
2018-05-11Merge pull request #4023 from iwamatsu/fix-upstreamYukihiro "Matz" Matsumoto
Fix test of mruby-pack with big-endian CPUs
2018-05-10Fix test of mruby-pack with big-endian CPUsNobuhiro Iwamatsu
When running the mruby-pack test with big endian, test data is incorrect, so it will fail with "i" and "I". ------ Fail: pack/unpack "i" (mrbgems: mruby-pack) - Assertion[1] Failed: Expected to be equal Expected: "\xff\xff\xc7\xcf" Actual: "\xff\xff\xcf\xc7" - Assertion[2] Failed: Expected to be equal Expected: [-12345] Actual: [-14385] Fail: pack/unpack "I" (mrbgems: mruby-pack) - Assertion[1] Failed: Expected to be equal Expected: "\x00\x0090" Actual: "\x00\x0009" - Assertion[2] Failed: Expected to be equal Expected: [12345] Actual: [14640] ------ This will fix the test data at big-endian. Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
2018-05-09Merge pull request #4022 from mimaki/mruby-r-optionYukihiro "Matz" Matsumoto
Add `-r` option for `mruby` and `mirb`. (mrbgem is not supported)
2018-05-08Fix CI build errors and warnings.Hiroshi Mimaki
2018-05-07Add `-r` option for `mruby` and `mirb`.Hiroshi Mimaki
2018-05-07Merge pull request #4017 from mimaki/mruby-d-optionYukihiro "Matz" Matsumoto
Add `-d` option for `mruby` and `mirb`.
2018-05-07Fix CI build errors and warnings.Hiroshi Mimaki
2018-05-03`env` referred from top-level callinfo should not be unshared; fix #4019Yukihiro "Matz" Matsumoto
Because `mirb` keeps top-level environment across each iteration.
2018-05-02Need to call `mrb_str_modify()` in `mrb_str_cat_str()`; fix #4018Yukihiro "Matz" Matsumoto
If `str` and `str2` are the same string object `str->ptr` may be rewritten by `mrb_str_modify()`.
2018-05-02Add `-d` option for `mruby` and `mirb`.Hiroshi Mimaki
2018-05-01Update `MRB_FLO_TO_STR_FMT` to "%.16g"; fix #4016Yukihiro "Matz" Matsumoto
2018-05-01Check the return value from `mrb_get_datatype()`; fix #4009Yukihiro "Matz" Matsumoto
The return value (void*) may be NULL. Avoid using `mrb_get_datatype()` directly and use `io_get_open_fptr()` instead.
2018-05-01Fix stack position in multiple assignment; fix #4008Yukihiro "Matz" Matsumoto
This was caused by a patch from #2684.
2018-04-28Update `OP_APOST` description; ref #4008Yukihiro "Matz" Matsumoto
2018-04-28Fix broken support of `MRB_WITHOUT_FLOAT`; fix #4015Yukihiro "Matz" Matsumoto
2018-04-28Update the patch to not use `funcall` in C; ref #4013Yukihiro "Matz" Matsumoto
2018-04-28Fix Enumerable#hash on non 32-bit integer conf.kimu_shu
2018-04-28Merge pull request #4014 from mruby/stableYukihiro "Matz" Matsumoto
Set the mruby-1.4.1 release date to `2018-4-27`.
2018-04-28Merge pull request #4012 from take-cheeze/fix_heap_use_after_freeYukihiro "Matz" Matsumoto
Fix heap use after free on mruby-aws-sigv4.
2018-04-27Set the mruby-1.4.1 release date to `2018-4-27`.1.4.1Hiroshi Mimaki
2018-04-27Fix heap use after free on mruby-aws-sigv4.Takeshi Watanabe
2018-04-26Merge pull request #4011 from kou/fix-gc-env-childrenYukihiro "Matz" Matsumoto
Fix wrong the number of marked objects of MRB_TT_ENV in gray mark phase
2018-04-26Fix wrong the number of marked objects of MRB_TT_ENV in gray mark phaseKouhei Sutou
If MRB_TT_ENV has stack shared flag or bidx flag, flags is too large than the real stack size.
2018-04-25Merge pull request #4010 from take-cheeze/fix_ary_replace_leakYukihiro "Matz" Matsumoto
Fix array replace leak error in mruby-uri.
2018-04-25Fix array replace leak error in mruby-uri.Takeshi Watanabe
2018-04-23Merge pull request #4007 from iij/sort-should-not-consume-system-stackYukihiro "Matz" Matsumoto
sort method should not consume system stack.
2018-04-23Merge pull request #4006 from take-cheeze/fix_ub_checkYukihiro "Matz" Matsumoto
Fix undefined error of pointer dereference.
2018-04-23sort method should not consume system stack.Tomoyuki Sahara
2018-04-23Fix undefined error of pointer dereference.Takeshi Watanabe
2018-04-21Implement `String#upto` in Ruby.Yukihiro "Matz" Matsumoto
Avoid using `mrb_yield` in C code. The function is not recommended. Because it doesn't work well with fibers.