Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 0bae94e219dfcb7a5f57f4ecc51fbd4c4ff5a263..ebfd8d54786f1cf1f9762047850513342b35c6f3 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -628,7 +628,11 @@ UNINITIALIZED_DEPENDENT_TEST(CustomContextDeserialization, |
root = |
deserializer.DeserializePartial(isolate, global_proxy, |
&outdated_contexts).ToHandleChecked(); |
- CHECK_EQ(3, outdated_contexts->length()); |
+ if (FLAG_global_var_shortcuts) { |
+ CHECK_EQ(5, outdated_contexts->length()); |
+ } else { |
+ CHECK_EQ(3, outdated_contexts->length()); |
+ } |
CHECK(root->IsContext()); |
Handle<Context> context = Handle<Context>::cast(root); |
CHECK(context->global_proxy() == *global_proxy); |