Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: test/cctest/test-api.cc

Side-by-side diff isn't available for this file because of its large size.
Issue 2475433008: Set global proxy internal field count based on the global object template. (Closed)
Patch Set: Address comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index ee202c2e997216fcf68d285b3450bbfbc4ac60f7..e75023f6bd2511b59ec429f524969338dcdf2b5d 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -25983,8 +25983,9 @@ TEST(InternalFieldsOnGlobalProxy) {
v8::HandleScope scope(isolate);
v8::Local<v8::ObjectTemplate> obj_template = v8::ObjectTemplate::New(isolate);
+ obj_template->SetInternalFieldCount(1);
v8::Local<v8::Context> context = Context::New(isolate, nullptr, obj_template);
v8::Local<v8::Object> global = context->Global();
- CHECK_EQ(v8::Context::kProxyInternalFieldCount, global->InternalFieldCount());
+ CHECK_EQ(1, global->InternalFieldCount());
}
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698