Created
December 10, 2014 05:17
-
-
Save jkrems/22260ee220452ec03131 to your computer and use it in GitHub Desktop.
What could go wrong..?
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
import * as assert from 'assert'; | |
import { MY_FLAG } from './trust'; | |
assert.ok(MY_FLAG === 1); | |
setTimeout(function() { | |
try { | |
assert.ok(MY_FLAG === 1); | |
} catch (err) { | |
console.log('Just ES6 things.'); | |
} | |
}, 10); |
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
export let MY_FLAG = 1; | |
setTimeout(function() { MY_FLAG = 0; }, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More realistic example: