Index: src/object-observe.js |
diff --git a/src/object-observe.js b/src/object-observe.js |
index 28aa1f4e4e988caf624efcfd72df9c5d83325e30..61f8aa3a016bb92d90c29aab095e653dfd9b7bbe 100644 |
--- a/src/object-observe.js |
+++ b/src/object-observe.js |
@@ -100,6 +100,8 @@ function ObjectObserve(object, callback) { |
function ObjectUnobserve(object, callback) { |
if (!IS_SPEC_OBJECT(object)) |
throw MakeTypeError("observe_non_object", ["unobserve"]); |
+ if (!IS_SPEC_FUNCTION(callback)) |
+ throw MakeTypeError("observe_non_function", ["unobserve"]); |
var objectInfo = objectInfoMap.get(object); |
if (IS_UNDEFINED(objectInfo)) |