diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/BooleanConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/BooleanConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/BooleanConstructor.cpp b/Libraries/LibJS/Runtime/BooleanConstructor.cpp index 96a66a2f0b..64910080c1 100644 --- a/Libraries/LibJS/Runtime/BooleanConstructor.cpp +++ b/Libraries/LibJS/Runtime/BooleanConstructor.cpp @@ -36,8 +36,8 @@ namespace JS { BooleanConstructor::BooleanConstructor() : NativeFunction("Boolean", *interpreter().global_object().function_prototype()) { - put("prototype", Value(interpreter().global_object().boolean_prototype()), 0); - put("length", Value(1), Attribute::Configurable); + define_property("prototype", Value(interpreter().global_object().boolean_prototype()), 0); + define_property("length", Value(1), Attribute::Configurable); } BooleanConstructor::~BooleanConstructor() |