Last active
August 29, 2015 14:07
-
-
Save bkardell/18e6d275b91a9923fb47 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
require(["foo"], function (foo) { | |
try { | |
foo.bar(); // foo does nothing with z below, or x | |
} catch (e) { | |
debugger; // sometimes I hit this and it reports z undefined? | |
console.error("wtf", e); | |
} | |
}); | |
function x () { | |
// z is undefined... | |
console.log(z.length); | |
}; | |
// X should not be able to interfere with foo.bar(), right? | |
x(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment