Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 33eed657bc4506382368e90524bd04d111602ff7..b80cc981cb2d23a2c403fac4014a2d545b98c4bc 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2693,11 +2693,12 @@ void Heap::CreateInitialObjects() { |
{ |
HandleScope scope(isolate()); |
-#define SYMBOL_INIT(name) \ |
- { \ |
- Handle<String> name##d = factory->NewStringFromStaticChars(#name); \ |
- Handle<Object> symbol(isolate()->factory()->NewPrivateSymbol(name##d)); \ |
- roots_[k##name##RootIndex] = *symbol; \ |
+#define SYMBOL_INIT(name) \ |
+ { \ |
+ Handle<String> name##d = factory->NewStringFromStaticChars(#name); \ |
+ Handle<Symbol> symbol(isolate()->factory()->NewPrivateSymbol()); \ |
+ symbol->set_name(*name##d); \ |
+ roots_[k##name##RootIndex] = *symbol; \ |
} |
PRIVATE_SYMBOL_LIST(SYMBOL_INIT) |
#undef SYMBOL_INIT |