paroga / cbor-js

The Concise Binary Object Representation (CBOR) data format (RFC7049) implemented in pure JavaScript.
MIT License
310 stars 51 forks source link

add failing test for float16 decoding of 0x8001 #18

Closed TYoung86 closed 8 years ago

TYoung86 commented 8 years ago

revealed by testing performance; https://github.com/paroga/cbor-js/pull/16/files/90c3bb09d53e72ef484548689a7f7ba4fcce8d95#r79479287

benchmark revealing missing coverage; https://jsfiddle.net/czpdkw3w/70/

paroga commented 8 years ago

Thanks for reporting this. I fixed the case and added the test in the current master