{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2769","labels_url":"https://api.github.com/repos/babel/babel/issues/2769/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2769/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2769/events","html_url":"https://github.com/babel/babel/issues/2769","id":114741027,"number":2769,"title":"`babel.transformFromAst` doesn't work with ESTree compliant AST","user":{"login":"lhorie","id":1637573,"avatar_url":"https://avatars.githubusercontent.com/u/1637573?v=3","gravatar_id":"","url":"https://api.github.com/users/lhorie","html_url":"https://github.com/lhorie","followers_url":"https://api.github.com/users/lhorie/followers","following_url":"https://api.github.com/users/lhorie/following{/other_user}","gists_url":"https://api.github.com/users/lhorie/gists{/gist_id}","starred_url":"https://api.github.com/users/lhorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhorie/subscriptions","organizations_url":"https://api.github.com/users/lhorie/orgs","repos_url":"https://api.github.com/users/lhorie/repos","events_url":"https://api.github.com/users/lhorie/events{/privacy}","received_events_url":"https://api.github.com/users/lhorie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T04:48:45Z","updated_at":"2015-11-03T05:08:31Z","closed_at":null,"body":"```javascript\r\nvar babel = require(\"babel-core\")\r\n\r\nvar code = babel.transformFromAst({\r\n    \"type\": \"Program\",\r\n    \"body\": [\r\n        {\r\n            \"type\": \"ExpressionStatement\",\r\n            \"expression\": {\r\n                \"type\": \"Literal\",\r\n                \"value\": 1,\r\n            }\r\n        }\r\n    ],\r\n    \"sourceType\": \"script\"\r\n}).code\r\n\r\n//expected: code === \"1;\"\r\n//actual: ReferenceError: unknown: unknown node of type \"Literal\" with constructor \"Object\"\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/153239823","html_url":"https://github.com/babel/babel/issues/2769#issuecomment-153239823","issue_url":"https://api.github.com/repos/babel/babel/issues/2769","id":153239823,"user":{"login":"hzoo","id":588473,"avatar_url":"https://avatars.githubusercontent.com/u/588473?v=3","gravatar_id":"","url":"https://api.github.com/users/hzoo","html_url":"https://github.com/hzoo","followers_url":"https://api.github.com/users/hzoo/followers","following_url":"https://api.github.com/users/hzoo/following{/other_user}","gists_url":"https://api.github.com/users/hzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzoo/subscriptions","organizations_url":"https://api.github.com/users/hzoo/orgs","repos_url":"https://api.github.com/users/hzoo/repos","events_url":"https://api.github.com/users/hzoo/events{/privacy}","received_events_url":"https://api.github.com/users/hzoo/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T05:08:31Z","updated_at":"2015-11-03T05:08:31Z","body":"There are some changes from ESTree - https://github.com/babel/babel/blob/master/CHANGELOG.md#600, https://github.com/babel/babel/blob/master/CHANGELOG.md#6018. Specifically, that would be a `NumericLiteral` now."}}