|
@@ -71,7 +71,7 @@ void ScriptFunction::initialize(GlobalObject& global_object)
|
|
if (!m_is_arrow_function) {
|
|
if (!m_is_arrow_function) {
|
|
Object* prototype = vm.heap().allocate<Object>(global_object, *global_object.new_script_function_prototype_object_shape());
|
|
Object* prototype = vm.heap().allocate<Object>(global_object, *global_object.new_script_function_prototype_object_shape());
|
|
prototype->define_property(vm.names.constructor, this, Attribute::Writable | Attribute::Configurable);
|
|
prototype->define_property(vm.names.constructor, this, Attribute::Writable | Attribute::Configurable);
|
|
- define_property(vm.names.prototype, prototype, 0);
|
|
|
|
|
|
+ define_property(vm.names.prototype, prototype, Attribute::Writable);
|
|
}
|
|
}
|
|
define_native_property(vm.names.length, length_getter, nullptr, Attribute::Configurable);
|
|
define_native_property(vm.names.length, length_getter, nullptr, Attribute::Configurable);
|
|
define_native_property(vm.names.name, name_getter, nullptr, Attribute::Configurable);
|
|
define_native_property(vm.names.name, name_getter, nullptr, Attribute::Configurable);
|