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

Unified Diff: src/objects.cc

Issue 2919063002: [modules] Teach JSObject::ReferencesObject about module contexts. (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | 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 5e2434ac36c0939e2ddbd343035c74c38a78b156..caa6996a824c3acb3492c0f5eb02bdff65056409 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -7387,7 +7387,8 @@ bool JSObject::ReferencesObject(Object* obj) {
}
// Check the context extension (if any) if it can have references.
- if (context->has_extension() && !context->IsCatchContext()) {
+ if (context->has_extension() && !context->IsCatchContext() &&
+ !context->IsModuleContext()) {
// With harmony scoping, a JSFunction may have a script context.
// TODO(mvstanton): walk into the ScopeInfo.
if (context->IsScriptContext()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698