diff options
Diffstat (limited to 'JavaScriptCore/parser/SourceProvider.h')
-rw-r--r-- | JavaScriptCore/parser/SourceProvider.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/JavaScriptCore/parser/SourceProvider.h b/JavaScriptCore/parser/SourceProvider.h index 5a57542..5ff1d14 100644 --- a/JavaScriptCore/parser/SourceProvider.h +++ b/JavaScriptCore/parser/SourceProvider.h @@ -67,10 +67,10 @@ namespace JSC { UString getRange(int start, int end) const { - return m_source.substr(start, end - start); + return m_source.substringSharingImpl(start, end - start); } - const UChar* data() const { return m_source.data(); } - int length() const { return m_source.size(); } + const UChar* data() const { return m_source.characters(); } + int length() const { return m_source.length(); } private: UStringSourceProvider(const UString& source, const UString& url) |