From db24c809c8079f76a2286beb029c57d5b745c8a9 Mon Sep 17 00:00:00 2001 From: Seonghyun Kim Date: Fri, 28 Jun 2024 10:50:01 +0900 Subject: [PATCH] Add missing function if there is no ENABLE_COMPRESSIBLE_STRING flag Signed-off-by: Seonghyun Kim --- src/api/EscargotPublic.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/api/EscargotPublic.cpp b/src/api/EscargotPublic.cpp index 103fae942..1061069ac 100644 --- a/src/api/EscargotPublic.cpp +++ b/src/api/EscargotPublic.cpp @@ -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");