mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibJS: Add initial support for creating PrimitiveStrings with AK::String
This will temporarily bloat the size of PrimitiveString as LibJS is transitioned to use String throughout, but will make doing so piecemeal much easier.
This commit is contained in:
parent
0b58748156
commit
8f5bdce8e7
4 changed files with 74 additions and 4 deletions
|
@ -57,6 +57,7 @@ Heap::Heap(VM& vm)
|
|||
|
||||
Heap::~Heap()
|
||||
{
|
||||
vm().string_cache().clear();
|
||||
vm().deprecated_string_cache().clear();
|
||||
collect_garbage(CollectionType::CollectEverything);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue