web-maker icon indicating copy to clipboard operation
web-maker copied to clipboard

Async/Await not supported

Open lsbyerley opened this issue 7 years ago • 1 comments

I created a simple vue app with an async method to pull in test data. Web Maker gives out the unexpected identifier error at the line where i await the request. Is there a way to support async/await operations?

new Vue({
  el: '#app',
  data: () => ({
    posts: []
  }),
  mounted() {
    this.loadData()
  },
  methods: {
    async loadData() {
      const res = await axios.get('https://jsonplaceholder.typicode.com/posts')
      this.posts = res.data
    }       
  }
})

lsbyerley avatar May 17 '18 13:05 lsbyerley

Seems like it's time to update Esprima. Will check with latest Esprima and update here.

chinchang avatar May 17 '18 19:05 chinchang