a-game

2D platformer written from scratch.
git clone git://git.amin.space/a-game.git
Log | Files | Refs | README | LICENSE

commit a546ccb942ab37ea4d03ff16207936669319724b
parent 305614525c729f70fa18fe26ebc6e223cd06860a
Author: amin <dev@aminmesbah.com>
Date:   Wed, 17 Jul 2019 02:35:01 +0000

Don't needlessly build a string

This fixes the "maximum call stack size exceeded" error Chrome was
throwing.

FossilOrigin-Name: 1050ae285f1f8a413174e46711cce81b8f626d2698a280293723b0f336f1bd8e
Diffstat:
Msrc/platform_wasm_loader.js | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/platform_wasm_loader.js b/src/platform_wasm_loader.js @@ -236,7 +236,6 @@ imports["js_read_entire_file"] = function(name, name_len, out_buf) { return 0; } let arr = memory.subarray(out_buf, out_buf + file.byteLength); - let s = String.fromCharCode.apply(null, arr); arr.set(new Uint8Array(file)); } imports["js_print"] = function(s, len) {