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

Unified Diff: sky/framework/inspector/indexeddb-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/indexeddb-agent.sky
diff --git a/sky/framework/inspector/indexeddb-agent.sky b/sky/framework/inspector/indexeddb-agent.sky
index 9063860f2f8b168cec188b54452f38b7e3b668e1..1aaa8b4380ee4a31b3224e06a98f445acd8e9936 100644
--- a/sky/framework/inspector/indexeddb-agent.sky
+++ b/sky/framework/inspector/indexeddb-agent.sky
@@ -1,11 +1,10 @@
<script>
-function IndexedDB() {
+class IndexedDB {
+ // Needed to make the inspector not throw an exception.
+ requestDatabaseNames() {
+ return { "databaseNames": [] };
+ }
}
-// Needed to make the inspector not throw an exception.
-IndexedDB.prototype.requestDatabaseNames = function() {
- return { "databaseNames": [] };
-};
-
module.exports = IndexedDB;
</script>

Powered by Google App Engine
This is Rietveld 408576698