blob: b9e24d7c5f3db2525f67fc5b067b257d28100aeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/String.h>
#include <LibJS/Heap/Cell.h>
namespace JS {
class PrimitiveString final : public Cell {
public:
explicit PrimitiveString(String);
virtual ~PrimitiveString();
const String& string() const { return m_string; }
private:
virtual const char* class_name() const override { return "PrimitiveString"; }
String m_string;
};
PrimitiveString* js_string(Heap&, String);
PrimitiveString* js_string(VM&, String);
}
|