We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c11316 commit 693e39cCopy full SHA for 693e39c
src/script.js
@@ -16,7 +16,7 @@ var REVERSE_OPS = (function () {
16
var OP_INT_BASE = OPS.OP_RESERVED // OP_1 - 1
17
18
function toASM (chunks) {
19
- if (types.Buffer(chunks)) {
+ if (Buffer.isBuffer(chunks)) {
20
chunks = decompile(chunks)
21
}
22
@@ -43,7 +43,7 @@ function fromASM (asm) {
43
44
function compile (chunks) {
45
// TODO: remove me
46
- if (types.Buffer(chunks)) return chunks
+ if (Buffer.isBuffer(chunks)) return chunks
47
48
typeforce(types.Array, chunks)
49
0 commit comments