mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibJS: Remove a bunch of unnecessary uses of Cell::interpreter()
We'll want to get rid of all uses of this, to free up the engine from the old assumption that there's always an Interpreter available.
This commit is contained in:
parent
591b7b7031
commit
063acda76e
9 changed files with 13 additions and 21 deletions
|
@ -24,7 +24,6 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <LibJS/Interpreter.h>
|
||||
#include <LibJS/Runtime/BooleanObject.h>
|
||||
#include <LibJS/Runtime/GlobalObject.h>
|
||||
|
||||
|
@ -32,8 +31,7 @@ namespace JS {
|
|||
|
||||
BooleanObject* BooleanObject::create(GlobalObject& global_object, bool value)
|
||||
{
|
||||
auto& interpreter = global_object.interpreter();
|
||||
return interpreter.heap().allocate<BooleanObject>(global_object, value, *global_object.boolean_prototype());
|
||||
return global_object.heap().allocate<BooleanObject>(global_object, value, *global_object.boolean_prototype());
|
||||
}
|
||||
|
||||
BooleanObject::BooleanObject(bool value, Object& prototype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue