diff options
Diffstat (limited to 'Source/JavaScriptCore/parser/SourceCode.cpp')
-rw-r--r-- | Source/JavaScriptCore/parser/SourceCode.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/JavaScriptCore/parser/SourceCode.cpp b/Source/JavaScriptCore/parser/SourceCode.cpp index c430e9793..7c2d6adbc 100644 --- a/Source/JavaScriptCore/parser/SourceCode.cpp +++ b/Source/JavaScriptCore/parser/SourceCode.cpp @@ -26,7 +26,6 @@ #include "config.h" #include "SourceCode.h" -#include "JSCInlines.h" #include <wtf/text/CString.h> namespace JSC { @@ -36,7 +35,7 @@ CString SourceCode::toUTF8() const if (!m_provider) return CString("", 0); - return m_provider->source().substring(m_startChar, m_endChar - m_startChar).utf8(); + return m_provider->source().impl()->utf8ForRange(m_startChar, m_endChar - m_startChar); } } // namespace JSC |