Skip to content

Instantly share code, notes, and snippets.

@mr-parus
Last active May 4, 2019 09:54
Show Gist options
  • Save mr-parus/6d621c3e9f595cdbe9fd5d274adad43a to your computer and use it in GitHub Desktop.
Save mr-parus/6d621c3e9f595cdbe9fd5d274adad43a to your computer and use it in GitHub Desktop.
var theThing = null;
var replaceThing = function () {
var originalThing = theThing;
var unused = function () {
if (originalThing)
console.log("hi");
};
theThing = {
longStr: new Array(1000000).join('*'),
someMethod: function () {
console.log(someMessage);
}
};
};
setInterval(replaceThing, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment