Description* If the browser (particularly Firefox 20 & 21) provides a WeakMap which
does not accept certain objects as keys (particularly events), then
define a dual-implementation WeakMap constructor which uses the
browser's WeakMap unless it rejects the key, then falls back to our
WeakMap emulation.
* Domado contained code for working around being able to see the
emulated WeakMap's magic property lookups using Proxy handlers, which
had gotten out of date since it was never exercised as we have had no
browsers which have Proxy but not WeakMap; update it to use results
from actual proxies to obtain the magic property name.
* Domado's ProxyHandler.prototype now has a .constructor property so
that tamperProof knows its properties should be overridable.
@r5353
Patch Set 1 #
Total comments: 14
Patch Set 2 : Work around WeakMap not accepting some object keys. #Patch Set 3 : Work around WeakMap not accepting some object keys. #Patch Set 4 : Work around WeakMap not accepting some object keys. #
Total comments: 4
MessagesTotal messages: 15
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||