Skip to content

Commit

Permalink
Allow null dart2js version (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmundch committed Feb 14, 2019
1 parent 38de0d8 commit 8439f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/binary_codec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class BinaryPrinter implements InfoVisitor<void> {
void visitProgram(ProgramInfo info) {
visitFunction(info.entrypoint);
sink.writeInt(info.size);
sink.writeString(info.dart2jsVersion);
sink.writeStringOrNull(info.dart2jsVersion);
writeDate(info.compilationMoment);
writeDuration(info.compilationDuration);
// Note: we don't record the 'toJsonDuration' field. Consider deleting it?
Expand Down Expand Up @@ -302,7 +302,7 @@ class BinaryReader {
var info = new ProgramInfo();
info.entrypoint = readFunction();
info.size = source.readInt();
info.dart2jsVersion = source.readString();
info.dart2jsVersion = source.readStringOrNull();
info.compilationMoment = readDate();
info.compilationDuration = readDuration();
info.toJsonDuration = new Duration(microseconds: 0);
Expand Down

0 comments on commit 8439f0c

Please sign in to comment.