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

Unified Diff: src/api.cc

Issue 2472573004: Reland "Create internal fields on global proxy objects" (Closed)
Patch Set: rebase 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 ad41d819b7f094ddda7834f5ca57377ae8184f03..b7a5b2e4ec45e1642a6ad578e9f98604f490d806 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -6075,6 +6075,9 @@ static i::Handle<ObjectType> CreateEnvironment(
proxy_constructor->set_prototype_template(
*Utils::OpenHandle(*global_template));
+ proxy_template->SetInternalFieldCount(
+ v8::Context::kProxyInternalFieldCount);
+
// Migrate security handlers from global_template to
// proxy_template. Temporarily removing access check
// information from the global template.
« 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