From 3f98b0f33ccce6b6c8ab97c810eceb3bf3b5bef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 2 Aug 2017 13:17:06 +0200 Subject: [PATCH] src: reuse 'ondone' string in node_crypto.cc PR-URL: https://github.com/nodejs/node/pull/14587 Reviewed-By: Anna Henningsen --- src/node_crypto.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 61ab265ce193b4..664bf1a72c7e8c 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -5664,9 +5664,7 @@ void RandomBytesBuffer(const FunctionCallbackInfo& 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(),