Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b64d7af

Browse files
Change double quotes for backtick to fix rendering
1 parent 6c7c7d3 commit b64d7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎1-js/04-object-basics/01-object/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ As we see from the code, the assignment to a primitive `5` is ignored.
232232
233233
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.
234234
235-
In that case the visitor may choose "__proto__" as the key, and the assignment logic will be ruined (as shown above).
235+
In that case the visitor may choose `__proto__` as the key, and the assignment logic will be ruined (as shown above).
236236
237237
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.
238238
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.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /