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({
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);