diff --git a/src/runtime/javascript/test-web.html b/src/runtime/javascript/test-web.html index 65a21e377..85e63ef07 100644 --- a/src/runtime/javascript/test-web.html +++ b/src/runtime/javascript/test-web.html @@ -5,7 +5,7 @@
- + diff --git a/src/runtime/javascript/test-web.js b/src/runtime/javascript/test-web.js index 2e4d3e87f..cec5ce991 100644 --- a/src/runtime/javascript/test-web.js +++ b/src/runtime/javascript/test-web.js @@ -5,7 +5,7 @@ Module.onRuntimeInitialized = () => { .then((response) => response.arrayBuffer()) .then((data) => { const pgfPathFS = '/tmp/Foods.pgf'; - Module.FS.writeFile(pgfPathFS, new DataView(data)); + Module.FS.writeFile(pgfPathFS, new Uint8Array(data)); // Read PGF const pgf = JSPGF.readPGF(pgfPathFS);