summaryrefslogtreecommitdiff
path: root/src/ldump.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-08 12:38:21 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-08 12:38:38 +1000
commit431b4f5e896905244a3e101b9092101ffd5ba274 (patch)
tree9ccf2cc2292c602a094e30ebd3d7ca3701ac5e2a /src/ldump.js
parentef39c3a77c753d16a702f403faf791d0caf9a595 (diff)
downloadfengari-431b4f5e896905244a3e101b9092101ffd5ba274.tar.gz
fengari-431b4f5e896905244a3e101b9092101ffd5ba274.tar.bz2
fengari-431b4f5e896905244a3e101b9092101ffd5ba274.zip
src/ldump.js: Convert f.is_vararg field to number when writing out
Diffstat (limited to 'src/ldump.js')
-rw-r--r--src/ldump.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldump.js b/src/ldump.js
index 1298a03..128b270 100644
--- a/src/ldump.js
+++ b/src/ldump.js
@@ -154,7 +154,7 @@ const DumpFunction = function(f, psource, D) {
DumpInt(f.linedefined, D);
DumpInt(f.lastlinedefined, D);
DumpByte(f.numparams, D);
- DumpByte(f.is_vararg, D);
+ DumpByte(f.is_vararg?1:0, D);
DumpByte(f.maxstacksize, D);
DumpCode(f, D);
DumpConstants(f, D);