diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 9b0ab4ea262d41..456c273b2b6d9b 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -722,8 +722,7 @@ class ContextifyScript : public BaseObject { return -1; } - Local key = FIXED_ONE_BYTE_STRING(env->isolate(), "timeout"); - Local value = options.As()->Get(key); + Local value = options.As()->Get(env->timeout_string()); if (value->IsUndefined()) { return -1; } diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 4c282956581e8f..85d030312ca7ac 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2055,8 +2055,7 @@ void SSLWrap::VerifyError(const FunctionCallbackInfo& args) { Local reason_string = OneByteString(isolate, reason); Local exception_value = Exception::Error(reason_string); Local exception_object = exception_value->ToObject(isolate); - exception_object->Set(FIXED_ONE_BYTE_STRING(isolate, "code"), - OneByteString(isolate, code)); + exception_object->Set(w->env()->code_string(), OneByteString(isolate, code)); args.GetReturnValue().Set(exception_object); } @@ -3255,7 +3254,7 @@ void Connection::SetSNICallback(const FunctionCallbackInfo& args) { } Local obj = Object::New(env->isolate()); - obj->Set(FIXED_ONE_BYTE_STRING(args.GetIsolate(), "onselect"), args[0]); + obj->Set(env->onselect_string(), args[0]); conn->sniObject_.Reset(args.GetIsolate(), obj); } #endif @@ -5583,7 +5582,7 @@ void RandomBytes(const FunctionCallbackInfo& args) { RandomBytesRequest* req = new RandomBytesRequest(env, obj, size); if (args[1]->IsFunction()) { - obj->Set(FIXED_ONE_BYTE_STRING(args.GetIsolate(), "ondone"), args[1]); + obj->Set(env->ondone_string(), args[1]); if (env->in_domain()) obj->Set(env->domain_string(), env->domain_array()->Get(0));