var element = new Image(); Object.defineProperty(element, "id", { get: function () { debugger; }, }); requestAnimationFrame(function check() { console.dir(element); requestAnimationFrame(check); });
See also: