Chromium Code Reviews| Index: src/ast/scopes.h |
| diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
| index d97f6209f164c2a74ac6db0e0ed820ac2e5aeda5..6486bbd2fccfcf0272d8001d7ea057e2bf642c4c 100644 |
| --- a/src/ast/scopes.h |
| +++ b/src/ast/scopes.h |
| @@ -199,7 +199,10 @@ class Scope: public ZoneObject { |
| // Scope-specific info. |
| // Inform the scope and outer scopes that the corresponding code contains an |
| - // eval call. |
| + // eval call. We don't record eval calls from innner scopes in the outer most |
| + // script scope, as we only see those when parsing eagerly. If we recorded the |
| + // calls then, the outer most script scope would look differently depending on |
|
marja
2016/09/07 09:10:13
-> look different
|
| + // whether we parsed eagerly or not which is undesirable. |
| void RecordEvalCall() { |
| scope_calls_eval_ = true; |
| inner_scope_calls_eval_ = true; |