Skip to content

Instantly share code, notes, and snippets.

@lucas-silveira
Last active October 15, 2020 01:28
Show Gist options
  • Select an option

  • Save lucas-silveira/4ff6337d1ef88e0509b224079940b0e0 to your computer and use it in GitHub Desktop.

Select an option

Save lucas-silveira/4ff6337d1ef88e0509b224079940b0e0 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