Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index ef802ba987c8208a1a3559597c8029f450ed5c7b..672e830bb4e0422ed9426443d0e384a734438dfe 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2566,7 +2566,9 @@ class NoTrackDoubleFieldsForSerializerScope { |
} |
} |
~NoTrackDoubleFieldsForSerializerScope() { |
- FLAG_track_double_fields = flag_; |
+ if (Serializer::enabled()) { |
+ FLAG_track_double_fields = flag_; |
+ } |
} |
private: |