Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index f475efcc7725c72a9179a1b580baae0e44116ecb..abd805e57218c1f5fa5053f17f54270f92472d9c 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -708,14 +708,9 @@ Handle<Symbol> Factory::NewSymbol() { |
} |
-Handle<Symbol> Factory::NewPrivateSymbol(Handle<Object> name) { |
+Handle<Symbol> Factory::NewPrivateSymbol() { |
Handle<Symbol> symbol = NewSymbol(); |
symbol->set_is_private(true); |
- if (name->IsString()) { |
- symbol->set_name(*name); |
- } else { |
- DCHECK(name->IsUndefined()); |
- } |
return symbol; |
} |