Other than regularly polling for changes, is there any (standard) way to register an event or callback that will be triggered any time a new property is added to a specific object?
Other than regularly polling for changes, is there any (standard) way to register an
Share
Simply put, the answer is no.
Mozilla’s JavaScript implementation has an overload for unresolvable methods, but it doesn’t work for standard properties, see
__noSuchMethod__. Of course, you asked for a standard method and no other implementations support this as far as I’m aware.