Fix unicode handling in generated function names (#14047)

This commit is contained in:
Sneh Khatri
2021-12-21 02:33:35 +05:30
committed by GitHub
parent ad17fe1cce
commit d6ff91d560
10 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
var o = {
"\uD835\uDC9C"() {}
};

View File

@@ -0,0 +1,4 @@
{
"plugins": ["transform-function-name", "transform-shorthand-properties"],
"targets": { "firefox": 52 }
}

View File

@@ -0,0 +1,3 @@
var o = {
"\uD835\uDC9C": function () {}
};

View File

@@ -0,0 +1,3 @@
var o = {
"\uD835\uDC9C"() {}
};

View File

@@ -0,0 +1,4 @@
{
"plugins": ["transform-function-name", "transform-shorthand-properties"],
"targets": { "firefox": 60 }
}

View File

@@ -0,0 +1,3 @@
var o = {
"\uD835\uDC9C": function 𝒜() {}
};