Use single quotes inside EM_ASM
This commit is contained in:
parent
1aae564da3
commit
b26de68a67
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user