Commit f81f0c35 authored by Trevor Norris's avatar Trevor Norris
Browse files

async_wrap: pass uid to JS as double

Passing the uid via v8::Integer::New() converts it to a uint32_t. Which
will trim the value early. Instead use v8::Number::New() to convert the
int64_t to a double so that JS can see the full 2^53 range of uid's.

PR-URL: https://github.com/nodejs/node/pull/7096


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarAndreas Madsen <amwebdk@gmail.com>
parent 8c1d5e58
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment