Index: test/mjsunit/object-define-property.js |
diff --git a/test/mjsunit/object-define-property.js b/test/mjsunit/object-define-property.js |
index 432fbdf7fc3c325bccd11cd81e8e0f9d41a75d0b..9384a357bae1da251e9b44c0123bf037ff40ea4a 100644 |
--- a/test/mjsunit/object-define-property.js |
+++ b/test/mjsunit/object-define-property.js |
@@ -1075,3 +1075,13 @@ assertEquals(999, o[999]); |
assertEquals(2, arg0); |
assertEquals(3, arguments[0]); |
})(0); |
+ |
+ |
+// Regression test: We should never observe the hole value. |
+var objectWithGetter = {}; |
+objectWithGetter.__defineGetter__('foo', function() {}); |
+assertEquals(undefined, objectWithGetter.__lookupSetter__('foo')); |
+ |
+var objectWithSetter = {}; |
+objectWithSetter.__defineSetter__('foo', function(x) {}); |
+assertEquals(undefined, objectWithSetter.__lookupGetter__('foo')); |