summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.h b/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.h
index b200b0b068..32f732c157 100644
--- a/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.h
+++ b/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.h
@@ -6,6 +6,7 @@
#pragma once
+#include <AK/StringView.h>
#include <LibJS/Runtime/NativeFunction.h>
namespace JS {
@@ -13,7 +14,7 @@ namespace JS {
struct AlreadyResolved final : public Cell {
bool value { false };
- virtual const char* class_name() const override { return "AlreadyResolved"; }
+ virtual StringView class_name() const override { return "AlreadyResolved"sv; }
protected:
// Allocated cells must be >= sizeof(FreelistEntry), which is 24 bytes -