diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
commit | a4e969f4965059196ca948db781e52f7cfebf19e (patch) | |
tree | 6ca352808c8fdc52006a0f33f6ae3c593b23867d /Source/JavaScriptCore/parser/SourceCode.cpp | |
parent | 41386e9cb918eed93b3f13648cbef387e371e451 (diff) | |
download | WebKitGtk-tarball-a4e969f4965059196ca948db781e52f7cfebf19e.tar.gz |
webkitgtk-2.12.3webkitgtk-2.12.3
Diffstat (limited to 'Source/JavaScriptCore/parser/SourceCode.cpp')
-rw-r--r-- | Source/JavaScriptCore/parser/SourceCode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/parser/SourceCode.cpp b/Source/JavaScriptCore/parser/SourceCode.cpp index 7c2d6adbc..c430e9793 100644 --- a/Source/JavaScriptCore/parser/SourceCode.cpp +++ b/Source/JavaScriptCore/parser/SourceCode.cpp @@ -26,6 +26,7 @@ #include "config.h" #include "SourceCode.h" +#include "JSCInlines.h" #include <wtf/text/CString.h> namespace JSC { @@ -35,7 +36,7 @@ CString SourceCode::toUTF8() const if (!m_provider) return CString("", 0); - return m_provider->source().impl()->utf8ForRange(m_startChar, m_endChar - m_startChar); + return m_provider->source().substring(m_startChar, m_endChar - m_startChar).utf8(); } } // namespace JSC |