| Index: src/contexts.cc
|
| diff --git a/src/contexts.cc b/src/contexts.cc
|
| index 4fb3c833b773195f706c52bcec56cddd8d932ebe..7dd7f4822ecdfaa3099caaacc7ea59de811fa098 100644
|
| --- a/src/contexts.cc
|
| +++ b/src/contexts.cc
|
| @@ -74,7 +74,8 @@ Context* Context::declaration_context() {
|
| Context* current = this;
|
| while (!current->is_declaration_context()) {
|
| current = current->previous();
|
| - DCHECK(current->closure() == closure());
|
| + // Note: the closure may change while finding the declaration context,
|
| + // e.g., for sloppy direct eval
|
| }
|
| return current;
|
| }
|
|
|