Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I got an error when encoding an empty message (`{}`). When the message is empty, the size is 0 and `slab` is null, so`slice.call(slab, offset, offset += size);` gave me ``` Uncaught TypeError: Method get TypedArray.prototype.subarray called on incompatible receiver null ``` Adding this solved the issue for me. Please correct me if I was using it all wrong. 😂
- Loading branch information