Index: src/object-observe.js |
diff --git a/src/object-observe.js b/src/object-observe.js |
index ef3f0aa18d6343f32419f6a6faa36c35dd21a898..5c0e339c2d02860c6811a86882e091372f0d1931 100644 |
--- a/src/object-observe.js |
+++ b/src/object-observe.js |
@@ -388,6 +388,8 @@ function ObjectObserve(object, callback, acceptList) { |
throw MakeTypeError(kObserveNonObject, "observe", "observe"); |
if (%IsJSGlobalProxy(object)) |
throw MakeTypeError(kObserveGlobalProxy, "observe"); |
+ if (%IsAccessCheckNeeded(object)) |
+ throw MakeTypeError(kObserveAccessChecked, "observe"); |
if (!IS_CALLABLE(callback)) |
throw MakeTypeError(kObserveNonFunction, "observe"); |
if (ObjectIsFrozen(callback)) |
@@ -616,6 +618,8 @@ function ObjectGetNotifier(object) { |
throw MakeTypeError(kObserveNonObject, "getNotifier", "getNotifier"); |
if (%IsJSGlobalProxy(object)) |
throw MakeTypeError(kObserveGlobalProxy, "getNotifier"); |
+ if (%IsAccessCheckNeeded(object)) |
+ throw MakeTypeError(kObserveAccessChecked, "getNotifier"); |
if (ObjectIsFrozen(object)) return null; |