Commit 7c3ddd2c authored by yangguo's avatar yangguo Committed by Commit bot

[debug] use correct language mode when parsing eval for scope iterator.

R=mstarzinger@chromium.org
BUG=v8:5207

Review-Url: https://codereview.chromium.org/2159113002
Cr-Commit-Position: refs/heads/master@{#37857}
parent 6f68f30b
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment