Skip to content

Instantly share code, notes, and snippets.

@bozzmob
Created June 14, 2016 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bozzmob/324c84eca02faff0d02036635210b108 to your computer and use it in GitHub Desktop.
Save bozzmob/324c84eca02faff0d02036635210b108 to your computer and use it in GitHub Desktop.
(async function testingAsyncAwait() {
await console.log("For Trump's Sake Print me!");
})();
@bozzmob
Copy link
Author

bozzmob commented Jun 14, 2016

Terminal Logs

BOZZMOB-M-T0HZ:rest bozzmob$ node helloz.js 
/Users/bozzmob/Documents/work/nextgennms/rest/helloz.js:1
(function (exports, require, module, __filename, __dirname) { (async function testingAsyncAwait() {
                                                                     ^^^^^^^^
SyntaxError: Unexpected token function
    at Object.exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:513:28)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:456:3
BOZZMOB-M-T0HZ:rest bozzmob$ node -v
v6.2.1

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