We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ae6469 commit 264e434Copy full SHA for 264e434
src/node_crypto.cc
@@ -5664,9 +5664,7 @@ void RandomBytesBuffer(const FunctionCallbackInfo<Value>& args) {
5664
data,
5665
RandomBytesRequest::DONT_FREE_DATA);
5666
if (args[3]->IsFunction()) {
5667
- obj->Set(env->context(),
5668
- FIXED_ONE_BYTE_STRING(args.GetIsolate(), "ondone"),
5669
- args[3]).FromJust();
+ obj->Set(env->context(), env->ondone_string(), args[3]).FromJust();
5670
5671
if (env->in_domain()) {
5672
obj->Set(env->context(),
0 commit comments