buxlabs / abstract-syntax-tree

A library for working with abstract syntax trees.
MIT License
110 stars 13 forks source link

src: add nullish coalescing operator #102

Closed VoltrexKeyva closed 3 years ago

VoltrexKeyva commented 3 years ago

Added the nullish coalescing operator (??) as one of the logical operators, these will only be executed if the user's installed Node.js version is v14 or higher since the nullish coalescing operator is only supported in Node.js v14 or higher.

emilos commented 3 years ago

@VoltrexMaster thanks! I've dropped the Node 12 support to simplify this and remove the eval call.