Index: src/api-natives.cc |
diff --git a/src/api-natives.cc b/src/api-natives.cc |
index 5ee4e197f46c7baec42945a87c294d1ac150a2d2..0a070ced2417bce65c960fd7e08ea8d67c130433 100644 |
--- a/src/api-natives.cc |
+++ b/src/api-natives.cc |
@@ -102,8 +102,10 @@ MaybeHandle<Object> DefineDataProperty(Isolate* isolate, |
} |
#endif |
- return Object::AddDataProperty(&it, value, attributes, STRICT, |
- Object::CERTAINLY_NOT_STORE_FROM_KEYED); |
+ MAYBE_RETURN_NULL( |
+ Object::AddDataProperty(&it, value, attributes, Object::THROW_ON_ERROR, |
+ Object::CERTAINLY_NOT_STORE_FROM_KEYED)); |
+ return value; |
} |