Skip to content

exporting destructured variables fails #382

@easrng

Description

@easrng

minimal repro:

~ $ cat a.mjs
import * as mod from "./a.mjs"
export const { a, b, c } = { a: 1, b: 2, c: 3 };  export const d = 4;
console.log(JSON.stringify({                        type: typeof mod,
  keys: Object.keys(mod),
}));
~ $ node a.mjs
{"type":"object","keys":["a","b","c","d"]}
~ $ qjs -m a.mjs
{"type":"object","keys":["d"]}
~ $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions