Closed dlongley closed 3 years ago
Since arrays are objects, the second conditional here will never be hit:
https://github.com/digitalbazaar/cborld/blob/499759e836cb573993aa77bea7854278b230cbcf/lib/context.js#L29-L31
The order needs to be swapped and better test coverage added.
Fixed by PR #34.
Since arrays are objects, the second conditional here will never be hit:
https://github.com/digitalbazaar/cborld/blob/499759e836cb573993aa77bea7854278b230cbcf/lib/context.js#L29-L31
The order needs to be swapped and better test coverage added.