Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index d4909a7c1ba13280faf34c02a8cbc07e94d56c56..866a6556abcced8b2821da2c7ce75c101852c893 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -529,7 +529,7 @@ Handle<String> Factory::NewProperSubString(Handle<String> str, |
str = Handle<String>(slice->parent(), isolate()); |
offset += slice->offset(); |
} else { |
- str = FlattenGetString(str); |
+ str = String::Flatten(str); |
} |
ASSERT(str->IsSeqString() || str->IsExternalString()); |