Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 0145db67b5e0852132bf3bc5dfcefed3476bbf40..2c7975bab0b90617b140cb1f00c53f14436c984f 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2733,6 +2733,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); |