Skip to content

Instantly share code, notes, and snippets.

@bozzmob
Created December 10, 2015 20:27
Show Gist options
  • Save bozzmob/f5ef1c0eff9d7e7f853d to your computer and use it in GitHub Desktop.
Save bozzmob/f5ef1c0eff9d7e7f853d to your computer and use it in GitHub Desktop.
basic-async-await.js
var obj = {};
console.log("hello");
setObj: async function(a,b){
obj.a = a;
obj.b = b;
};
await setObj(2,3);
console.log(obj.a+obj.b);
@bozzmob
Copy link
Author

bozzmob commented Dec 10, 2015

Screenshot of the Error-

From Firefox
screenshot from 2015-12-11 02 37 05

From Chrome(latest)
screenshot from 2015-12-11 02 37 55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment