From b26de68a6751ce4ae1bdaf718da15e054bfdcc6c Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 11 Sep 2017 02:13:38 +0200 Subject: [PATCH] Use single quotes inside EM_ASM --- src/libsodium/randombytes/randombytes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/randombytes/randombytes.c b/src/libsodium/randombytes/randombytes.c index 54888223..57b46b50 100644 --- a/src/libsodium/randombytes/randombytes.c +++ b/src/libsodium/randombytes/randombytes.c @@ -94,8 +94,8 @@ randombytes_stir(void) EM_ASM({ if (Module.getRandomValue === undefined) { try { - var window_ = "object" === typeof window ? window : self, - crypto_ = typeof window_.crypto !== "undefined" ? window_.crypto : window_.msCrypto, + var window_ = 'object' === typeof window ? window : self, + crypto_ = typeof window_.crypto !== 'undefined' ? window_.crypto : window_.msCrypto, randomValuesStandard = function() { var buf = new Uint32Array(1); crypto_.getRandomValues(buf);