Closed Bug 803844 Opened 9 years ago Closed 9 years ago

can't use events as weakmap keys

Categories

(Core :: JavaScript Engine, defect)

18 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: erights, Unassigned)

References

Details

> var m = new WeakMap(); 
> var e = new MouseEvent('click'); 
> m.set(e, 1);
TypeError on line 3: cannot use the given object as a weak map key

See http://code.google.com/p/google-caja/issues/detail?id=1567
Depends on: 776864
Depends on: 777385
This should be mostly fixed in 22 now, by a combination of bug 777385, and the parts of bug 776864 that have landed already.  I think there are a few events that still need to be converted.
I think this should work now, please reopen if it does not...
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.