Skip to content

Commit 5375140

Browse files
committed
Make sure Regex::Cursor ends up in an SC.
1 parent aab21a5 commit 5375140

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Regex/Cursor.pir

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ grammars.
4646
set_global "$?CLASS", type_obj
4747
how = get_how type_obj
4848

49+
# Add to serialization context.
50+
$P0 = nqp_get_sc "__REGEX_CORE_SC__"
51+
nqp_set_sc_object "__REGEX_CORE_SC__", 0, type_obj
52+
nqp_set_sc_for_object type_obj, $P0
53+
4954
# XXXNS Old namespace handling installation, during migration to new.
5055
set_hll_global ["Regex"], "Cursor", type_obj
5156

0 commit comments

Comments
 (0)