diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-03 14:41:11 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-03 14:41:11 +0100 |
commit | 3b116600d75012d5d4cd1b21343a0179712d32eb (patch) | |
tree | 020a43afdc63aa353ae2a27420a859487489d1d8 /src | |
parent | 0ba3c5d516b1a0b67cff6d5f4b4583284086dd4b (diff) | |
parent | dba35fd2956f9f6b14ea8947baa11c5e483bc407 (diff) | |
download | fengari-3b116600d75012d5d4cd1b21343a0179712d32eb.tar.gz fengari-3b116600d75012d5d4cd1b21343a0179712d32eb.tar.bz2 fengari-3b116600d75012d5d4cd1b21343a0179712d32eb.zip |
Merge remote-tracking branch 'daurnimator/remove-buffer-dataview'
Diffstat (limited to 'src')
-rw-r--r-- | src/llex.js | 1 | ||||
-rw-r--r-- | src/lundump.js | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/llex.js b/src/llex.js index 711f44b..2e79066 100644 --- a/src/llex.js +++ b/src/llex.js @@ -1,6 +1,5 @@ "use strict"; -const DataView = require('buffer-dataview'); const assert = require('assert'); const lapi = require('./lapi.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()); |