Skip to content

Instantly share code, notes, and snippets.

@bkardell
Last active August 29, 2015 14:07
Show Gist options
  • Save bkardell/18e6d275b91a9923fb47 to your computer and use it in GitHub Desktop.
Save bkardell/18e6d275b91a9923fb47 to your computer and use it in GitHub Desktop.
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