Skip to content

Commit 24e3636

Browse files
author
wendy@lastlookeditorial.com
committed
Edited ch06.asciidoc with Atlas code editor
1 parent d154941 commit 24e3636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch06.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ console.log('furBall' in cat)
377377
// <- false
378378
----
379379

380-
The code in the last example where we prevented access to prefixed properties has a problem: you can't change the value of a `_secret` property, nor even use `in` to learn about its existence, but you still can remove the property entirely using the `delete` operator through the `proxy` object. The following code sample shows that shortcoming in action.
380+
The code in the last example where we prevented access to prefixed properties has a problem: you can't change the value of a `_secret` property, (((" _secret properties", id="sp6")))nor even use `in` to learn about its existence, but you still can remove the property entirely using the `delete` operator through the `proxy` object. The following code sample shows that shortcoming in action.
381381

382382
[source,javascript]
383383
----
@@ -430,7 +430,7 @@ delete proxy._secret
430430
// <- Error: Can't delete private "_secret" property
431431
----
432432

433-
Consumers interacting with `target` through the `proxy` can no longer delete properties in the `_secret` property space. That's one less thing to worry ((("proxies", "deleteProperty trap", startref="prox6dpt")))((("traps", "deleteProperty trap", startref="trap6dpt")))((("deleteProperty trap", startref="dpt6")))about!
433+
Consumers interacting with `target` through the `proxy` can no longer delete properties in the `_secret` property space. That's one less thing to worry ((("proxies", "deleteProperty trap", startref="prox6dpt")))((("traps", "deleteProperty trap", startref="trap6dpt")))((("deleteProperty trap", startref="dpt6")))(((" _secret properties", startref="sp6")))about!
434434

435435
==== defineProperty Trap
436436

0 commit comments

Comments
 (0)