summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/ErrorConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/ErrorConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/ErrorConstructor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibJS/Runtime/ErrorConstructor.cpp b/Libraries/LibJS/Runtime/ErrorConstructor.cpp
index a28ee1a47c..91d96b9bf1 100644
--- a/Libraries/LibJS/Runtime/ErrorConstructor.cpp
+++ b/Libraries/LibJS/Runtime/ErrorConstructor.cpp
@@ -34,8 +34,8 @@ namespace JS {
ErrorConstructor::ErrorConstructor()
: NativeFunction("Error", *interpreter().global_object().function_prototype())
{
- put("prototype", interpreter().global_object().error_prototype(), 0);
- put("length", Value(1), Attribute::Configurable);
+ define_property("prototype", interpreter().global_object().error_prototype(), 0);
+ define_property("length", Value(1), Attribute::Configurable);
}
ErrorConstructor::~ErrorConstructor()
@@ -62,8 +62,8 @@ Value ErrorConstructor::construct(Interpreter& interpreter)
ConstructorName::ConstructorName() \
: NativeFunction(*interpreter().global_object().function_prototype()) \
{ \
- put("prototype", interpreter().global_object().snake_name##_prototype(), 0); \
- put("length", Value(1), Attribute::Configurable); \
+ define_property("prototype", interpreter().global_object().snake_name##_prototype(), 0); \
+ define_property("length", Value(1), Attribute::Configurable); \
} \
ConstructorName::~ConstructorName() { } \
Value ConstructorName::call(Interpreter& interpreter) \