X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/9dae56ea45a0f5f8136a5c93d6f3a7f99399ca73..1df5f87f1309a8daa30dabdee855f48ae40d14ab:/API/OpaqueJSString.cpp?ds=sidebyside diff --git a/API/OpaqueJSString.cpp b/API/OpaqueJSString.cpp index 7c7b1af..9a116e6 100644 --- a/API/OpaqueJSString.cpp +++ b/API/OpaqueJSString.cpp @@ -35,15 +35,15 @@ using namespace JSC; PassRefPtr OpaqueJSString::create(const UString& ustring) { if (!ustring.isNull()) - return adoptRef(new OpaqueJSString(ustring.data(), ustring.size())); + return adoptRef(new OpaqueJSString(ustring.characters(), ustring.length())); return 0; } UString OpaqueJSString::ustring() const { if (this && m_characters) - return UString(m_characters, m_length, true); - return UString::null(); + return UString(m_characters, m_length); + return UString(); } Identifier OpaqueJSString::identifier(JSGlobalData* globalData) const