Use single quotes inside EM_ASM

This commit is contained in:
Frank Denis 2017-09-11 02:13:38 +02:00
parent 1aae564da3
commit b26de68a67

View File

@ -94,8 +94,8 @@ randombytes_stir(void)
EM_ASM({ EM_ASM({
if (Module.getRandomValue === undefined) { if (Module.getRandomValue === undefined) {
try { try {
var window_ = "object" === typeof window ? window : self, var window_ = 'object' === typeof window ? window : self,
crypto_ = typeof window_.crypto !== "undefined" ? window_.crypto : window_.msCrypto, crypto_ = typeof window_.crypto !== 'undefined' ? window_.crypto : window_.msCrypto,
randomValuesStandard = function() { randomValuesStandard = function() {
var buf = new Uint32Array(1); var buf = new Uint32Array(1);
crypto_.getRandomValues(buf); crypto_.getRandomValues(buf);