summaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-24 15:52:27 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-24 15:52:27 +0200
commitfe15ff909f9edbbc485ae66d54d6415bf0843a6d (patch)
tree86842135b2027eb8ce6ef50647982ec42c1fd7c6 /src/ldo.js
parent31dcd12f5a9cd6a45e8ad9d1213a8a25d88fe885 (diff)
downloadfengari-fe15ff909f9edbbc485ae66d54d6415bf0843a6d.tar.gz
fengari-fe15ff909f9edbbc485ae66d54d6415bf0843a6d.tar.bz2
fengari-fe15ff909f9edbbc485ae66d54d6415bf0843a6d.zip
lun/dump.js use 32bit integers
Diffstat (limited to 'src/ldo.js')
-rw-r--r--src/ldo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldo.js b/src/ldo.js
index 3bdd5b5..4105722 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -565,7 +565,7 @@ const f_parser = function(L, p) {
let c = p.z.getc(); /* read first character */
if (c === lua.LUA_SIGNATURE.charCodeAt(0)) {
checkmode(L, p.mode, lua.to_luastring("binary", true));
- cl = new BytecodeParser(L, p.z.buffer).luaU_undump();
+ cl = new BytecodeParser(L, p.z.buffer, p.name).luaU_undump();
} else {
checkmode(L, p.mode, lua.to_luastring("text", true));
cl = lparser.luaY_parser(L, p.z, p.buff, p.dyd, p.name, c);