{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/4256","repository_url":"https://api.github.com/repos/kripken/emscripten","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/4256/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/4256/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/4256/events","html_url":"https://github.com/kripken/emscripten/issues/4256","id":149450396,"number":4256,"title":"Running emscripten_trace_configure from trace.h in a worker fails with \"Worker is not defined\"","user":{"login":"michalc","id":13877,"avatar_url":"https://avatars.githubusercontent.com/u/13877?v=3","gravatar_id":"","url":"https://api.github.com/users/michalc","html_url":"https://github.com/michalc","followers_url":"https://api.github.com/users/michalc/followers","following_url":"https://api.github.com/users/michalc/following{/other_user}","gists_url":"https://api.github.com/users/michalc/gists{/gist_id}","starred_url":"https://api.github.com/users/michalc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalc/subscriptions","organizations_url":"https://api.github.com/users/michalc/orgs","repos_url":"https://api.github.com/users/michalc/repos","events_url":"https://api.github.com/users/michalc/events{/privacy}","received_events_url":"https://api.github.com/users/michalc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-19T12:44:30Z","updated_at":"2016-04-19T17:33:27Z","closed_at":null,"body":"It looks like library_trace.js tries to load js file as a worker from the tracing server at https://github.com/kripken/emscripten/blob/07b87426f898d6e9c677db291d9088c839197291/src/library_trace.js#L59\r\n\r\nThis fails when run in a web-worker since it doesn't have the ability to create another web-worker. For reference, I'm not using BUILD_AS_WORKER."},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/212030181","html_url":"https://github.com/kripken/emscripten/issues/4256#issuecomment-212030181","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/4256","id":212030181,"user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T17:33:27Z","updated_at":"2016-04-19T17:33:27Z","body":"Which browser is this on? It's a known [bug on chrome](https://bugs.chromium.org/p/chromium/issues/detail?id=31666&q=nested%20workers&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified) that they haven't implemented nested workers yet (their [intent to implement](https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/1HveyWzj9CM/Uo4AtKBSZt0J) is 2 years old at this point). Looks like [not on Safari either](https://bugs.webkit.org/show_bug.cgi?id=22723)."}}