Last active
December 9, 2017 13:51
-
-
Save brainysmurf/62f3c1eeef9cc06a483189bc7c4643ef to your computer and use it in GitHub Desktop.
Mine
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 Package () { | |
return { | |
output: function () { return "works"; } | |
} | |
} |
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 () { | |
return { | |
version: 1, | |
packages: [ | |
{"other": "56741f4ad0bc607d3b531678dbae41ba"}, | |
] | |
}; | |
})(); |
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 Tests () { | |
var myself = Package(); | |
var someoneElse = pkg.other(); // huh? | |
if (myself.output() == 'works') { | |
if (someoneElse.spooky() == "BOO!") { | |
throw Error("Successful"); | |
} | |
} else { | |
throw Error("NOPE"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment