mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +00:00
LibJS: Add Cell::interpreter() convenience helper
This allows you to go from any Cell* to the Interpreter.
This commit is contained in:
parent
fbefb19e10
commit
9b4358e150
3 changed files with 9 additions and 0 deletions
|
@ -53,6 +53,8 @@ public:
|
|||
|
||||
void collect_garbage();
|
||||
|
||||
Interpreter& interpreter() { return m_interpreter; }
|
||||
|
||||
private:
|
||||
Cell* allocate_cell(size_t);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue