8000 Better error message for invalid input · Issue #288 · Rich-Harris/magic-string · GitHub
[go: up one dir, main page]

Skip to content
Better error message for invalid input #288
@benmccann

Description

@benmccann

If you pass -1 as the start to update the error you get is:

throw new Error('Cannot overwrite across a split point');

It'd be nice to do some validation and throw a nicer error or include indices in the existing error message

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

      0