Skip to content

Commit db24c80

Browse files
ksh8281clover2123
authored andcommitted
Add missing function if there is no ENABLE_COMPRESSIBLE_STRING flag
Signed-off-by: Seonghyun Kim <[email protected]>
1 parent 3024cb7 commit db24c80

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/api/EscargotPublic.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,13 @@ StringRef* StringRef::createFromUTF8ToCompressibleString(VMInstanceRef* instance
606606
return nullptr;
607607
}
608608

609+
StringRef* StringRef::createFromUTF16ToCompressibleString(VMInstanceRef* instance, const char16_t* s, size_t len)
610+
{
611+
ESCARGOT_LOG_ERROR("If you want to use this function, you should enable string compression");
612+
RELEASE_ASSERT_NOT_REACHED();
613+
return nullptr;
614+
}
615+
609616
StringRef* StringRef::createFromASCIIToCompressibleString(VMInstanceRef* instance, const char* s, size_t len)
610617
{
611618
ESCARGOT_LOG_ERROR("If you want to use this function, you should enable string compression");

0 commit comments

Comments
 (0)