[[Notifier]] is initialized to undefined when an object is created. This means that, for example:
// Realm1
var obj = {};
...
// Realm2
otherRealm.obj.foo = 'bar'
obj's [[Notifier]] is now in Realm 2, since GetNotifier is called by EnqueueChangeRecord.
Ideally the [[Notifier]] should belong to the same realm as the object, but this might have implementation difficulties in some engines.
[[Notifier]]is initialized toundefinedwhen an object is created. This means that, for example:obj's[[Notifier]]is now in Realm 2, sinceGetNotifieris called byEnqueueChangeRecord.Ideally the
[[Notifier]]should belong to the same realm as the object, but this might have implementation difficulties in some engines.