Skip to content

Fixed return value of OP_RETURN_BLK called directly under C function#6126

Merged
matz merged 1 commit into
mruby:masterfrom
dearblue:block-return
Dec 27, 2023
Merged

Fixed return value of OP_RETURN_BLK called directly under C function#6126
matz merged 1 commit into
mruby:masterfrom
dearblue:block-return

Conversation

@dearblue

Copy link
Copy Markdown
Contributor
def cross; Class.new { return 1 }; end; p cross'
# => #<Class:0x8245cf170>               # without this patch
# => 1                                  # with this patch

```ruby
def cross; Class.new { return 1 }; end; p cross'
# => #<Class:0x8245cf170>               # without this patch
# => 1                                  # with this patch
```
@dearblue dearblue requested a review from matz as a code owner December 24, 2023 06:31
@github-actions github-actions Bot added the core label Dec 24, 2023
@matz matz merged commit 1ac4148 into mruby:master Dec 27, 2023
@dearblue dearblue deleted the block-return branch January 3, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants