diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-29 14:59:25 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-29 22:04:32 +1100 |
commit | 14f5bb167951ad893760cdb526364e9edf1213ef (patch) | |
tree | cabfa9ce9f75479e036428b22a0e78ef9d48598c /src/lauxlib.js | |
parent | 9aaddb7c9814d97502adb0e115c613598923b8d5 (diff) | |
download | fengari-14f5bb167951ad893760cdb526364e9edf1213ef.tar.gz fengari-14f5bb167951ad893760cdb526364e9edf1213ef.tar.bz2 fengari-14f5bb167951ad893760cdb526364e9edf1213ef.zip |
src/: Export LUA_SIGNATURE as lua string instead of js string
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r-- | src/lauxlib.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js index 41d00b4..7d46505 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -871,7 +871,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.charCodeAt(0) && filename) { /* binary file? */ + if (com.c === LUA_SIGNATURE[0] && filename) { /* binary file? */ /* no need to re-open in node.js */ } else if (com.skipped) { /* read initial portion */ lf.buff[lf.n++] = '\n'.charCodeAt(0); /* add line to correct line numbers */ @@ -939,7 +939,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.charCodeAt(0) && filename) { /* binary file? */ + if (com.c === LUA_SIGNATURE[0] && filename) { /* binary file? */ /* no need to re-open in node.js */ } else if (com.skipped) { /* read initial portion */ lf.buff[lf.n++] = '\n'.charCodeAt(0); /* add line to correct line numbers */ |