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

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: 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/dom-agent.sky ('k') | sky/framework/inspector/inspector.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5d37993dfc8453c7889792c9f9cd320ec9877549 100644
--- a/sky/framework/inspector/indexeddb-agent.sky
+++ b/sky/framework/inspector/indexeddb-agent.sky
@@ -1,11 +1,14 @@
<script>
-function IndexedDB() {
-}
+class IndexedDB {
+ constructor() {
+ Object.preventExtensions(this);
+ }
-// Needed to make the inspector not throw an exception.
-IndexedDB.prototype.requestDatabaseNames = function() {
- return { "databaseNames": [] };
-};
+ // Needed to make the inspector not throw an exception.
+ requestDatabaseNames() {
+ return { "databaseNames": [] };
+ }
+}
module.exports = IndexedDB;
</script>
« no previous file with comments | « sky/framework/inspector/dom-agent.sky ('k') | sky/framework/inspector/inspector.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698