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

Unified Diff: sky/framework/inspector/worker-agent.sky

Issue 837933003: Convert the inspector framework to use ES6 classes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove empty ctors Created 5 years, 11 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: sky/framework/inspector/worker-agent.sky
diff --git a/sky/framework/inspector/worker-agent.sky b/sky/framework/inspector/worker-agent.sky
index 580b6b3d751a72a151197800e0c656521fb5d9e3..58a726893f967287af959b1af6cae853a0baf48a 100644
--- a/sky/framework/inspector/worker-agent.sky
+++ b/sky/framework/inspector/worker-agent.sky
@@ -1,12 +1,11 @@
<script>
-function WorkerAgent() {
+class WorkerAgent {
+ canInspectWorkers() {
+ return {
+ result: false
+ };
+ }
}
-WorkerAgent.prototype.canInspectWorkers = function() {
- return {
- result: false
- };
-};
-
module.exports = WorkerAgent;
</script>
« sky/framework/inspector/css-agent.sky ('K') | « sky/framework/inspector/runtime-agent.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698