ref: 66a927920aeecececfcf6939b5f4a43ed7079949
parent: 2b5a4a062cf3f1ea6b64a92b8735a49b517f4557
author: Ben Harris <bjh21@bjh21.me.uk>
date: Thu Dec 1 21:10:19 EST 2022
js: Remove a JavaScript construct that confused emcc -O3
--- a/emccpre.js
+++ b/emccpre.js
@@ -678,8 +678,9 @@
// { "LOOPY_DEFAULT": "20x10t11dh" }
// </script>
var envscript = document.getElementById("environment");
+ var k, v;
if (envscript !== null)
- for (var [k, v] of
+ for ([k, v] of
Object.entries(JSON.parse(envscript.textContent)))
ENV[k] = v;
};