Skip to content

Commit 8a3957a

Browse files
author
wendy@lastlookeditorial.com
committed
Edited ch06.asciidoc with Atlas code editor
1 parent eb88a3e commit 8a3957a

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
@@ -805,7 +805,7 @@ console.log(proxy.test !== proxy.test)
805805
// <- true
806806
----
807807

808-
This could be resolved using a `WeakMap`. We'll go back to our `selfish` trap handler options, and move that into a factory function. Within that function we'll keep a `cache` of bound methods, so that we create the bound version of each function only once. While we're at it, we'll make our `selfish` function receive the `target` object we want to be proxying, so that the details of how we are binding every method become an implementation concern.
808+
This could be resolved using a `WeakMap`. ((("WeakMap")))((("ES6 Maps", "WeakMap")))We'll go back to our `selfish` trap handler options, and move that into a factory function. Within that function we'll keep a `cache` of bound methods, so that we create the bound version of each function only once. While we're at it, we'll make our `selfish` function receive the `target` object we want to be proxying, so that the details of how we are binding every method become an implementation concern.
809809

810810
[source,javascript]
811811
----

0 commit comments

Comments
 (0)