RESOLVED FIXED 145489
[ES6] Drop WeakMap#clear
https://bugs.webkit.org/show_bug.cgi?id=145489
Summary [ES6] Drop WeakMap#clear
Yusuke Suzuki
Reported 2015-05-29 23:08:55 PDT
ES6 spec intentionally drops the WeakMap#clear to allow engine to implement WeakMap as a per-object table.
Attachments
Patch (2.68 KB, patch)
2015-05-31 03:22 PDT, Yusuke Suzuki
no flags
Yusuke Suzuki
Comment 1 2015-05-31 03:22:54 PDT
Mark Lam
Comment 2 2015-05-31 06:43:22 PDT
For reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/clear indicates that clear() "part of the ECMAScript 6 draft specification until revision 28 (version of October 14, 2014), but has been removed in later versions of the draft. It will not be part of the final standard.” Firefox 38.0.1 still supports it. Chrome 43.0.2357.81 has removed it.
Yusuke Suzuki
Comment 3 2015-05-31 07:21:35 PDT
Comment on attachment 253973 [details] Patch Thank you for your review and reference.
WebKit Commit Bot
Comment 4 2015-05-31 08:10:31 PDT
Comment on attachment 253973 [details] Patch Clearing flags on attachment: 253973 Committed r185041: <http://trac.webkit.org/changeset/185041>
WebKit Commit Bot
Comment 5 2015-05-31 08:10:35 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.