From 7ef345bee73f6cc843b0d82866d036a3ac5829ca Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 5 May 2017 15:24:00 +0200 Subject: Binary chunk can be a lua string (string.dump) --- src/lundump.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lundump.js') diff --git a/src/lundump.js b/src/lundump.js index 5d158bd..26405d6 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; -- cgit v1.2.3-54-g00ecf