minor fixes
This commit is contained in:
parent
b1b66a3065
commit
8365ea7163
6 changed files with 22 additions and 22 deletions
|
@ -122,7 +122,7 @@ user.name = "Pete"; // Error: Cannot assign to read only property 'name'...
|
|||
|
||||
Now no one can change the name of our user, unless they apply their own `defineProperty` to override ours.
|
||||
|
||||
```smart header="Errors appear only in use strict"
|
||||
```smart header="Errors appear only in strict mode"
|
||||
In the non-strict mode, no errors occur when writing to read-only properties and such. But the operation still won't succeed. Flag-violating actions are just silently ignored in non-strict.
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue