Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 8fe765d9e2a9b785fa300a4695d5f01fa3288ac8..a33f288ccbe7dfd2457f4350e2815930c5784a0e 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2342,10 +2342,10 @@ void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp, |
} |
-Handle<Object> Factory::GlobalConstantFor(Handle<String> name) { |
- if (String::Equals(name, undefined_string())) return undefined_value(); |
- if (String::Equals(name, nan_string())) return nan_value(); |
- if (String::Equals(name, infinity_string())) return infinity_value(); |
+Handle<Object> Factory::GlobalConstantFor(Handle<Name> name) { |
+ if (Name::Equals(name, undefined_string())) return undefined_value(); |
+ if (Name::Equals(name, nan_string())) return nan_value(); |
+ if (Name::Equals(name, infinity_string())) return infinity_value(); |
return Handle<Object>::null(); |
} |