Skip to content

Commit 693e39c

Browse files
committed
script: use Buffer.isBuffer consistently
1 parent 2c11316 commit 693e39c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var REVERSE_OPS = (function () {
1616
var OP_INT_BASE = OPS.OP_RESERVED // OP_1 - 1
1717

1818
function toASM (chunks) {
19-
if (types.Buffer(chunks)) {
19+
if (Buffer.isBuffer(chunks)) {
2020
chunks = decompile(chunks)
2121
}
2222

@@ -43,7 +43,7 @@ function fromASM (asm) {
4343

4444
function compile (chunks) {
4545
// TODO: remove me
46-
if (types.Buffer(chunks)) return chunks
46+
if (Buffer.isBuffer(chunks)) return chunks
4747

4848
typeforce(types.Array, chunks)
4949

0 commit comments

Comments
 (0)