Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 1a3a007a8536c7b3188affcca5c6fb115c60998a..737530f0368e8449e67f9df2bee4746b1d4194ed 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2116,6 +2116,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
Handle<SharedFunctionInfo> share = New<SharedFunctionInfo>(map, OLD_SPACE); |
// Set pointer fields. |
+ name = String::Flatten(name, TENURED); |
share->set_name(*name); |
Handle<Code> code; |
if (!maybe_code.ToHandle(&code)) { |