We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8898ea commit 0f605c4Copy full SHA for 0f605c4
src/lexer.js
@@ -92,7 +92,7 @@ function copyLE (src, outBuf16) {
92
93
function getWasmBytes() {
94
const binary = 'WASM_BINARY'; // This string will be replaced by build.js.
95
- if (typeof window !== 'undefined' && typeof atob === 'function')
+ if ((typeof window !== 'undefined' || typeof self !== 'undefined') && typeof atob === 'function')
96
return Uint8Array.from(atob(binary), x => x.charCodeAt(0));
97
return Buffer.from(binary, 'base64');
98
}
0 commit comments