Skip to content

[Bug] Removal of quotes for property names with special unicode still broken #627

@patrick-steele-idem

Description

@patrick-steele-idem

Despite PR #543 - Fix removal of quotes from property names, there is still a problem with how quotes are removed from property names that can be noticed when trying to load the minified he library in the latest Safari.

To clarify, given the following input file:

module.exports = {
    '\uD835\uDCB6': 'ascr'
};

The babili output is the following:

module.exports={𝒶:'ascr'}

If you try to load that in Safari you get the following error:

SyntaxError: Invalid character '\u55349'

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions