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

Unified Diff: src/contexts.cc

Issue 2328283002: Revert of [modules] Basic support of exports (Closed)
Patch Set: 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/debug/debug-scopes.cc » ('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 a08fd04dbb7002c0280ed94a47765a8d82ee5604..d4910eac03d6bf38a607d7c5f992b5907fc52a0e 100644
--- a/src/contexts.cc
+++ b/src/contexts.cc
@@ -57,8 +57,7 @@
bool Context::is_declaration_context() {
- if (IsFunctionContext() || IsNativeContext() || IsScriptContext() ||
- IsModuleContext()) {
+ if (IsFunctionContext() || IsNativeContext() || IsScriptContext()) {
return true;
}
if (!IsBlockContext()) return false;
@@ -124,13 +123,6 @@
return ScopeInfo::cast(object);
}
-JSModule* Context::module() {
- Context* current = this;
- while (!current->IsModuleContext()) {
- current = current->previous();
- }
- return JSModule::cast(current->extension());
-}
String* Context::catch_name() {
DCHECK(IsCatchContext());
@@ -197,7 +189,6 @@
int* index, PropertyAttributes* attributes,
InitializationFlag* init_flag,
VariableMode* variable_mode) {
- DCHECK(!IsModuleContext());
Isolate* isolate = GetIsolate();
Handle<Context> context(this, isolate);
« no previous file with comments | « src/contexts.h ('k') | src/debug/debug-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698