Created
June 13, 2019 17:20
-
-
Save hotsphink/a9ff1de36079a791ae631c84bbf73084 to your computer and use it in GitHub Desktop.
mkgist-created gist
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
| 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