{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4138","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4138/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4138/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4138/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4138","id":66579198,"number":4138,"title":"The fallback for ArrayBuffer triggers when it shouldn't on a JS Web Worker Thread","user":{"login":"Drakim","id":7129377,"avatar_url":"https://avatars.githubusercontent.com/u/7129377?v=3","gravatar_id":"","url":"https://api.github.com/users/Drakim","html_url":"https://github.com/Drakim","followers_url":"https://api.github.com/users/Drakim/followers","following_url":"https://api.github.com/users/Drakim/following{/other_user}","gists_url":"https://api.github.com/users/Drakim/gists{/gist_id}","starred_url":"https://api.github.com/users/Drakim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drakim/subscriptions","organizations_url":"https://api.github.com/users/Drakim/orgs","repos_url":"https://api.github.com/users/Drakim/repos","events_url":"https://api.github.com/users/Drakim/events{/privacy}","received_events_url":"https://api.github.com/users/Drakim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/platform-javascript","name":"platform-javascript","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"ncannasse","id":1022912,"avatar_url":"https://avatars.githubusercontent.com/u/1022912?v=3","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/1","html_url":"https://github.com/HaxeFoundation/haxe/milestones/3.2","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/1/labels","id":343008,"number":1,"title":"3.2","description":"","creator":{"login":"issuesbot","id":4543331,"avatar_url":"https://avatars.githubusercontent.com/u/4543331?v=3","gravatar_id":"","url":"https://api.github.com/users/issuesbot","html_url":"https://github.com/issuesbot","followers_url":"https://api.github.com/users/issuesbot/followers","following_url":"https://api.github.com/users/issuesbot/following{/other_user}","gists_url":"https://api.github.com/users/issuesbot/gists{/gist_id}","starred_url":"https://api.github.com/users/issuesbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/issuesbot/subscriptions","organizations_url":"https://api.github.com/users/issuesbot/orgs","repos_url":"https://api.github.com/users/issuesbot/repos","events_url":"https://api.github.com/users/issuesbot/events{/privacy}","received_events_url":"https://api.github.com/users/issuesbot/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":570,"state":"open","created_at":"2013-05-28T03:42:24Z","updated_at":"2015-05-12T06:26:26Z","due_on":"2015-03-21T23:00:00Z","closed_at":null},"comments":17,"created_at":"2015-04-06T10:43:17Z","updated_at":"2015-05-12T08:01:11Z","closed_at":"2015-05-12T06:26:26Z","body":"Fairly simple bug, it appears that this little rascal is causing trouble when on a web worker thread, probably because window and/or global is different in a web worker.\r\n\r\n(std\\js\\html\\compat\\ArrayBuffer.hx, line 56)\r\n`var ArrayBuffer = __js__('typeof(window) != \"undefined\" && window.ArrayBuffer') || __js__('typeof(global) != \"undefined\" && global.ArrayBuffer') || ArrayBuffer;`\r\n\r\nSo what happens is that js_html_compat_ArrayBuffer replacement is used instead, when the superior ArrayBuffer is available. Same might be true for other classes if they use the same code."},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/101180143","html_url":"https://github.com/HaxeFoundation/haxe/issues/4138#issuecomment-101180143","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4138","id":101180143,"user":{"login":"andyli","id":103977,"avatar_url":"https://avatars.githubusercontent.com/u/103977?v=3","gravatar_id":"","url":"https://api.github.com/users/andyli","html_url":"https://github.com/andyli","followers_url":"https://api.github.com/users/andyli/followers","following_url":"https://api.github.com/users/andyli/following{/other_user}","gists_url":"https://api.github.com/users/andyli/gists{/gist_id}","starred_url":"https://api.github.com/users/andyli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyli/subscriptions","organizations_url":"https://api.github.com/users/andyli/orgs","repos_url":"https://api.github.com/users/andyli/repos","events_url":"https://api.github.com/users/andyli/events{/privacy}","received_events_url":"https://api.github.com/users/andyli/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T08:01:11Z","updated_at":"2015-05-12T08:01:11Z","body":"Ummm, sounds hard to find a perfect solution. \r\nNevermind, I will leave it there for now :)"}}