Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 8b44eceaf006dc61dd0fda63f456956b88a11e94..2b21278b240373ff48639a50b7d2520933ae7a08 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1756,7 +1756,7 @@ MaybeObject* JSObject::AddProperty(String* name, |
Heap* heap = GetHeap(); |
if (!map_of_this->is_extensible()) { |
if (strict_mode == kNonStrictMode) { |
- return heap->undefined_value(); |
+ return value; |
} else { |
Handle<Object> args[1] = {Handle<String>(name)}; |
return heap->isolate()->Throw( |