| 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);
|
|
|
|
|