You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/library.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2187,9 +2187,9 @@ addToLibrary({
2187
2187
#endif // ENVIRONMENT_MAY_BE_NODE
2188
2188
// we couldn't find a proper implementation, as Math.random() is not suitable for /dev/random, see emscripten-core/emscripten/pull/7096
2189
2189
#if ASSERTIONS
2190
-
abort("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: (array) => { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };");
2190
+
abort('no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: (array) => { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };');
2191
2191
#else
2192
-
abort("initRandomDevice");
2192
+
abort('initRandomDevice');
2193
2193
#endif
2194
2194
},
2195
2195
@@ -3198,7 +3198,7 @@ addToLibrary({
3198
3198
#endif
3199
3199
}
3200
3200
#if ASSERTIONS&&ASYNCIFY!=2// With JSPI the function stored in the table will be a wrapper.
3201
-
assert(wasmTable.get(funcPtr)==func,"JavaScript-side Wasm function table mirror is out of date!");
3201
+
assert(wasmTable.get(funcPtr)==func,'JavaScript-side Wasm function table mirror is out of date!');
Copy file name to clipboardExpand all lines: src/preamble.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -95,13 +95,13 @@ function assert(condition, text) {
95
95
// builds with assertions.
96
96
#if !hasExportedSymbol('malloc')
97
97
function_malloc(){
98
-
abort("malloc() called but not included in the build - add '_malloc' to EXPORTED_FUNCTIONS");
98
+
abort('malloc() called but not included in the build - add `_malloc` to EXPORTED_FUNCTIONS');
99
99
}
100
100
#endif // malloc
101
101
#if !hasExportedSymbol('free')
102
102
function_free(){
103
103
// Show a helpful error since we used to include free by default in the past.
104
-
abort("free() called but not included in the build - add '_free' to EXPORTED_FUNCTIONS");
104
+
abort('free() called but not included in the build - add `_free` to EXPORTED_FUNCTIONS');
105
105
}
106
106
#endif // free
107
107
#endif // ASSERTIONS
@@ -641,9 +641,9 @@ function getBinarySync(file) {
641
641
returnreadBinary(file);
642
642
}
643
643
#if WASM_ASYNC_COMPILATION
644
-
throw"both async and sync fetching of the wasm failed";
644
+
throw'both async and sync fetching of the wasm failed';
645
645
#else
646
-
throw"sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)";
646
+
throw'sync fetching of the wasm failed: you can preload it to Module["wasmBinary"] manually, or emcc.py will do that for you when generating HTML (but not JS)';
647
647
#endif
648
648
}
649
649
@@ -666,7 +666,7 @@ function getBinaryPromise(binaryFile) {
0 commit comments