diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/LiteralParser.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/LiteralParser.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/runtime/LiteralParser.h b/Source/JavaScriptCore/runtime/LiteralParser.h index fac97571c..fcb79fa40 100644 --- a/Source/JavaScriptCore/runtime/LiteralParser.h +++ b/Source/JavaScriptCore/runtime/LiteralParser.h @@ -29,6 +29,7 @@ #include "Identifier.h" #include "JSCJSValue.h" #include "JSGlobalObjectFunctions.h" +#include <array> #include <wtf/text/WTFString.h> namespace JSC { @@ -97,9 +98,9 @@ public: String getErrorMessage() { if (!m_lexer.getErrorMessage().isEmpty()) - return String::format("JSON Parse error: %s", m_lexer.getErrorMessage().ascii().data()).impl(); + return String::format("JSON Parse error: %s", m_lexer.getErrorMessage().ascii().data()); if (!m_parseErrorMessage.isEmpty()) - return String::format("JSON Parse error: %s", m_parseErrorMessage.ascii().data()).impl(); + return String::format("JSON Parse error: %s", m_parseErrorMessage.ascii().data()); return ASCIILiteral("JSON Parse error: Unable to parse JSON string"); } @@ -155,8 +156,8 @@ private: ParserMode m_mode; String m_parseErrorMessage; static unsigned const MaximumCachableCharacter = 128; - FixedArray<Identifier, MaximumCachableCharacter> m_shortIdentifiers; - FixedArray<Identifier, MaximumCachableCharacter> m_recentIdentifiers; + std::array<Identifier, MaximumCachableCharacter> m_shortIdentifiers; + std::array<Identifier, MaximumCachableCharacter> m_recentIdentifiers; ALWAYS_INLINE const Identifier makeIdentifier(const LChar* characters, size_t length); ALWAYS_INLINE const Identifier makeIdentifier(const UChar* characters, size_t length); }; |