| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index aa6e2808b46d283c5178cbff07f05da6db8ebdbd..1e8bc0c7a1d3ffe9d8f7b7c6967a4d3d02bf296c 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -8237,7 +8237,7 @@ static bool IsIdentifier(UnicodeCache* cache, Name* name) {
|
| // Checks whether the buffer contains an identifier (no escape).
|
| if (!name->IsString()) return false;
|
| String* string = String::cast(name);
|
| - if (string->length() == 0) return false;
|
| + if (string->length() == 0) return true;
|
| ConsStringIteratorOp op;
|
| StringCharacterStream stream(string, &op);
|
| if (!cache->IsIdentifierStart(stream.GetNext())) {
|
| @@ -8253,9 +8253,7 @@ static bool IsIdentifier(UnicodeCache* cache, Name* name) {
|
|
|
|
|
| bool Name::IsCacheable(Isolate* isolate) {
|
| - return IsSymbol() ||
|
| - IsIdentifier(isolate->unicode_cache(), this) ||
|
| - this == isolate->heap()->hidden_string();
|
| + return IsSymbol() || IsIdentifier(isolate->unicode_cache(), this);
|
| }
|
|
|
|
|
| @@ -15719,7 +15717,6 @@ MaybeObject* NameDictionary::TransformPropertiesToFastFor(
|
| // instance descriptor.
|
| MaybeObject* maybe_key = heap->InternalizeString(String::cast(k));
|
| if (!maybe_key->To(&key)) return maybe_key;
|
| - if (key->Equals(heap->empty_string())) return this;
|
| }
|
|
|
| PropertyDetails details = DetailsAt(i);
|
|
|