summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2017-03-11Merge pull request #3496 from ksss/string-gsubYukihiro "Matz" Matsumoto
Avoid infinity loop when empty string pattern
2017-03-11Merge branch 'master' into string-gsubYukihiro "Matz" Matsumoto
2017-03-11Merge pull request #3497 from ksss/subreplaceYukihiro "Matz" Matsumoto
\1 sequences as empty strings
2017-03-10\1 sequences as empty stringsksss
2017-03-10Avoid infinity loop when empty string patternksss
2017-03-10Update ci->mid according to surrounding scope; fix #3490Yukihiro "Matz" Matsumoto
2017-03-10Simplify expression; ref #3490Yukihiro "Matz" Matsumoto
2017-03-10Raise special Exception when exception class is redefined; fix #3493Yukihiro "Matz" Matsumoto
2017-03-10Use string#upto() if available; fix #3489Yukihiro "Matz" Matsumoto
Terminate loop if the value is longer than the last otherwise.
2017-03-10Terminate loop if generated string longer than the last; ref #3489Yukihiro "Matz" Matsumoto
2017-03-07`__FILE__` should not update `p->filename`; fix #3485Yukihiro "Matz" Matsumoto
2017-03-06Merge pull request #3484 from ksss/string-frozenYukihiro "Matz" Matsumoto
Check modifiable for String `bang' methods
2017-03-06Avoid trampoline code if mrb_f_send is called from funcall; fix #3383Yukihiro "Matz" Matsumoto
2017-03-05Check modifiable for String `bang' methodsksss
2017-03-05Merge pull request #3483 from ksss/string-indexYukihiro "Matz" Matsumoto
String#index shouldn't return nil when "".index ""
2017-03-05String#index shouldn't return nil when "".index ""ksss
2017-03-04Unshare popped TT_ENV objects.Yukihiro "Matz" Matsumoto
2017-03-04Limit ecall() recursion levels; fix #3466Yukihiro "Matz" Matsumoto
2017-03-04Avoid tracing shared TT_ENV object.Yukihiro "Matz" Matsumoto
2017-03-04Save/restore arena index in the loop.Yukihiro "Matz" Matsumoto
2017-03-02Define jmpbuf_id outside of `extern "C"`; ref #3470Yukihiro "Matz" Matsumoto
2017-03-02Use C++ ABI only when MRB_ENABLE_CXX_ABI is set; ref #3470Yukihiro "Matz" Matsumoto
2017-03-02Fixed a bug in register size calculation; fix #3479Yukihiro "Matz" Matsumoto
2017-03-02The method_missing removal condition in a76dc04a was wrong.Yukihiro "Matz" Matsumoto
2017-03-02Fix possible stack overflow for `method_missing`; fix #3478Yukihiro "Matz" Matsumoto
Instead of shifting mruby VM stack, we always use CALL_MAXARGS.
2017-03-02Reorganize C++ exceptions; ref #3470Yukihiro "Matz" Matsumoto
There are 3 levels of C++ exception handling: * default - no C++ exception (use setjmp/longjmp) * enable_cxx_exception (use C++ exceptions with C ABI) * enable_cxx_abi (use C++ ABI including exceptions)
2017-03-02Create NoMethodError instance using `mrb_obj_new()`.Yukihiro "Matz" Matsumoto
2017-03-02Avoid using <mruby/throw.h> in mruby.cYukihiro "Matz" Matsumoto
2017-03-01`ci` may be moved during `mrb_convert_type()`; ref #3474Yukihiro "Matz" Matsumoto
2017-03-01Keep space for safe navigation operator; fix #3475Yukihiro "Matz" Matsumoto
2017-03-01Newlines in strings should be counted; fix #3477Yukihiro "Matz" Matsumoto
2017-02-28Compile C files by C compiler when C++ files mixed.Yukihiro "Matz" Matsumoto
ref #3267 #3470 By this commit, mruby do not use C++ ABI mode unless you specify explicitly. It compiles C files by C compilers, with C++ exception enabled when it sees C++ files in your configured mrbgems. I haven't tried visualcpp, so please submit an issue if you see any problem with C++ gems on Windows.
2017-02-28Merge pull request #74 from iij/run-test-outside-source-treeTomoyuki Sahara
run mrbtest outside of source tree.
2017-02-28run mrbtest outside of source tree.Tomoyuki Sahara
2017-02-28Ignore empty ensure clause.Yukihiro "Matz" Matsumoto
2017-02-28`return` (and `break`) should handle splat correctly; fix #3472Yukihiro "Matz" Matsumoto
2017-02-28Fix NODE_DREGX dump; ref #3471Yukihiro "Matz" Matsumoto
2017-02-28Fixed a bug in dregex option generation; fix #3471Yukihiro "Matz" Matsumoto
2017-02-28Update codegen.c commentsYukihiro "Matz" Matsumoto
2017-02-28Fix integer overflow; fix #3473Yukihiro "Matz" Matsumoto
The fix is suggested by https://hackerone.com/lucnguyen
2017-02-28Add type check by mrb_get_args(); ref #3476Yukihiro "Matz" Matsumoto
2017-02-28Add check before calling str_substr(); ref #3476Yukihiro "Matz" Matsumoto
2017-02-28Check if the value is fixnum before mrb_funcall(); fix #3476Yukihiro "Matz" Matsumoto
The issue is reported by https://hackerone.com/aerodudrizzt
2017-02-27Remove default Kernel#method_missing.Yukihiro "Matz" Matsumoto
Internal method_missing works without problems.
2017-02-27Check if OP_RETURN cross C function boundary; fix #3462Yukihiro "Matz" Matsumoto
2017-02-27Fixed ecall() invoked too early; fix #3464Yukihiro "Matz" Matsumoto
2017-02-27Update local variable only after the value is checked.Yukihiro "Matz" Matsumoto
2017-02-27Clear block arg when method_missing takes *args.Yukihiro "Matz" Matsumoto
2017-02-27Stack may be reallocated in mrb_run(); fix #3465Yukihiro "Matz" Matsumoto
2017-02-27Always keep block argument space in stack; fix #3469Yukihiro "Matz" Matsumoto