Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 31e44a4f8f2e000e75f116c878405c120110b8db..f7bd0e4ad7ed2e0932f7b94759a458fd84967918 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2160,10 +2160,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetReadOnlyPrototype) { |
RUNTIME_ASSERT(args.length() == 1); |
CONVERT_ARG_CHECKED(JSFunction, function, 0); |
- MaybeObject* maybe_name = |
- isolate->heap()->AllocateStringFromAscii(CStrVector("prototype")); |
- String* name; |
- if (!maybe_name->To(&name)) return maybe_name; |
+ String* name = isolate->heap()->prototype_symbol(); |
if (function->HasFastProperties()) { |
// Construct a new field descriptor with updated attributes. |