Created
December 18, 2017 23:48
-
-
Save qpfiffer/5e31523ffaa561dee14d75063cbf3999 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
// Runs and works as expected: | |
let err = null | |
var userQueryResult | |
[userQueryResult, err] = await to(function()) | |
// throws an error: | |
let err = null | |
var userQueryResult = null | |
[userQueryResult, err] = await to(function()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment