Change double quotes for backtick to fix rendering
This commit is contained in:
parent
6c7c7d38ca
commit
b64d7af3ef
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ As we see from the code, the assignment to a primitive `5` is ignored.
|
||||||
|
|
||||||
That can become a source of bugs and even vulnerabilities if we intend to store arbitrary key-value pairs in an object, and allow a visitor to specify the keys.
|
That can become a source of bugs and even vulnerabilities if we intend to store arbitrary key-value pairs in an object, and allow a visitor to specify the keys.
|
||||||
|
|
||||||
In that case the visitor may choose "__proto__" as the key, and the assignment logic will be ruined (as shown above).
|
In that case the visitor may choose `__proto__` as the key, and the assignment logic will be ruined (as shown above).
|
||||||
|
|
||||||
There is a way to make objects treat `__proto__` as a regular property, which we'll cover later, but first we need to know more about objects.
|
There is a way to make objects treat `__proto__` as a regular property, which we'll cover later, but first we need to know more about objects.
|
||||||
There's also another data structure [Map](info:map-set-weakmap-weakset), that we'll learn in the chapter <info:map-set-weakmap-weakset>, which supports arbitrary keys.
|
There's also another data structure [Map](info:map-set-weakmap-weakset), that we'll learn in the chapter <info:map-set-weakmap-weakset>, which supports arbitrary keys.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue