summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-13 11:35:50 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-13 11:35:50 +0100
commit4627bb4b5c3ccc8431fbba68a78efd50ebb13909 (patch)
tree5b9b0b8e344b3de27aeb5ac39db93225f58a6d61 /src/lundump.js
parent5895accf3297146d26a722e8ed6ac0658faa7f87 (diff)
downloadfengari-4627bb4b5c3ccc8431fbba68a78efd50ebb13909.tar.gz
fengari-4627bb4b5c3ccc8431fbba68a78efd50ebb13909.tar.bz2
fengari-4627bb4b5c3ccc8431fbba68a78efd50ebb13909.zip
JSHint
Diffstat (limited to 'src/lundump.js')
-rw-r--r--src/lundump.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lundump.js b/src/lundump.js
index b104e32..67867bb 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -105,11 +105,11 @@ class BytecodeParser {
/* creates a mask with 'n' 0 bits at position 'p' */
static MASK0(n, p) {
- return (~MASK1(n,p));
+ return (~BytecodeParser.MASK1(n,p));
}
readInstruction() {
- let ins = new DataView(new Buffer(this.instructionSize))
+ let ins = new DataView(new Buffer(this.instructionSize));
for (let i = 0; i < this.instructionSize; i++)
ins.setUint8(i, this.readByte());
@@ -210,7 +210,7 @@ class BytecodeParser {
varname: this.readString(),
startpc: this.readInt(),
endpc: this.readInt()
- }
+ };
console.log(`
f.locvars[${i}].varname = ${f.locvars[i].varname}