Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
23c4ad08
Commit
23c4ad08
authored
Dec 03, 2016
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Dec 03, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3319 from bouk/apost-splatt
Fix segfault when using result of rest assignment
parents
79a621dd
fe362c1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
mrbgems/mruby-compiler/core/codegen.c
mrbgems/mruby-compiler/core/codegen.c
+3
-1
test/t/codegen.rb
test/t/codegen.rb
+9
-0
No files found.
mrbgems/mruby-compiler/core/codegen.c
View file @
23c4ad08
...
...
@@ -1061,8 +1061,10 @@ gen_vmassignment(codegen_scope *s, node *tree, int rhs, int val)
n
++
;
}
}
if
(
!
val
)
{
push
();
}
}
}
static
void
...
...
test/t/codegen.rb
View file @
23c4ad08
...
...
@@ -54,3 +54,12 @@ A
B
assert_equal "
\n
", a
end
assert('splat in case splat') do
a = *case
when 0
* = 1
end
assert_equal [1], a
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment