images to svg
This commit is contained in:
parent
a31e881856
commit
3ba28aa104
734 changed files with 11682 additions and 245 deletions
|
@ -37,7 +37,7 @@ As there are no traps, all operations on `proxy` are forwarded to `target`.
|
|||
|
||||
As we can see, without any traps, `proxy` is a transparent wrapper around `target`.
|
||||
|
||||

|
||||

|
||||
|
||||
The proxy is a special "exotic object". It doesn't have "own" properties. With an empty handler it transparently forwards operations to `target`.
|
||||
|
||||
|
@ -564,7 +564,7 @@ alert(admin.name); // Guest (?!?)
|
|||
|
||||
As you can see, the result is incorrect! The `admin.name` is expected to be `"Admin"`, not `"Guest"`! Without the proxy, it would be `"Admin"`, looks like the proxying "broke" our object.
|
||||
|
||||

|
||||

|
||||
|
||||
Why this happens? That's easy to understand if we explore what's going on during the call in the last line of the code.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue