Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index ecd31f7f5b531a6cc05d041d247704a0429dcf22..4f69a12f64e9c60fcfa7a08cd54b14a8ec80fc10 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -6144,11 +6144,11 @@ bool JSReceiver::OrdinaryDefineOwnProperty(LookupIterator* it, |
Handle<Object> getter( |
desc->has_get() |
? desc->get() |
- : Handle<Object>::cast(isolate->factory()->undefined_value())); |
+ : Handle<Object>::cast(isolate->factory()->null_value())); |
Handle<Object> setter( |
desc->has_set() |
? desc->set() |
- : Handle<Object>::cast(isolate->factory()->undefined_value())); |
+ : Handle<Object>::cast(isolate->factory()->null_value())); |
MaybeHandle<Object> result = |
JSObject::DefineAccessor(it, getter, setter, desc->ToAttributes()); |
if (result.is_null()) return false; |
@@ -6341,15 +6341,15 @@ bool JSReceiver::OrdinaryDefineOwnProperty(LookupIterator* it, |
Handle<Object> getter( |
desc->has_get() |
? desc->get() |
- : current.has_get() ? current.get() |
- : Handle<Object>::cast( |
- isolate->factory()->undefined_value())); |
+ : current.has_get() |
+ ? current.get() |
+ : Handle<Object>::cast(isolate->factory()->null_value())); |
Handle<Object> setter( |
desc->has_set() |
? desc->set() |
- : current.has_set() ? current.set() |
- : Handle<Object>::cast( |
- isolate->factory()->undefined_value())); |
+ : current.has_set() |
+ ? current.set() |
+ : Handle<Object>::cast(isolate->factory()->null_value())); |
MaybeHandle<Object> result = |
JSObject::DefineAccessor(it, getter, setter, attrs); |
if (result.is_null()) return false; |