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

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: prevent extensions 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
« no previous file with comments | « sky/framework/inspector/runtime-agent.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..92201c0f27656def321861cd77fe3be831d20b12 100644
--- a/sky/framework/inspector/worker-agent.sky
+++ b/sky/framework/inspector/worker-agent.sky
@@ -1,12 +1,15 @@
<script>
-function WorkerAgent() {
-}
+class WorkerAgent {
+ constructor() {
+ Object.preventExtensions(this);
+ }
-WorkerAgent.prototype.canInspectWorkers = function() {
- return {
- result: false
- };
-};
+ canInspectWorkers() {
+ return {
+ result: false
+ };
+ }
+}
module.exports = WorkerAgent;
</script>
« no previous file with comments | « sky/framework/inspector/runtime-agent.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698