From fae2f9e118a1dcccffb4e1326d5c603567be90f9 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 3 Apr 2018 21:58:14 +1000 Subject: src/lauxlib.js: Improve comments --- src/lauxlib.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lauxlib.js b/src/lauxlib.js index d575e99..1300f2a 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -850,8 +850,9 @@ if (typeof process === "undefined") { let path = to_uristring(filename); let xhr = new XMLHttpRequest(); xhr.open("GET", path, false); - /* XXX: Synchronous xhr in main thread always returns a js string - Additionally, some browsers make console noise if you even attempt to set responseType + /* + Synchronous xhr in main thread always returns a js string. + Some browsers make console noise if you even attempt to set responseType */ if (typeof window === "undefined") { xhr.responseType = "arraybuffer"; @@ -871,7 +872,7 @@ if (typeof process === "undefined") { let com = skipcomment(lf); /* check for signature first, as we don't want to add line number corrections in binary case */ if (com.c === LUA_SIGNATURE[0] && filename) { /* binary file? */ - /* no need to re-open in node.js */ + /* no need to re-open */ } else if (com.skipped) { /* read initial portion */ lf.buff[lf.n++] = 10 /* '\n'.charCodeAt(0) */; /* add line to correct line numbers */ } @@ -949,7 +950,7 @@ if (typeof process === "undefined") { let com = skipcomment(lf); /* check for signature first, as we don't want to add line number corrections in binary case */ if (com.c === LUA_SIGNATURE[0] && filename) { /* binary file? */ - /* no need to re-open in node.js */ + /* no need to re-open */ } else if (com.skipped) { /* read initial portion */ lf.buff[lf.n++] = 10 /* '\n'.charCodeAt(0) */; /* add line to correct line numbers */ } -- cgit v1.2.3-70-g09d2