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 b9c0aa7 commit 0fd3d78Copy full SHA for 0fd3d78
targets/wasm_exec.js
@@ -424,7 +424,7 @@
424
425
const dst = loadSlice(dest_addr, dest_len);
426
const src = loadValue(source_addr);
427
- if (!(src instanceof Uint8Array)) {
+ if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
428
mem().setUint8(returned_status_addr, 0); // Return "not ok" status
429
return;
430
}
@@ -443,7 +443,7 @@
443
444
const dst = loadValue(dest_addr);
445
const src = loadSlice(source_addr, source_len);
446
- if (!(dst instanceof Uint8Array)) {
+ if (!(dst instanceof Uint8Array || dst instanceof Uint8ClampedArray)) {
447
448
449
0 commit comments