diff options
Diffstat (limited to 'WebCore/bindings/js/ScriptString.h')
-rw-r--r-- | WebCore/bindings/js/ScriptString.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/WebCore/bindings/js/ScriptString.h b/WebCore/bindings/js/ScriptString.h index 6dab9a0..a33d639 100644 --- a/WebCore/bindings/js/ScriptString.h +++ b/WebCore/bindings/js/ScriptString.h @@ -33,6 +33,7 @@ #include "PlatformString.h" #include <runtime/UString.h> +#include <runtime/StringBuilder.h> namespace WebCore { @@ -57,7 +58,10 @@ public: ScriptString& operator+=(const String& s) { - m_str += s; + JSC::StringBuilder buffer; + buffer.append(m_str); + buffer.append(s); + m_str = buffer.release(); return *this; } |