Skip to content

Commit 06f82a8

Browse files
committed
Should have a stash for KnowHOWs too.
1 parent 1d1ea2f commit 06f82a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/metamodel/knowhow_bootstrapper.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ static void new_type(PARROT_INTERP, PMC *nci) {
3838
VTABLE_get_string_keyed_str(interp, capture, name_str) :
3939
empty_str;
4040
((KnowHOWREPRInstance *)PMC_data(HOW))->name = name;
41+
42+
/* Set .WHO to an empty hash. */
43+
STABLE(type_object)->WHO = pmc_new(interp, enum_class_Hash);
4144

4245
/* Put it into capture to act as return value. */
4346
Parrot_pcc_build_call_from_c_args(interp, capture, "P", type_object);

0 commit comments

Comments
 (0)