Skip to content

Commit 18bc88b

Browse files
committed
AK: Add an identity implementation of StringView::from_string_literal()
This is required for the Jakt runtime.
1 parent e591c60 commit 18bc88b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

AK/StringView.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ class StringView {
4040
{
4141
}
4242

43+
// Note: This is here for Jakt.
44+
ALWAYS_INLINE static StringView from_string_literal(StringView string)
45+
{
46+
return string;
47+
}
48+
4349
StringView(ByteBuffer const&);
4450
#ifndef KERNEL
4551
StringView(String const&);

0 commit comments

Comments
 (0)