Add toString.

This commit is contained in:
David Braun 2017-10-18 14:28:01 -04:00
parent e1b638bef7
commit f07e849662
3 changed files with 12 additions and 1 deletions

View file

@ -239,7 +239,9 @@ const Channel = function(bufferLength = 0) {
}
}
}
}
},
toString: () => `Channel(${bufferLength})`
});
Object.defineProperty(readOnly, `value`, { get: () => lastValue });