jashkenas/coffeescript

Support export destructured assignment

Open

#5.100 geöffnet am 26. Aug. 2018

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)CoffeeScript (1.980 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (16.577 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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:

Contributor Guide