Index: test/mjsunit/harmony/object-observe.js |
diff --git a/test/mjsunit/harmony/object-observe.js b/test/mjsunit/harmony/object-observe.js |
index e2cc3f9d45bcdc29da5526e2afdfaf6e68e6b31a..922a5f3dc7e8816172de64d3e76065a7a666cfba 100644 |
--- a/test/mjsunit/harmony/object-observe.js |
+++ b/test/mjsunit/harmony/object-observe.js |
@@ -98,10 +98,12 @@ Object.defineProperty(changeRecordWithAccessor, 'name', { |
assertThrows(function() { Object.observe("non-object", observer.callback); }, TypeError); |
assertThrows(function() { Object.observe(obj, nonFunction); }, TypeError); |
assertThrows(function() { Object.observe(obj, frozenFunction); }, TypeError); |
+assertEquals(obj, Object.observe(obj, observer.callback)); |
// Object.unobserve |
assertThrows(function() { Object.unobserve(4, observer.callback); }, TypeError); |
assertThrows(function() { Object.unobserve(obj, nonFunction); }, TypeError); |
+assertEquals(obj, Object.unobserve(obj, observer.callback)); |
// Object.getNotifier |
var notifier = Object.getNotifier(obj); |