Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle deserialization of KnowHOWAttribute.
Turns out that with this, we can now deserialize nqp-mo.pm's blob
successfully!
  • Loading branch information
jnthn committed Jan 18, 2013
1 parent 1bcb2aa commit 689f958
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/perl6/nqp/sixmodel/reprs/KnowHOWAttribute.java
Expand Up @@ -30,6 +30,8 @@ public SixModelObject deserialize_stub(ThreadContext tc, STable st) {

public void deserialize_finish(ThreadContext tc, STable st,
SerializationReader reader, SixModelObject obj) {
throw new RuntimeException("KnowHOWAttribute deserialization NYI");
KnowHOWAttributeInstance data = (KnowHOWAttributeInstance)obj;
data.name = reader.readStr();
data.type = tc.gc.KnowHOW; // Not serialized yet
}
}

0 comments on commit 689f958

Please sign in to comment.