| Index: src/debug/debug-scopes.cc
|
| diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc
|
| index 82fd1937ba2afb6b961a887cce32a2e6a4cfb368..9d21a293d202d7988f069884ee2f2cea23b0a40c 100644
|
| --- a/src/debug/debug-scopes.cc
|
| +++ b/src/debug/debug-scopes.cc
|
| @@ -97,6 +97,9 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector,
|
| DCHECK(scope_info->scope_type() == EVAL_SCOPE);
|
| info->set_eval();
|
| info->set_context(Handle<Context>(function->context()));
|
| + // Language mode may be inherited from the eval caller.
|
| + // Retrieve it from shared function info.
|
| + info->set_language_mode(shared_info->language_mode());
|
| }
|
| } else {
|
| // Inner function.
|
|
|