jashkenas/coffeescript

Support export destructured assignment

Open

#5 100 ouverte le 26 août 2018

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)CoffeeScript (1 980 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (16 577 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Choose one: is this a bug report or feature request? Feature request

@GeoffreyBooth I came across an unsupported export syntax that appears to be standard

Input Code

export {foo, bar} = item

Expected Behavior

Should transpile to export var {foo, bar} = item

Current Behavior

Doesn't compile

Possible Solution

Guessing it won't be bad to add this as a supported grammar rule

Context

Not blocking anything, just came across it while working on AST stuff

Environment

  • CoffeeScript version:
  • Node.js version:

Guide contributeur