1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

LibJS: Remove the seal/unseal of Bytecode::Block again

This partially reverts c6ce7c9326.
The munmap part of that change was good, but we can't seal the blocks
since that breaks NewString and other ops that have String members.
This commit is contained in:
Andreas Kling 2021-06-08 21:39:50 +02:00
parent 9bed2e4f4a
commit 949ceedaed
2 changed files with 6 additions and 16 deletions

View file

@ -42,8 +42,7 @@ public:
static NonnullOwnPtr<Block> create();
~Block();
void seal() const;
void unseal();
void seal();
void dump() const;
ReadonlyBytes instruction_stream() const { return ReadonlyBytes { m_buffer, m_buffer_size }; }