diff options
Diffstat (limited to 'JavaScriptCore/parser/SourceProvider.h')
-rw-r--r-- | JavaScriptCore/parser/SourceProvider.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/JavaScriptCore/parser/SourceProvider.h b/JavaScriptCore/parser/SourceProvider.h index 6b9c028..5a57542 100644 --- a/JavaScriptCore/parser/SourceProvider.h +++ b/JavaScriptCore/parser/SourceProvider.h @@ -60,9 +60,9 @@ namespace JSC { class UStringSourceProvider : public SourceProvider { public: - static PassRefPtr<UStringSourceProvider> create(const UString& source, const UString& url, bool hasBOMs = true) + static PassRefPtr<UStringSourceProvider> create(const UString& source, const UString& url) { - return adoptRef(new UStringSourceProvider(source, url, hasBOMs)); + return adoptRef(new UStringSourceProvider(source, url)); } UString getRange(int start, int end) const @@ -73,14 +73,10 @@ namespace JSC { int length() const { return m_source.size(); } private: - UStringSourceProvider(const UString& source, const UString& url, bool hasBOMs) + UStringSourceProvider(const UString& source, const UString& url) : SourceProvider(url) , m_source(source) { - if (hasBOMs && m_source.size()) { - bool scratch = false; - m_source = UString(m_source.rep()->copyStringWithoutBOMs(false, scratch)); - } } UString m_source; |