Skip to content

Default module name normalizer wrongfully assumes QJS libc/runtime environment #650

@richarddd

Description

@richarddd

Hey,

I saw this PR introduced some backwards compatibility features in the default normalizer:
https://github.com/quickjs-ng/quickjs/pull/618/files#diff-45f1ae674139f993bf8a99c382c1ba4863272a6fec2f492d76d7ff1b2cfcfbe2R26271-R26279

This change introduces issue and potential bugs for users running only quickjs engine, but not runtime.

For instance if we register a "os" module in rquickjs and not using a custom normalizer we'll get warning about qjs prefix which is completely irrelevant.

Correct solution would be to to register a custom normalizer in quickjs-libc that handles this case, or ignore the backwards compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions