Skip to content

Commit

Permalink
[jvm] Add a takeclosure op needed for JVM's old closure handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Dec 12, 2016
1 parent 7fed81d commit 069d9ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions t/qast/01-qast.t
Original file line number Diff line number Diff line change
Expand Up @@ -1471,9 +1471,11 @@ test_qast_result(
test_qast_result(
QAST::Block.new(
QAST::Block.new(
QAST::Block.new(
QAST::Var.new( :name('counter'), :scope('lexical') , :decl('statevar'), :value($counter)),
QAST::Var.new( :name('counter'), :scope('lexical'))
QAST::Op.new(:op<takeclosure>, # needed for JVM
QAST::Block.new(
QAST::Var.new( :name('counter'), :scope('lexical') , :decl('statevar'), :value($counter)),
QAST::Var.new( :name('counter'), :scope('lexical'))
)
)
)
),
Expand Down

0 comments on commit 069d9ea

Please sign in to comment.