Skip to content

Segmentation fault with cyclic imports  #329

@malbarbo

Description

@malbarbo

To reproduce create two files a.mjs and b.mjs and run qjs a.mjs.

a.mjs:

import { fb } from "./b.mjs";
export { fb };

b.mjs:

import * as $a from "a.mjs";
export function fb() {};

There is no crash if export { fb }; is removed from a.mjs or the import in b.mjs is changed to import {} from "a.mjs";.

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