Index: test/mjsunit/es7/object-observe.js |
diff --git a/test/mjsunit/es7/object-observe.js b/test/mjsunit/es7/object-observe.js |
index 99fa38a8573f1f2db70b3c2a0875d61132202c8b..ad47da56513e02cc1f11b43dfae008b16d11365d 100644 |
--- a/test/mjsunit/es7/object-observe.js |
+++ b/test/mjsunit/es7/object-observe.js |
@@ -1824,3 +1824,16 @@ for (var b1 = 0; b1 < 2; ++b1) |
{ object: fun, type: 'add', name: 'name' }, |
]); |
})(); |
+ |
+ |
+(function TestObserveInvalidAcceptMessage() { |
+ var ex; |
+ try { |
+ Object.observe({}, function(){}, "not an object"); |
+ } catch (e) { |
+ ex = e; |
+ } |
+ assertInstanceof(ex, TypeError); |
+ assertEquals("Third argument to Object.observe must be an array of strings.", |
+ ex.message); |
+})() |