Skip to content

Commit be303bd

Browse files
committed
Update test case to actually really use the static code object.
1 parent b81e767 commit be303bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/serialization/03-closures.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plan(4);
1010
my $sc := pir::nqp_create_sc__Ps('TEST_SC_1_IN');
1111
my $sh := pir::new__Ps('ResizableStringArray');
1212

13-
my $m1 := method () { "success!" };
13+
my $m1 := (method () { "success!" }).get_lexinfo().get_static_code();
1414
pir::nqp_add_code_ref_to_sc__vPiP($sc, 0, $m1);
1515
pir::setprop__vPsP($m1, 'STATIC_CODE_REF', $m1);
1616

0 commit comments

Comments
 (0)