News for hackers. Stuff that matters.
Re:Node v8.0.0 Released by flavio81 on Wednesday May 31, 2017 @03:26AM (#14450920)
It really should be:

   try{
        x = await fs.writeFilePromise("Hello, World", "helloworld.txt")
        console.log("done!")
   }
   catch(error)
   {
        console.error(error) // or console.log
   }
This takes advantage of promises fully.

There are no comments on this comment yet.