{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/718","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/718/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/718/events","html_url":"https://github.com/systemjs/systemjs/issues/718","id":102480264,"number":718,"title":"import of function returns an object","user":{"login":"smcmurray","id":1036479,"avatar_url":"https://avatars.githubusercontent.com/u/1036479?v=3","gravatar_id":"","url":"https://api.github.com/users/smcmurray","html_url":"https://github.com/smcmurray","followers_url":"https://api.github.com/users/smcmurray/followers","following_url":"https://api.github.com/users/smcmurray/following{/other_user}","gists_url":"https://api.github.com/users/smcmurray/gists{/gist_id}","starred_url":"https://api.github.com/users/smcmurray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smcmurray/subscriptions","organizations_url":"https://api.github.com/users/smcmurray/orgs","repos_url":"https://api.github.com/users/smcmurray/repos","events_url":"https://api.github.com/users/smcmurray/events{/privacy}","received_events_url":"https://api.github.com/users/smcmurray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-21T23:33:47Z","updated_at":"2015-08-23T15:47:13Z","closed_at":null,"body":"System.import is handing me an object, even though I imported a function.\r\n\r\n````\r\nSystem.import('module.js').then(function(foo){\r\n  foo(bar);\r\n})\r\n````\r\n\r\nIf I examime foo, it is an object, not a function.\r\n\r\nmodule.js is defined as:\r\n\r\n````\r\nexport default function(){\r\n...\r\n};\r\n````"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/133868615","html_url":"https://github.com/systemjs/systemjs/issues/718#issuecomment-133868615","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/718","id":133868615,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T15:47:13Z","updated_at":"2015-08-23T15:47:13Z","body":"The behaviour here is by design. System.import will provide the namespace object for ES6 modules, this is the same as `import * as foo from 'module.js'`."}}