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

Unified Diff: src/contexts.cc

Issue 2345823002: [modules] Turn JSModule into Module. (Closed)
Patch Set: Address comments. Created 4 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 | « src/contexts.h ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/contexts.cc
diff --git a/src/contexts.cc b/src/contexts.cc
index 1e6fb6591dd6ec0a033cce0e2c7780959bb9af21..3447b42f47dc32d3f37055fc36d9fa30f365ab43 100644
--- a/src/contexts.cc
+++ b/src/contexts.cc
@@ -124,12 +124,12 @@ ScopeInfo* Context::scope_info() {
return ScopeInfo::cast(object);
}
-JSModule* Context::module() {
+Module* Context::module() {
Context* current = this;
while (!current->IsModuleContext()) {
current = current->previous();
}
- return JSModule::cast(current->extension());
+ return Module::cast(current->extension());
}
String* Context::catch_name() {
« no previous file with comments | « src/contexts.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698