Skip to content

Commit

Permalink
Add missing function if there is no ENABLE_COMPRESSIBLE_STRING flag
Browse files Browse the repository at this point in the history
Signed-off-by: Seonghyun Kim <[email protected]>
  • Loading branch information
ksh8281 authored and clover2123 committed Jun 28, 2024
1 parent 3024cb7 commit db24c80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/api/EscargotPublic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,13 @@ StringRef* StringRef::createFromUTF8ToCompressibleString(VMInstanceRef* instance
return nullptr;
}

StringRef* StringRef::createFromUTF16ToCompressibleString(VMInstanceRef* instance, const char16_t* s, size_t len)
{
ESCARGOT_LOG_ERROR("If you want to use this function, you should enable string compression");
RELEASE_ASSERT_NOT_REACHED();
return nullptr;
}

StringRef* StringRef::createFromASCIIToCompressibleString(VMInstanceRef* instance, const char* s, size_t len)
{
ESCARGOT_LOG_ERROR("If you want to use this function, you should enable string compression");
Expand Down

0 comments on commit db24c80

Please sign in to comment.