Skip to content

Commit 2fe0b6d

Browse files
author
wendy@lastlookeditorial.com
committed
Edited ch06.asciidoc with Atlas code editor
1 parent fc14d1e commit 2fe0b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch06.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ proxy._secretIngredient = 'salsa'
525525
// <- Error: Can't define private "_secretIngredient" property
526526
----
527527

528-
The `proxy` object is safely hiding `_secret` properties ((("_secret properties")))behind a trap that guards them from definition through either `proxy[key] = value` or `Object.defineProperty(proxy, key, { value })`. If we factor in the previous traps we saw, we could prevent `_secret` properties from being read, written, queried, and ((("proxies", "defineProperty trap", startref="prox6defpt")))((("traps", "defineProperty trap", startref="t6defpt")))((("defineProperty trap", startref="defpt6")))created.
528+
The `proxy` object is safely hiding `_secret` properties ((("_secret properties")))((("_secret properties", primary-sortas="secret")))behind a trap that guards them from definition through either `proxy[key] = value` or `Object.defineProperty(proxy, key, { value })`. If we factor in the previous traps we saw, we could prevent `_secret` properties from being read, written, queried, and ((("proxies", "defineProperty trap", startref="prox6defpt")))((("traps", "defineProperty trap", startref="t6defpt")))((("defineProperty trap", startref="defpt6")))created.
529529

530530
There's one more trap that can help conceal `_secret` properties.
531531

0 commit comments

Comments
 (0)