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

Unified Diff: third_party/WebKit/Source/devtools/front_end/formatter_worker/FormatterWorker.js

Issue 2570263002: DevTools: introduce API for the Common.FormatterWorkerPool. (Closed)
Patch Set: address comments Created 4 years 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/formatter_worker/FormatterWorker.js
diff --git a/third_party/WebKit/Source/devtools/front_end/formatter_worker/FormatterWorker.js b/third_party/WebKit/Source/devtools/front_end/formatter_worker/FormatterWorker.js
index 45ced4b34388b66019f81bd8e67f46f21b3b18a3..bfc5fe5f99717407917843deb21e7b3fb6e7011b 100644
--- a/third_party/WebKit/Source/devtools/front_end/formatter_worker/FormatterWorker.js
+++ b/third_party/WebKit/Source/devtools/front_end/formatter_worker/FormatterWorker.js
@@ -78,8 +78,8 @@ self.onmessage = function(event) {
case 'evaluatableJavaScriptSubstring':
FormatterWorker.evaluatableJavaScriptSubstring(params.content);
break;
- case 'relaxedJSONParser':
- FormatterWorker.relaxedJSONParser(params.content);
+ case 'parseJSONRelaxed':
+ FormatterWorker.parseJSONRelaxed(params.content);
break;
default:
console.error('Unsupport method name: ' + method);
@@ -89,7 +89,7 @@ self.onmessage = function(event) {
/**
* @param {string} content
*/
-FormatterWorker.relaxedJSONParser = function(content) {
+FormatterWorker.parseJSONRelaxed = function(content) {
postMessage(FormatterWorker.RelaxedJSONParser.parse(content));
};

Powered by Google App Engine
This is Rietveld 408576698