Changeset 194409 in webkit for trunk/Source/JavaScriptCore/API/JSScriptRef.cpp
- Timestamp:
- Dec 23, 2015, 6:17:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSScriptRef.cpp
r194017 r194409 49 49 unsigned hash() const override 50 50 { 51 return m_source. impl()->hash();51 return m_source.get().hash(); 52 52 } 53 53 54 54 StringView source() const override 55 55 { 56 return m_source ;56 return m_source.get(); 57 57 } 58 58 … … 63 63 : SourceProvider(url, TextPosition(OrdinalNumber::fromOneBasedInt(startingLineNumber), OrdinalNumber::first())) 64 64 , m_vm(vm) 65 , m_source(source )65 , m_source(source.isNull() ? *StringImpl::empty() : *source.impl()) 66 66 { 67 67 } … … 70 70 71 71 VM* m_vm; 72 Stringm_source;72 Ref<StringImpl> m_source; 73 73 }; 74 74
Note:
See TracChangeset
for help on using the changeset viewer.