From dba35fd2956f9f6b14ea8947baa11c5e483bc407 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 3 Mar 2017 22:46:39 +1100 Subject: Remove use of 'buffer-dataview' library --- src/lundump.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lundump.js') diff --git a/src/lundump.js b/src/lundump.js index 5a6d8c4..92063a2 100644 --- a/src/lundump.js +++ b/src/lundump.js @@ -1,7 +1,6 @@ /*jshint esversion: 6 */ "use strict"; -const DataView = require('buffer-dataview'); const fs = require('fs'); const assert = require('assert'); @@ -110,7 +109,7 @@ class BytecodeParser { } readInstruction() { - let ins = new DataView(new Buffer(this.instructionSize)); + let ins = new DataView(new ArrayBuffer(this.instructionSize)); for (let i = 0; i < this.instructionSize; i++) ins.setUint8(i, this.readByte()); -- cgit v1.2.3-54-g00ecf