{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4435","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4435/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4435/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4435/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4435","id":96844078,"number":4435,"title":"js.html.DedicatedWorkerGlobalScope is not properly exposed","user":{"login":"explorigin","id":697818,"avatar_url":"https://avatars.githubusercontent.com/u/697818?v=3","gravatar_id":"","url":"https://api.github.com/users/explorigin","html_url":"https://github.com/explorigin","followers_url":"https://api.github.com/users/explorigin/followers","following_url":"https://api.github.com/users/explorigin/following{/other_user}","gists_url":"https://api.github.com/users/explorigin/gists{/gist_id}","starred_url":"https://api.github.com/users/explorigin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/explorigin/subscriptions","organizations_url":"https://api.github.com/users/explorigin/orgs","repos_url":"https://api.github.com/users/explorigin/repos","events_url":"https://api.github.com/users/explorigin/events{/privacy}","received_events_url":"https://api.github.com/users/explorigin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T15:45:16Z","updated_at":"2015-07-23T16:38:57Z","closed_at":null,"body":"In creating a web-worker, It's my understanding that we should be able to do:\r\n\r\n```haxe\r\nDedicatedWorkerGlobalScope.onmessage = function(input) { ... };\r\n```\r\n\r\nIn Haxe 3.2, I get\r\n\r\n```\r\nClass<js.html.DedicatedWorkerGlobalScope> has no field onmessage\r\n```\r\n\r\nwhich it does according to the documentation and code (https://github.com/HaxeFoundation/haxe/blob/development/std/js/html/DedicatedWorkerGlobalScope.hx).\r\n\r\nI don't think it's related but the scope types are all exposed natively by their name, which is incorrect.\r\n\r\n```haxe\r\n@:native(\"DedicatedWorkerGlobalScope\")\r\n```\r\n\r\nshould probably be \r\n\r\n```haxe\r\n@:native(\"self\")\r\n```"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/124162863","html_url":"https://github.com/HaxeFoundation/haxe/issues/4435#issuecomment-124162863","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4435","id":124162863,"user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T16:38:57Z","updated_at":"2015-07-23T16:38:57Z","body":"That field is not static, so either you're using the API wrong or the API is wrong."}}