DescriptionStore JSGlobalProxy's identity hash directly on the proxy itself
Previously, the hash was stored on the underlying global object, since
it was stored in the hidden property table. This patch moves to an
implementation modeled on JSProxy, adding a new 'hash' field to JSGlobalProxy.
This allows storing the global proxy in a Map, Set, WeakMap, or WeakSet and
accessing it even after the proxy has been attached to a new global, which
is Firefox's current behavior and was the consensus of a recent thread on public-script-coord:
http://lists.w3.org/Archives/Public/public-script-coord/2014AprJun/0012.html
R=verwaest@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=21150
Patch Set 1 #Patch Set 2 : Re-introduce %UnwrapProxy to make Object.observe work #
Total comments: 6
Patch Set 3 : Remove %UnwrapGlobalProxy #Patch Set 4 : Merged to trunk, removed Object.observe workaround #
Messages
Total messages: 9 (0 generated)
|