DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.56k stars 33 forks source link

REPL needs to wrap object patterns #1581

Closed edemaine closed 2 weeks ago

edemaine commented 2 weeks ago
🐱> import { create } from 'qrcode'
...
var create;(async ()=>{ {create} = await import('qrcode');return {create}})()
                                 ^

Uncaught SyntaxError: Unexpected token '='

While const {create} = ... doesn't need a paren wrapper, {create} = ... does.