- 21 Dec, 2019 4 commits
-
-
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 ```
-
- 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 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
This reverts commit f507ff48. It makes AppVeyor tests fail.
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
-
- 17 Dec, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove location info from `Exception#inspect`
-
Yukihiro "Matz" Matsumoto authored
Refine output of `mrb_print_error()`
-
Yukihiro "Matz" Matsumoto authored
-
KOBAYASHI Shuji authored
The following improvements are made according to Ruby's behavior: - Match location number to index. - Remove duplicate most recent call output. - Fix that first call is not output when array (unpacked) backtrace. ### Example ```ruby def a; raise "error!" end def b; a end begin b rescue => e e.backtrace if ARGV[0] == "unpack" # unpack backtrace raise e end ``` #### Before this patch: ``` $ bin/mruby example.rb unpack trace (most recent call last): [0] example.rb:2:in b [1] example.rb:1:in a example.rb:1: error! (RuntimeError) ``` #### After this patch: ``` $ bin/mruby example.rb unpack trace (most recent call last): [2] example.rb:4 [1] example.rb:2:in b example.rb:1:in a: error! (RuntimeError) ```
-
- 16 Dec, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix mruby-io test for mingw32
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4878 from shuujii/remove-unneeded-null-checks-to-struct-backtrace_locationfilename Remove unneeded null checks to `struct backtrace_location::filename`
-
KOBAYASHI Shuji authored
`struct backtrace_location` is created only in `each_backtrace()`, and the `filename` field will never be null (it will be `(unknown)` if null).
-
Yukihiro "Matz" Matsumoto authored
Remove module only methods from class
-
Yukihiro "Matz" Matsumoto authored
Drop dependencies from `mruby-complex` to some gems
-
Yukihiro "Matz" Matsumoto authored
Add "mruby developers" into some gems; Resolve #4709
-
- 15 Dec, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 14 Dec, 2019 6 commits
-
-
KOBAYASHI Shuji authored
Because location info (file name and line number) is kept in the backtrace, it should not be kept in the result of `inspect` (and the exception object itself), I think. ### Example ```ruby # example.rb begin raise "err" rescue => e p e end ``` #### Before this patch: ``` $ bin/mruby example.rb example.rb:2: err (RuntimeError) ``` #### After this patch: ``` $ bin/mruby example.rb err (RuntimeError) ```
-
dearblue authored
The `#prepend_features` and `#module_function` methods are not haves for class objects.
-
dearblue authored
If `#methods` traverse the super class, it includes the methods that were does `undef` in the subclass. Before patched: ```terminal % bin/mruby -e 'p Module.instance_methods - Class.instance_methods' [] ``` After patched: ```terminal % bin/mruby -e 'p Module.instance_methods - Class.instance_methods' [:append_features, :extend_object] ```
-
dearblue authored
And rename `File.concat_path` to `File._concat_path`.
-
dearblue authored
-
dearblue authored
Need `mkstemp()` implements.
-
- 13 Dec, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix arguments check to `Array#each`
-
KOBAYASHI Shuji authored
#### Before this patch: ``` $ mruby -e '[].each(1){}' #=> no error ``` #### After this patch: ``` $ mruby -e '[].each(1){}' #=> ArgumentError: wrong number of arguments ```
-
- 12 Dec, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4861 from shuujii/fix-behavior-of-Kernel-Integer-to-numbers-ending-with-_-and-spaces Fix behavior of `Kernel#Integer` to numbers ending with `_` and spaces
-
- 11 Dec, 2019 1 commit
-
-
KOBAYASHI Shuji authored
#### Before this patch: ```ruby Integer("1_ ") #=> 1 ``` #### After this patch (same as Ruby): ```ruby Integer("1_ ") #=> ArgumentError ```
-
- 10 Dec, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4860 from shuujii/fix-behavior-of-String-to_i-Kernel-Integer-to-numbers-starting-with-_ Fix behavior of `String#to_i`/`Kernel#Integer` to numbers starting with `_`
-
KOBAYASHI Shuji authored
#### Before this patch: ```ruby Integer("_1") #=> 1 "_1".to_i #=> 1 ``` #### After this patch (same as Ruby): ```ruby Integer("_1") #=> ArgumentError "_1".to_i #=> 0 ```
-