This commit is contained in:
Ilya Kantor 2019-09-02 22:08:23 +03:00
parent cc50d03e38
commit 6dd2798597

View file

@ -96,11 +96,10 @@ alert(user.surname); // Cooper
As the result, we have a "virtual" property `fullName`. It is readable and writable, but in fact does not exist. As the result, we have a "virtual" property `fullName`. It is readable and writable, but in fact does not exist.
```smart header="No support for `delete`" ```smart header="No way to handle `delete`"
An attempt to `delete` on accessor property causes an error. There's no similar method to handle deletion of an accessor property. Only getter/setter methods may exist.
``` ```
## Accessor descriptors ## Accessor descriptors
Descriptors for accessor properties are different -- as compared with data properties. Descriptors for accessor properties are different -- as compared with data properties.