Skip to content

Commit 371a52b

Browse files
vsemozhetbytbevacqua
authored andcommitted
ch03: fix possible typo in "Local Symbols" section (#60)
1 parent c48753b commit 371a52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch03.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ console.log(JSON.stringify(character))
428428
// <- '{"name":"Penguin"}'
429429
----
430430

431-
That being said, symbols are by no means a safe mechanism to conceal properties. Even though you won't stumble upon symbol properties when using reflection or serialization methods, symbols are revealed by a dedicated method as shown in the next snippet of code. In other words, symbols are not nonenumerable, but hidden in plain sight. Using `Object.getOwnPropertySymbols` we can retrieve all symbols used as property keys on any given object.
431+
That being said, symbols are by no means a safe mechanism to conceal properties. Even though you won't stumble upon symbol properties when using pre-ES6 reflection, iteration or serialization methods, symbols are revealed by a dedicated method as shown in the next snippet of code. In other words, symbols are not nonenumerable, but hidden in plain sight. Using `Object.getOwnPropertySymbols` we can retrieve all symbols used as property keys on any given object.
432432

433433
[source,javascript]
434434
----

0 commit comments

Comments
 (0)