Browse Source

src: reuse 'ondone' string in node_crypto.cc

PR-URL: https://github.com/nodejs/node/pull/14587
Reviewed-By: Anna Henningsen <anna@addaleax.net>
v6
Tobias Nießen 8 years ago
committed by Anna Henningsen
parent
commit
3f98b0f33c
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 4
      src/node_crypto.cc

4
src/node_crypto.cc

@ -5664,9 +5664,7 @@ void RandomBytesBuffer(const FunctionCallbackInfo<Value>& args) {
data,
RandomBytesRequest::DONT_FREE_DATA);
if (args[3]->IsFunction()) {
obj->Set(env->context(),
FIXED_ONE_BYTE_STRING(args.GetIsolate(), "ondone"),
args[3]).FromJust();
obj->Set(env->context(), env->ondone_string(), args[3]).FromJust();
if (env->in_domain()) {
obj->Set(env->context(),

Loading…
Cancel
Save