Add # to the private name in "write-only" errors (#12713)
This commit is contained in:
@@ -228,7 +228,7 @@ const privateNameHandlerSpec = {
|
||||
if (!getId && setId) {
|
||||
if (file.availableHelper("writeOnlyError")) {
|
||||
return t.callExpression(file.addHelper("writeOnlyError"), [
|
||||
t.stringLiteral(name),
|
||||
t.stringLiteral(`#${name}`),
|
||||
]);
|
||||
}
|
||||
console.warn(
|
||||
|
||||
Reference in New Issue
Block a user