Skip to content

Commit d2f7759

Browse files
committed
Ensure DispatcherSub is properly initialized.
1 parent 5e5c46f commit d2f7759

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pmc/dispatchersub.pmc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ pmclass DispatcherSub extends Sub auto_attrs dynpmc group nqp {
55
ATTR PMC *dispatchees; /* Used if this code object is a dispatcher. */
66
ATTR PMC *dispatch_cache; /* Holds a (multi-)dispatch cache if needed. */
77

8+
VTABLE void init() {
9+
SUPER();
10+
SETATTR_DispatcherSub_dispatchees(interp, SELF, PMCNULL);
11+
SETATTR_DispatcherSub_dispatch_cache(interp, SELF, PMCNULL);
12+
}
13+
814
VTABLE void mark() {
915
PMC *dispatchees;
1016
SUPER();

0 commit comments

Comments
 (0)