Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 8d78b8fc26b77362e21b6301e023facecfee53e4..766509e2a5a40831d30097fef01882d1bfb1e3c8 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -32,7 +32,8 @@ Handle<AccessorInfo> Accessors::MakeAccessor( |
info->set_all_can_read(false); |
info->set_all_can_write(false); |
info->set_is_special_data_property(true); |
- info->set_name(*factory->InternalizeName(name)); |
+ name = factory->InternalizeName(name); |
+ info->set_name(*name); |
Handle<Object> get = v8::FromCData(isolate, getter); |
if (setter == nullptr) setter = &ReconfigureToDataProperty; |
Handle<Object> set = v8::FromCData(isolate, setter); |