Given that private fields can only be used within classes, any code using them must be in a strict mode context. As private fields cannot be deleted, throw an early SyntaxError.
8 lines
138 B
JSON
8 lines
138 B
JSON
{
|
|
"throws": "Deleting a private field is not allowed (4:4)",
|
|
"plugins": [
|
|
"classProperties",
|
|
"classPrivateProperties"
|
|
]
|
|
}
|