Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use nqp::getstaticcode in 03-closures.t.
  • Loading branch information
jnthn committed Mar 9, 2013
1 parent a95354d commit 2acf690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/serialization/03-closures.t
Expand Up @@ -46,10 +46,10 @@ sub add_to_sc($sc, $idx, $obj) {
my $sc := nqp::createsc('TEST_SC_2_IN');
my $sh := nqp::list_s();

my $raw_sub := (sub make_meth_with($x) {
my $raw_sub := nqp::getstaticcode(sub make_meth_with($x) {
my $m := method () { $x };
$m;
}).get_lexinfo().get_static_code();
});

my $m1 := $raw_sub('dolphin');
my $m2 := $raw_sub('whale');
Expand Down

0 comments on commit 2acf690

Please sign in to comment.