diff options
author | daurnimator <quae@daurnimator.com> | 2018-04-03 21:58:14 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-04-03 21:58:14 +1000 |
commit | fae2f9e118a1dcccffb4e1326d5c603567be90f9 (patch) | |
tree | 12341428719faae1f259f65fe85fe7920e7999f6 /src/lauxlib.js | |
parent | d67a6ab6688d315f521b3a2ebc0e018969213b21 (diff) | |
download | fengari-fae2f9e118a1dcccffb4e1326d5c603567be90f9.tar.gz fengari-fae2f9e118a1dcccffb4e1326d5c603567be90f9.tar.bz2 fengari-fae2f9e118a1dcccffb4e1326d5c603567be90f9.zip |
src/lauxlib.js: Improve comments
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r-- | src/lauxlib.js | 9 |
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 */ } |