Changes internal serialization to use Buffers instead
This commit is contained in:
parent
c8bda6dde6
commit
a8cf2fdd9e
5 changed files with 123 additions and 78 deletions
src
|
@ -14,7 +14,7 @@ function Script(data) {
|
|||
}
|
||||
|
||||
Script.fromBuffer = function(buffer) {
|
||||
// assert(Buffer.isBuffer(buffer)) // FIXME: transitionary
|
||||
assert(Buffer.isBuffer(buffer)) // FIXME: transitionary
|
||||
|
||||
return new Script(Array.prototype.slice.call(buffer))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue