Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 2100480e85864356f1f6c04cfaee13736eede544..7c196557267e2b947d09195402382ed2b1e0d28a 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2727,6 +2727,13 @@ int String::Write(uint16_t* buffer, int start, int length) const { |
} |
+void v8::String::Flatten() { |
+ if (IsDeadCheck("v8::String::Flatten()")) return; |
+ i::Handle<i::String> str = Utils::OpenHandle(this); |
+ i::FlattenString(str); |
+} |
+ |
+ |
bool v8::String::IsExternal() const { |
EnsureInitialized("v8::String::IsExternal()"); |
i::Handle<i::String> str = Utils::OpenHandle(this); |