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

Unified Diff: src/objects.cc

Issue 1381543005: [cross-context] create new function prototypes in the context of the function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unused code Created 5 years, 3 months 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 | « no previous file | test/mjsunit/cross-realm-filtering.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index df526d5bd7ce23abeb2b085c9488172180f8511a..b1291911e83184dc652a5ea350a0cd7e74e195fa 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10824,7 +10824,7 @@ void JSFunction::SetPrototype(Handle<JSFunction> function,
new_map->set_non_instance_prototype(true);
Isolate* isolate = new_map->GetIsolate();
construct_prototype = handle(
- isolate->context()->native_context()->initial_object_prototype(),
+ function->context()->native_context()->initial_object_prototype(),
isolate);
} else {
function->map()->set_non_instance_prototype(false);
« no previous file with comments | « no previous file | test/mjsunit/cross-realm-filtering.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698