Last active
August 29, 2015 13:59
-
-
Save nhunzaker/10939618 to your computer and use it in GitHub Desktop.
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
const DREAMLAND = true; | |
function halp() { | |
if (DREAMLAND) { | |
let santa = "I do exist" | |
} | |
console.log(typeof santa) // => undefined | |
} |
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
$traceurRuntime.ModuleStore.getAnonymousModule(function() { | |
"use strict"; | |
var DREAMLAND = true; | |
function halp() { | |
if (DREAMLAND) { | |
try { | |
throw undefined; | |
} catch (santa) { | |
santa = "I do exist"; | |
} | |
} | |
console.log((typeof santa === 'undefined' ? 'undefined' : $traceurRuntime.typeof(santa))); | |
} | |
return {}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment