summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lundump.js')
-rw-r--r--src/lundump.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lundump.js b/src/lundump.js
index 541adbb..1c0d4c7 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -8,11 +8,11 @@ const lfunc = require('./lfunc.js');
const lobject = require('./lobject.js');
const lopcodes = require('./lopcodes.js');
-const LUAI_MAXSHORTLEN = 40;
-
class BytecodeParser {
constructor(L, dataView, name) {
+ assert(dataView instanceof DataView, "BytecodeParser only operates on a dataView")
+
this.L = L;
this.intSize = 4;
this.size_tSize = 8;