Add # to the private name in "write-only" errors (#12713)

This commit is contained in:
Nicolò Ribaudo
2021-01-29 17:58:13 +01:00
committed by GitHub
parent 0138553403
commit 3d69dc9471
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class Cl {
value: 0
});
this.publicField = babelHelpers.writeOnlyError("privateFieldValue");
this.publicField = babelHelpers.writeOnlyError("#privateFieldValue");
}
}