{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/2596","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/2596/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/2596/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/2596/events","html_url":"https://github.com/kripken/emscripten/issues/2596","id":39013467,"number":2596,"title":"EM_ASM() et al. should not eval()","user":{"login":"juj","id":225351,"avatar_url":"https://avatars.githubusercontent.com/u/225351?v=3","gravatar_id":"","url":"https://api.github.com/users/juj","html_url":"https://github.com/juj","followers_url":"https://api.github.com/users/juj/followers","following_url":"https://api.github.com/users/juj/following{/other_user}","gists_url":"https://api.github.com/users/juj/gists{/gist_id}","starred_url":"https://api.github.com/users/juj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juj/subscriptions","organizations_url":"https://api.github.com/users/juj/orgs","repos_url":"https://api.github.com/users/juj/repos","events_url":"https://api.github.com/users/juj/events{/privacy}","received_events_url":"https://api.github.com/users/juj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kripken/emscripten/labels/performance","name":"performance","color":"8f45f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-07-29T17:36:53Z","updated_at":"2015-04-02T21:30:16Z","closed_at":null,"body":"Remembering a discussion from while back with @kripken and I now notice we don't yet have an issue about this. Currently the EM_ASM() family of macros generate statements that use `eval()`, but this is not ideal, since\r\n  - it's against Chrome Security Policies, and privileged applications cannot eval.\r\n  - it gives slower performance compared to just statically calling to a generated function.\r\n\r\nWe should make EM_ASM() perform a normal function call instead out of asm.js.\r\n\r\nAlso, @kripken, can you remind the biggest hurdles against making EM_ASM() allow the user to write actual inline asm.js code (if he had super-wizard skills)?"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/89049993","html_url":"https://github.com/kripken/emscripten/issues/2596#issuecomment-89049993","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/2596","id":89049993,"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":"2015-04-02T21:30:16Z","updated_at":"2015-04-02T21:30:16Z","body":"Working on this now."}}