{"action":"created","issue":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/140","labels_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/140/comments","events_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/140/events","html_url":"https://github.com/dfahlander/Dexie.js/issues/140","id":108461939,"number":140,"title":"TypeScript & ES6 & extends","user":{"login":"wgebczyk","id":1898040,"avatar_url":"https://avatars.githubusercontent.com/u/1898040?v=3","gravatar_id":"","url":"https://api.github.com/users/wgebczyk","html_url":"https://github.com/wgebczyk","followers_url":"https://api.github.com/users/wgebczyk/followers","following_url":"https://api.github.com/users/wgebczyk/following{/other_user}","gists_url":"https://api.github.com/users/wgebczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/wgebczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wgebczyk/subscriptions","organizations_url":"https://api.github.com/users/wgebczyk/orgs","repos_url":"https://api.github.com/users/wgebczyk/repos","events_url":"https://api.github.com/users/wgebczyk/events{/privacy}","received_events_url":"https://api.github.com/users/wgebczyk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-26T12:45:52Z","updated_at":"2015-10-29T15:08:08Z","closed_at":null,"body":"Based on your example:\r\n```\r\nexport class HeroCampDB extends Dexie {\r\n  ...\r\n  constructor() {\r\n    super(\"HeroCampDB\");\r\n    ...\r\n    this.open();\r\n  }\r\n}\r\n```\r\nThe problem in on IE Edge 13. The error \"Assignment to read-only properties is not allowed in strict mode\". It tries to assign [this.name = dbName], but property name on Dexie function is already set.\r\n\r\nIn general class Zzz extends [function] results in name being used.\r\n\r\nDo you plan class ES6 based Dexie code?"},"comment":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/comments/152208737","html_url":"https://github.com/dfahlander/Dexie.js/issues/140#issuecomment-152208737","issue_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/140","id":152208737,"user":{"login":"dfahlander","id":6791329,"avatar_url":"https://avatars.githubusercontent.com/u/6791329?v=3","gravatar_id":"","url":"https://api.github.com/users/dfahlander","html_url":"https://github.com/dfahlander","followers_url":"https://api.github.com/users/dfahlander/followers","following_url":"https://api.github.com/users/dfahlander/following{/other_user}","gists_url":"https://api.github.com/users/dfahlander/gists{/gist_id}","starred_url":"https://api.github.com/users/dfahlander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfahlander/subscriptions","organizations_url":"https://api.github.com/users/dfahlander/orgs","repos_url":"https://api.github.com/users/dfahlander/repos","events_url":"https://api.github.com/users/dfahlander/events{/privacy}","received_events_url":"https://api.github.com/users/dfahlander/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T15:08:08Z","updated_at":"2015-10-29T15:08:08Z","body":"After reading briefly the [ES6 standard](http://www.ecma-international.org/ecma-262/6.0/#sec-class-definitions) for inheritance, I can't see why Edge browser would have that behavior, but I could be missing something.\r\n\r\nI tried to reproduce the error on Edge 20 on Windows 10 using the code below but it works for me after turning on es6 support using about:flags in the browser:\r\n\r\n```js\r\n\"use strict\"\r\n\r\nfunction ParentClass(dbName) {\r\n\tthis.name = dbName;\r\n}\r\n\r\nclass ChildClass extends ParentClass {\r\n\tconstructor() {\r\n\t\tsuper(\"hejsan\");\r\n\t}\r\n}\r\n\r\nalert (\"1\");\r\nvar x = new ChildClass ();\r\nalert(\"2\");\r\nalert(x.name);\r\n```\r\n"}}