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

Unified Diff: third_party/WebKit/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js

Issue 1653053002: Devtools: parse variables scopes and sourcemap them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: third_party/WebKit/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js b/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js
index 6854435711da764a06b621f7d349a6f1e0ec78b3..d71d26ed3c9265ed12c2bafdfad40aca0cab4b5c 100644
--- a/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js
+++ b/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js
@@ -44,7 +44,7 @@ FormatterWorker.JavaScriptFormatter.prototype = {
format: function()
{
var ast = acorn.parse(this._content, { ranges: false, ecmaVersion: 6 });
- var walker = new FormatterWorker.ESTreeWalker(this._beforeVisit.bind(this), this._afterVisit.bind(this));
+ var walker = new WebInspector.ESTreeWalker(this._beforeVisit.bind(this), this._afterVisit.bind(this));
walker.walk(ast);
},

Powered by Google App Engine
This is Rietveld 408576698