Skip to content

Unexpect Nul Error of CString while creating javascript object #2110

@hyf0

Description

@hyf0

Related:

Rollup use '\0' as the virtual module convention, which some modules might have names like "\0some-virtual-modules". Rolldown follows the behavior, but there's a error occrured in such code: https://github.com/rolldown/rolldown/blob/49d4b5c03ab699d71125782c746d15b9b276821c/crates/rolldown/src/utils/chunk/render_chunk.rs#L76-L78

I guess this is due to NAPI-RS use CString on places doesn't require to be valid CString.

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