Index: src/func-name-inferrer.cc |
diff --git a/src/func-name-inferrer.cc b/src/func-name-inferrer.cc |
index e85e89528297dd27092c1e20d2c132cbd4edc2c8..51ba4ad530912aa7aacba6fa1f76992ad9d1ec5f 100644 |
--- a/src/func-name-inferrer.cc |
+++ b/src/func-name-inferrer.cc |
@@ -55,14 +55,16 @@ void FuncNameInferrer::PushEnclosingName(Handle<String> name) { |
void FuncNameInferrer::PushLiteralName(Handle<String> name) { |
- if (IsOpen() && !isolate()->heap()->prototype_string()->Equals(*name)) { |
+ if (IsOpen() && |
+ !String::Equals(isolate()->factory()->prototype_string(), name)) { |
names_stack_.Add(Name(name, kLiteralName), zone()); |
} |
} |
void FuncNameInferrer::PushVariableName(Handle<String> name) { |
- if (IsOpen() && !isolate()->heap()->dot_result_string()->Equals(*name)) { |
+ if (IsOpen() && |
+ !String::Equals(isolate()->factory()->dot_result_string(), name)) { |
names_stack_.Add(Name(name, kVariableName), zone()); |
} |
} |