Please sign in to comment.
async_wrap: use double, not int64_t, for async id
The number of ids is limited to 2^53-1 regardless of whether an int64_t is used or not because JS is limited to a double. So to make conversion simpler, track ids internally as a double. This will also make life simpler when this is eventually exposed to JS via a Float64Array. Rename AsyncWrap::get_uid() to AsyncWrap::get_id(). PR-URL: #12892 Ref: #11883 Ref: #8531 Reviewed-By: Andreas Madsen <email@example.com> Reviewed-By: Anna Henningsen <firstname.lastname@example.org> Reviewed-By: Sam Roberts <email@example.com> Reviewed-By: Matteo Collina <firstname.lastname@example.org> Reviewed-By: Refael Ackermann <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Jeremiah Senkpiel <email@example.com>
- Loading branch information...
Showing with 18 additions and 18 deletions.