Skip to content

Instantly share code, notes, and snippets.

@hotsphink
Created June 13, 2019 17:20
Show Gist options
  • Select an option

  • Save hotsphink/a9ff1de36079a791ae631c84bbf73084 to your computer and use it in GitHub Desktop.

Select an option

Save hotsphink/a9ff1de36079a791ae631c84bbf73084 to your computer and use it in GitHub Desktop.
mkgist-created gist
function stuff() {
const getStrings = (strings, ...values) => strings;
const getRef = eval('() => getStrings`test`');
let wait = 0;
let ref = getRef();
let state = inIon();
const go = () => {
const newRef = getRef();
if (newRef !== ref) {
print('New ref 😢');
ref = newRef;
}
if (state != inIon()) {
print("Changed inIon? from " + state + " to " + !state);
state = inIon();
}
};
go();
for (let i = 0; i < 10000; i++)
go();
gc('shrinking');
gc('shrinking');
gc('shrinking');
go();
}
stuff();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment