Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 41833caef2b667549a5b9c0a581c4c5659151d6c..184bad7684e16ed356fe60d9763493f552fbdef2 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2791,10 +2791,9 @@ Genesis::Genesis(Isolate* isolate, |
if (!InstallExperimentalNatives()) return; |
InitializeExperimentalGlobal(); |
- // We can't (de-)serialize typed arrays currently, but we are lucky: The state |
- // of the random number generator needs no initialization during snapshot |
- // creation time and we don't need trigonometric functions then. |
- if (!isolate->serializer_enabled()) { |
+ // The serializer cannot serialize typed arrays. Reset those typed arrays |
+ // for each new context. |
+ { |
// Initially seed the per-context random number generator using the |
// per-isolate random number generator. |
const int num_elems = 2; |