{"action":"created","issue":{"url":"https://api.github.com/repos/openpgpjs/openpgpjs/issues/454","repository_url":"https://api.github.com/repos/openpgpjs/openpgpjs","labels_url":"https://api.github.com/repos/openpgpjs/openpgpjs/issues/454/labels{/name}","comments_url":"https://api.github.com/repos/openpgpjs/openpgpjs/issues/454/comments","events_url":"https://api.github.com/repos/openpgpjs/openpgpjs/issues/454/events","html_url":"https://github.com/openpgpjs/openpgpjs/issues/454","id":154155349,"number":454,"title":"openpgp.js does not work in strict mode environment","user":{"login":"speigg","id":507127,"avatar_url":"https://avatars.githubusercontent.com/u/507127?v=3","gravatar_id":"","url":"https://api.github.com/users/speigg","html_url":"https://github.com/speigg","followers_url":"https://api.github.com/users/speigg/followers","following_url":"https://api.github.com/users/speigg/following{/other_user}","gists_url":"https://api.github.com/users/speigg/gists{/gist_id}","starred_url":"https://api.github.com/users/speigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speigg/subscriptions","organizations_url":"https://api.github.com/users/speigg/orgs","repos_url":"https://api.github.com/users/speigg/repos","events_url":"https://api.github.com/users/speigg/events{/privacy}","received_events_url":"https://api.github.com/users/speigg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T03:59:43Z","updated_at":"2016-05-11T06:24:15Z","closed_at":null,"body":"I'm trying to use `openpgpjs` in nativescript, which uses commonjs modules (but is not a nodejs environment). The nativescript runtime executes all javascript in strict mode.\r\n\r\nUnfortunately, openpgp.js does not work when evaluated in a strict mode environment. Specifically, the module `asmcrypto-lite` causes the following error `TypeError: undefined is not an object (evaluating 'global.Float64Array')`. This happens because the `global` variable used in `asmcrypto-lite` is determined with: `function() {return this}`, which returns undefined in strict mode. Ideally, that function should be replaced with an expression that works in strict mode. I believe this is the only thing which is broken when executing in strict mode. "},"comment":{"url":"https://api.github.com/repos/openpgpjs/openpgpjs/issues/comments/218372604","html_url":"https://github.com/openpgpjs/openpgpjs/issues/454#issuecomment-218372604","issue_url":"https://api.github.com/repos/openpgpjs/openpgpjs/issues/454","id":218372604,"user":{"login":"tanx","id":1374174,"avatar_url":"https://avatars.githubusercontent.com/u/1374174?v=3","gravatar_id":"","url":"https://api.github.com/users/tanx","html_url":"https://github.com/tanx","followers_url":"https://api.github.com/users/tanx/followers","following_url":"https://api.github.com/users/tanx/following{/other_user}","gists_url":"https://api.github.com/users/tanx/gists{/gist_id}","starred_url":"https://api.github.com/users/tanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanx/subscriptions","organizations_url":"https://api.github.com/users/tanx/orgs","repos_url":"https://api.github.com/users/tanx/repos","events_url":"https://api.github.com/users/tanx/events{/privacy}","received_events_url":"https://api.github.com/users/tanx/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T06:24:15Z","updated_at":"2016-05-11T06:24:15Z","body":"Good catch! If you could provide a PR to our asmcrypto fork, I will ask to merge it upstream as well. Thx.\r\n\r\nhttps://github.com/openpgpjs/asmcrypto-lite"}}