Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Unified Diff: src/debug/debug-scopes.cc

Issue 2159113002: [debug] use correct language mode when parsing eval for scope iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698