fix
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index 6c9cba8..0d2f043 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -119,7 +119,7 @@
     new (&stringData) std::shared_ptr<StringData>(other.stringData);
     return;
   }
-  if (other.isString()) {
+  if (other.isStringView()) {
     new (&stringViewData) std::shared_ptr<StringViewData>(other.stringViewData);
     return;
   }
@@ -269,7 +269,7 @@
 }
 
 std::shared_ptr<StringViewData> Literal::getStringViewData() const {
-  assert(isString());
+  assert(isStringView());
   return stringViewData;
 }