From 7ab3254e90780bacfd096de84eab31778ae09a26 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 12 May 2017 17:12:08 +1000 Subject: .is_vararg should be a boolean --- src/lundump.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lundump.js') diff --git a/src/lundump.js b/src/lundump.js index 3c35710..eeb77f4 100644 --- a/src/lundump.js +++ b/src/lundump.js @@ -212,7 +212,7 @@ class BytecodeParser { f.linedefined = this.readInt(); f.lastlinedefined = this.readInt(); f.numparams = this.readByte(); - f.is_vararg = this.readByte(); + f.is_vararg = this.readByte() !== 0; f.maxstacksize = this.readByte(); this.readCode(f); this.readConstants(f); -- cgit v1.2.3-54-g00ecf