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

Unified Diff: src/api.cc

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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | src/api-natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index b7a5b2e4ec45e1642a6ad578e9f98604f490d806..148b5079d8291d04d4a008f942b50004f1229222 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -6076,7 +6076,7 @@ static i::Handle<ObjectType> CreateEnvironment(
*Utils::OpenHandle(*global_template));
proxy_template->SetInternalFieldCount(
- v8::Context::kProxyInternalFieldCount);
+ global_template->InternalFieldCount());
// Migrate security handlers from global_template to
// proxy_template. Temporarily removing access check
« no previous file with comments | « include/v8.h ('k') | src/api-natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698