- 25 Dec, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix potentially use of wrong method cache
-
KOBAYASHI Shuji authored
#### Example (with `MRB_METHOD_CACHE`) ```ruby GC.start c = Class.new p c #=> #<Class:0x7fd6a180e790> c.new #=> cache `c.new` c = nil GC.start #=> `c` is GCed r = Range.dup p r #=> #<Class:0x7fd6a180e790> # [same pointer as `c`] r.new(2, 3) #=> ArgumentError: 'initialize': # wrong number of arguments (2 for 0) # [`c.new` is called instead of `r.new`] ``` #### Cause An entry of method cache is identified by class pointer and method id. However, reusing memory after GC may create a class with the same pointer as the cached class. #### Treatment Cleared method caches of the class when the class is GCed.
-
Yukihiro "Matz" Matsumoto authored
Refine the assertion failure message in mrdb print tests
-
- 24 Dec, 2019 2 commits
-
-
KOBAYASHI Shuji authored
#### Before this patch: ```console Fail: mruby-bin-debugger(print) error (mrbgems: mruby-bin-debugger) - Assertion[2] Expected true to be false. ``` #### After this patch: ```console Fail: mruby-bin-debugger(print) error (mrbgems: mruby-bin-debugger) - Assertion[2] Expected "$2 = undefined method 'bar' (NoMethodError)\n" to be start_with? "$2 = (eval):2: undefined method". ```
-
Yukihiro "Matz" Matsumoto authored
Add double quotes for cygwin filenames #4904
-
- 23 Dec, 2019 8 commits
-
-
kishima authored
-
Yukihiro "Matz" Matsumoto authored
Use GNU extension in C++ for cygwin
-
Yukihiro "Matz" Matsumoto authored
Handle CR LF newline natively in lexer
-
take-cheeze authored
-
take-cheeze authored
-
take-cheeze authored
-
Yukihiro "Matz" Matsumoto authored
Parallelize compilation only on Travis CI
-
KOBAYASHI Shuji authored
Parallel execution of tests makes log difficult to see due to mixing.
-
- 22 Dec, 2019 7 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use `git checkout` instead of `git reset`
-
dearblue authored
With this change, if the checkout fails, it will stop with an error. The purpose is to avoid deleting working branch history when developing gem.
-
dearblue authored
-
Yukihiro "Matz" Matsumoto authored
Refine `.travis.yml`
-
Yukihiro "Matz" Matsumoto authored
Fix "undefined method `Pathname'"; fix #4895
-
Yukihiro "Matz" Matsumoto authored
Use `exec` instead of `system` in `minirake` for exit status
-
KOBAYASHI Shuji authored
* Use `rake` instead of `minirake`. * Remove `gperf` configuration. Execution time seems to be reduced by about 15%.
-
- 21 Dec, 2019 9 commits
-
-
KOBAYASHI Shuji authored
#### Before this patch: ```console $ ./minirake --foo; echo $? invalid option: --foo 0 ``` #### After this patch: ```console $ ./minirake --foo; echo $? invalid option: --foo 1 ```
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Perform `shellquote` on referenced string
-
Yukihiro "Matz" Matsumoto authored
`mruby` does not warn like `CRuby` for cases like #4893. Fix #4890, fix #4891, fix #4893.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
`_0` is not numbered parameter
-
KOBAYASHI Shuji authored
#### Before this patch: ```console $ bin/mruby rb -e '_0=:l; p ->{_0}.()' -e:1:13: _0 is not available -e:1:13: syntax error, unexpected $end, expecting '}' ``` #### After this patch (same as Ruby): ```console $ bin/mruby rb -e '_0=:l; p ->{_0}.()' :l ```
-
dearblue authored
-
- 20 Dec, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix potentially crash in `%n` of `mrb_vformat()` with 64-bit `int`
-
KOBAYASHI Shuji authored
If `mrb_sym` is smaller than `int`, it is promoted to `int`.
-
Yukihiro "Matz" Matsumoto authored
Avoid method in method
-
Yukihiro "Matz" Matsumoto authored
Remove unnessesary branches
-
Yukihiro "Matz" Matsumoto authored
Fix for `#methods` to include methods that were `undef`
-
- 19 Dec, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix `mruby-bin-debugger` tests; ref d2f2f9db
-
Yukihiro "Matz" Matsumoto authored
Simplify `print_backtrace()`
-
Yukihiro "Matz" Matsumoto authored
Avoid creating `Data` object that refers `mruby` objects. Also close #4622 ref #4613
-
- 18 Dec, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
This reverts commit f507ff48. It makes AppVeyor tests fail.
-