{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/compat-table/issues/453","labels_url":"https://api.github.com/repos/kangax/compat-table/issues/453/labels{/name}","comments_url":"https://api.github.com/repos/kangax/compat-table/issues/453/comments","events_url":"https://api.github.com/repos/kangax/compat-table/issues/453/events","html_url":"https://github.com/kangax/compat-table/issues/453","id":59021650,"number":453,"title":"`Array.from`/`Array.of`/`Array#slice` without \"class\"","user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-26T05:29:17Z","updated_at":"2015-02-26T07:08:14Z","closed_at":null,"body":"Although `class` keyword semantics are required to *actually* subclass Array, these three methods can still be tested without it:\r\n```js\r\nfunction Foo() {}\r\nObject.setPrototypeOf(Foo, Array);\r\nFoo.prototype = Array.prototype;\r\n\r\nassert(Foo.from([1, 2]) instanceof Foo);\r\nassert(Foo.of(1, 2) instanceof Foo);\r\nassert(new Foo().slice() instanceof Foo);\r\n```\r\n\r\nI'm asking because the `es6-shim` does (or will at next publish) ensure that all of these tests pass. In `io.js`, which implements `class` but not `Array.from`, the `es6-shim` also makes these tests pass with the \"class\" syntax.\r\n\r\n- Do you think we can change the test code for these three to not require \"class\" syntax?\r\n- Is this sufficient for me to mark `es6-shim` a \"Yes\" for these 3 tests, once they all pass?"},"comment":{"url":"https://api.github.com/repos/kangax/compat-table/issues/comments/76132078","html_url":"https://github.com/kangax/compat-table/issues/453#issuecomment-76132078","issue_url":"https://api.github.com/repos/kangax/compat-table/issues/453","id":76132078,"user":{"login":"zloirock","id":2213682,"avatar_url":"https://avatars.githubusercontent.com/u/2213682?v=3","gravatar_id":"","url":"https://api.github.com/users/zloirock","html_url":"https://github.com/zloirock","followers_url":"https://api.github.com/users/zloirock/followers","following_url":"https://api.github.com/users/zloirock/following{/other_user}","gists_url":"https://api.github.com/users/zloirock/gists{/gist_id}","starred_url":"https://api.github.com/users/zloirock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zloirock/subscriptions","organizations_url":"https://api.github.com/users/zloirock/orgs","repos_url":"https://api.github.com/users/zloirock/repos","events_url":"https://api.github.com/users/zloirock/events{/privacy}","received_events_url":"https://api.github.com/users/zloirock/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T07:08:14Z","updated_at":"2015-02-26T07:08:14Z","body":"> for these three\r\n\r\nWhy only for 3? :) Most `Array.prototype` methods uses `ArraySpeciesCreate` and based on `@@species`. I think, only for static methods or for all statics + prototype."}}