summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-03 21:58:14 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-03 21:58:14 +1000
commitfae2f9e118a1dcccffb4e1326d5c603567be90f9 (patch)
tree12341428719faae1f259f65fe85fe7920e7999f6
parentd67a6ab6688d315f521b3a2ebc0e018969213b21 (diff)
downloadfengari-fae2f9e118a1dcccffb4e1326d5c603567be90f9.tar.gz
fengari-fae2f9e118a1dcccffb4e1326d5c603567be90f9.tar.bz2
fengari-fae2f9e118a1dcccffb4e1326d5c603567be90f9.zip
src/lauxlib.js: Improve comments
-rw-r--r--src/lauxlib.js9
1 files changed, 5 insertions, 4 deletions
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 */
}