Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 041d5bbe9df13eeb4badb86778f323b8d66ecc20..d0cd8670bbb2b2ceef748fa11a8cf506fef22f15 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -2384,6 +2384,7 @@ TEST(SnapshotCreatorIncludeGlobalProxy) { |
v8::ObjectTemplate::New(isolate); |
v8::Local<v8::FunctionTemplate> callback = |
v8::FunctionTemplate::New(isolate, SerializedCallback); |
+ global_template->SetInternalFieldCount(3); |
global_template->Set(v8_str("f"), callback); |
global_template->SetHandler(v8::NamedPropertyHandlerConfiguration( |
NamedPropertyGetterForSerialization)); |
@@ -2455,6 +2456,7 @@ TEST(SnapshotCreatorIncludeGlobalProxy) { |
} |
v8::Local<v8::Object> global = context->Global(); |
+ CHECK_EQ(3, global->InternalFieldCount()); |
context->DetachGlobal(); |
// New context, but reuse global proxy. |