mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS: Reformat BooleanConstructor.{cpp,h}
This commit is contained in:
committed by
Andreas Kling
parent
a31ef54a2a
commit
40ac94995d
@@ -31,13 +31,16 @@
|
||||
#include <LibJS/Runtime/BooleanPrototype.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
BooleanConstructor::BooleanConstructor()
|
||||
{
|
||||
put("prototype", Value(interpreter().boolean_prototype()));
|
||||
put("length", Value(1));
|
||||
}
|
||||
|
||||
BooleanConstructor::~BooleanConstructor() {}
|
||||
BooleanConstructor::~BooleanConstructor()
|
||||
{
|
||||
}
|
||||
|
||||
Value BooleanConstructor::call(Interpreter& interpreter)
|
||||
{
|
||||
@@ -46,7 +49,8 @@ Value BooleanConstructor::call(Interpreter& interpreter)
|
||||
|
||||
Value BooleanConstructor::construct(Interpreter& interpreter)
|
||||
{
|
||||
auto bool_object = interpreter.heap().allocate<BooleanObject>(interpreter.argument(0).to_boolean());
|
||||
auto* bool_object = interpreter.heap().allocate<BooleanObject>(interpreter.argument(0).to_boolean());
|
||||
return Value(bool_object);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user