Skip to content

Commit

Permalink
Enable 2 more rubyspecs for redo inside block
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 20, 2013
1 parent eafbb58 commit ed94fc4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/opal/parser.rb
Expand Up @@ -2316,7 +2316,7 @@ def process_redo(exp, level)
@while_loop[:use_redo] = true
f("#{@while_loop[:redo_var]} = true", exp)
elsif @scope.iter?
f("return #{@scope.identity}.apply(null, [])")
f("return #{@scope.identity}.apply(null, $slice.call(arguments))")
else
f("REDO()", exp)
end
Expand Down
2 changes: 0 additions & 2 deletions spec/filters/bugs/language/redo.rb
@@ -1,5 +1,3 @@
opal_filter "redo" do
fails "The redo statement re-executes the last step in enumeration"
fails "The redo statement re-executes the closest loop"
fails "The redo statement restarts block execution if used within block"
end

0 comments on commit ed94fc4

Please sign in to comment.