{"action":"created","issue":{"url":"https://api.github.com/repos/bitpay/bitcore/issues/1168","labels_url":"https://api.github.com/repos/bitpay/bitcore/issues/1168/labels{/name}","comments_url":"https://api.github.com/repos/bitpay/bitcore/issues/1168/comments","events_url":"https://api.github.com/repos/bitpay/bitcore/issues/1168/events","html_url":"https://github.com/bitpay/bitcore/issues/1168","id":65516521,"number":1168,"title":"Bitcore not working when included in a web worker","user":{"login":"ppratscher","id":1674920,"avatar_url":"https://avatars.githubusercontent.com/u/1674920?v=3","gravatar_id":"","url":"https://api.github.com/users/ppratscher","html_url":"https://github.com/ppratscher","followers_url":"https://api.github.com/users/ppratscher/followers","following_url":"https://api.github.com/users/ppratscher/following{/other_user}","gists_url":"https://api.github.com/users/ppratscher/gists{/gist_id}","starred_url":"https://api.github.com/users/ppratscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppratscher/subscriptions","organizations_url":"https://api.github.com/users/ppratscher/orgs","repos_url":"https://api.github.com/users/ppratscher/repos","events_url":"https://api.github.com/users/ppratscher/events{/privacy}","received_events_url":"https://api.github.com/users/ppratscher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-31T18:30:49Z","updated_at":"2015-04-01T06:17:00Z","closed_at":"2015-03-31T21:12:07Z","body":"Bitcore does not seem to work when it is included in a web worker.\r\n\r\nI am using the following code to initialize bitcore in the worker:\r\n```javascript\r\nvar Window = function(){};\r\nvar window = new Window();\r\nvar Object = function(){};\r\nvar object = new Window();\r\nimportScripts('bitcore.js');\r\nbitcore = require('bitcore');\r\n```\r\n\r\nThis throws the following error:\r\nUncaught TypeError: Cannot read property 'prototype' of undefined on line 36565 in bitcore.js.\r\n\r\nI am using version 0.11.5 of bitcore (installed via bower install bitcore)\r\n"},"comment":{"url":"https://api.github.com/repos/bitpay/bitcore/issues/comments/88365499","html_url":"https://github.com/bitpay/bitcore/issues/1168#issuecomment-88365499","issue_url":"https://api.github.com/repos/bitpay/bitcore/issues/1168","id":88365499,"user":{"login":"ppratscher","id":1674920,"avatar_url":"https://avatars.githubusercontent.com/u/1674920?v=3","gravatar_id":"","url":"https://api.github.com/users/ppratscher","html_url":"https://github.com/ppratscher","followers_url":"https://api.github.com/users/ppratscher/followers","following_url":"https://api.github.com/users/ppratscher/following{/other_user}","gists_url":"https://api.github.com/users/ppratscher/gists{/gist_id}","starred_url":"https://api.github.com/users/ppratscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppratscher/subscriptions","organizations_url":"https://api.github.com/users/ppratscher/orgs","repos_url":"https://api.github.com/users/ppratscher/repos","events_url":"https://api.github.com/users/ppratscher/events{/privacy}","received_events_url":"https://api.github.com/users/ppratscher/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T06:17:00Z","updated_at":"2015-04-01T06:17:00Z","body":"super, that did the trick, thanks a lot!"}}