diff options
Diffstat (limited to 'deps/v8/test/cctest/test-serialize.cc')
-rw-r--r-- | deps/v8/test/cctest/test-serialize.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/v8/test/cctest/test-serialize.cc b/deps/v8/test/cctest/test-serialize.cc index 0bae94e219..bf36081201 100644 --- a/deps/v8/test/cctest/test-serialize.cc +++ b/deps/v8/test/cctest/test-serialize.cc @@ -33,7 +33,7 @@ #include "src/bootstrapper.h" #include "src/compilation-cache.h" -#include "src/debug.h" +#include "src/debug/debug.h" #include "src/heap/spaces.h" #include "src/objects.h" #include "src/parser.h" @@ -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); |