Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure KnowHOWs get a .WHO set up.
  • Loading branch information
jnthn committed Feb 27, 2013
1 parent be4c3da commit 3651628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/perl6/nqp/sixmodel/KnowHOWMethods.java
Expand Up @@ -38,7 +38,9 @@ public void new_type(ThreadContext tc) {
((KnowHOWREPRInstance)HOW).name = name_arg;

/* Set .WHO to an empty hash. */
// XXX TODO
SixModelObject Hash = tc.gc.BOOTHash;
type_object.st.WHO = Hash.st.REPR.allocate(tc, Hash.st);
type_object.st.WHO.initialize(tc);

/* Return the type object. */
Ops.return_o(type_object, tc.curFrame);
Expand Down

0 comments on commit 3651628

Please sign in to comment.