Skip to content

Commit

Permalink
[MERGE #4685 @MSLaguana] Fixing missing serialization for new.target …
Browse files Browse the repository at this point in the history
…property in TTD

Merge pull request #4685 from MSLaguana:fixNewTargetTTD
  • Loading branch information
MSLaguana committed Feb 15, 2018
2 parents 22f9ab8 + a091991 commit 95875b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Runtime/Debug/TTEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ namespace TTD
}
writer->WriteSequenceEnd();

writer->WriteKey(NSTokens::Key::newTargetVal, NSTokens::Separator::CommaSeparator);
NSSnapValues::EmitTTDVar(callEvt->NewTarget, writer, NSTokens::Separator::NoSeparator);

writer->WriteKey(NSTokens::Key::argRetVal, NSTokens::Separator::CommaSeparator);
NSSnapValues::EmitTTDVar(callEvt->ReturnValue, writer, NSTokens::Separator::NoSeparator);

Expand Down Expand Up @@ -538,6 +541,9 @@ namespace TTD
}
reader->ReadSequenceEnd();

reader->ReadKey(NSTokens::Key::newTargetVal, true);
callEvt->NewTarget = NSSnapValues::ParseTTDVar(false, reader);

reader->ReadKey(NSTokens::Key::argRetVal, true);
callEvt->ReturnValue = NSSnapValues::ParseTTDVar(false, reader);

Expand Down
1 change: 1 addition & 0 deletions lib/Runtime/Debug/TTSerializeEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ENTRY_SERIALIZE_ENUM(doubleVal)
ENTRY_SERIALIZE_ENUM(ptrIdVal)
ENTRY_SERIALIZE_ENUM(stringVal)
ENTRY_SERIALIZE_ENUM(argRetVal)
ENTRY_SERIALIZE_ENUM(newTargetVal)
ENTRY_SERIALIZE_ENUM(ttdVarTag)
ENTRY_SERIALIZE_ENUM(getterEntry)
ENTRY_SERIALIZE_ENUM(setterEntry)
Expand Down

0 comments on commit 95875b5

Please sign in to comment.