Skip to content

Commit 1ddca1c

Browse files
committed
review
1 parent d16c751 commit 1ddca1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/postamble_minimal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function initRuntime(wasmExports) {
152152
#if SINGLE_FILE && SINGLE_FILE_BINARY_ENCODE && !WASM2JS
153153
Module['wasm'] = binaryDecode("<<< WASM_BINARY_DATA >>>");
154154
#if ASSERTIONS
155-
assert(Module['wasm'].reduce((x,y) => ((x^y)*65599) >>> 0, 2166136261) == "<<< WASM_BINARY_DATA_CHECKSUM >>>", "The checksum of the binary decoded WebAssembly Module code does not match the original data. Double check that this .html/.js file is interpreted with UTF-8 encoding, e.g. by setting <meta charset='utf-8'> inside <head> of the HTML file, or by passing 'Content-Type: application/javascript; charset=utf-8' HTTP header.");
155+
assert(Module['wasm'].reduce((x,y) => ((x^y)*65599) >>> 0, 2166136261) == "<<< WASM_BINARY_DATA_CHECKSUM >>>", "Invalid checksum on embedded WebAssembly module. Check that this .html/.js file is interpreted with UTF-8 encoding, e.g. by setting <meta charset='utf-8'> inside <head> of the HTML file, or by passing 'Content-Type: application/javascript; charset=utf-8' HTTP header.");
156156
#endif
157157
#elif SINGLE_FILE && WASM == 1 && !WASM2JS
158158
Module['wasm'] = base64Decode('<<< WASM_BINARY_DATA >>>');

0 commit comments

Comments
 (0)