jquery / esprima

ECMAScript parsing infrastructure for multipurpose analysis
http://esprima.org
BSD 2-Clause "Simplified" License
7.05k stars 787 forks source link

Now,this Project Support decorator? #1959

Open thecatshidog opened 5 years ago

thecatshidog commented 5 years ago

hello,use this project in ES7,but not support decorator?

class OrderController {
  /**
   * @type methods
   */
  @route()
  async submitOrder(ctx) {
    return await OrderService.submitOrder(ctx);
  };
}

report Unexpected token ILLEGAL on zsh

JosephPecoraro commented 5 years ago

Decorators are currently a Stage 2 proposal: https://github.com/tc39/proposal-decorators