{"action":"opened","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4871","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4871/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4871/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4871/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4871","id":135614060,"number":4871,"title":"ExampleJSGenerator throwing error","user":{"login":"TomByrne","id":274228,"avatar_url":"https://avatars.githubusercontent.com/u/274228?v=3","gravatar_id":"","url":"https://api.github.com/users/TomByrne","html_url":"https://github.com/TomByrne","followers_url":"https://api.github.com/users/TomByrne/followers","following_url":"https://api.github.com/users/TomByrne/following{/other_user}","gists_url":"https://api.github.com/users/TomByrne/gists{/gist_id}","starred_url":"https://api.github.com/users/TomByrne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomByrne/subscriptions","organizations_url":"https://api.github.com/users/TomByrne/orgs","repos_url":"https://api.github.com/users/TomByrne/repos","events_url":"https://api.github.com/users/TomByrne/events{/privacy}","received_events_url":"https://api.github.com/users/TomByrne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-23T02:55:24Z","updated_at":"2016-02-23T02:55:24Z","closed_at":null,"body":"I'm attempting to create a custom JS generator.\r\nI've started with the ExampleJSGenerator class, but it is unable to build my project (having trouble with haxe.Resource).\r\n\r\nThe following code throws an error when attempting to convert an init expression to JS (Line 233):\r\n`api.generateStatement(e)`\r\n\r\nI'm using Haxe 3.2.1, it is an OpenFL project.\r\n\r\nIt has trouble converting this expression to JS:\r\n`{ expr => TBinop(OpAssign,{ expr => TField({ expr => TTypeExpr(TClassDecl(haxe.Resource)), t => TType(Class<haxe.Resource>,[]), pos => #pos(C:\\_sdks\\haxe\\3.2\\haxe\\std/haxe/Resource.hx:92: characters 2-9) },FStatic(haxe.Resource,content)), t => TInst(Array,[TAnonymous(<anonymous>)]), pos => #pos(C:\\_sdks\\haxe\\3.2\\haxe\\std/haxe/Resource.hx:92: characters 2-9) },{ expr => TCall({ expr => TLocal({ meta => [{ name => :unbound, params => [], pos => #pos((unknown)) }], name => __resources__, extra => null, $ => #abstract, t => TFun([],TMono(<mono>)), id => 58955, capture => false }), t => TFun([],TMono(<mono>)), pos => #pos(C:\\_sdks\\haxe\\3.2\\haxe\\std/haxe/Resource.hx:92: characters 20-33) },[]), t => TInst(Array,[TAnonymous(<anonymous>)]), pos => #pos(C:\\_sdks\\haxe\\3.2\\haxe\\std/haxe/Resource.hx:92: characters 20-35) }), t => TInst(Array,[TAnonymous(<anonymous>)]), pos => #pos(C:\\_sdks\\haxe\\3.2\\haxe\\std/haxe/Resource.hx:92: characters 2-35) }`"}}