script: add fromASM failing test case and fix
This commit is contained in:
parent
d0b4f0adf7
commit
a86e905611
3 changed files with 15 additions and 0 deletions
src
|
@ -145,6 +145,7 @@ function fromASM (asm) {
|
|||
return compile(asm.split(' ').map(function (chunkStr) {
|
||||
// opcode?
|
||||
if (OPS[chunkStr] !== undefined) return OPS[chunkStr]
|
||||
typeforce(types.Hex, chunkStr)
|
||||
|
||||
// data!
|
||||
return new Buffer(chunkStr, 'hex')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue