Created
August 12, 2016 15:08
-
-
Save dhoko/a1a3822501652c6a8caa8ea45340a9d3 to your computer and use it in GitHub Desktop.
Watch new property attach to window with a stacktrace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Object.defineProperty(window, 'data', {set: function () {console.trace()}, get: function () {return 1}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment