Add coverage for WeakMap usage.

This commit is contained in:
John-David Dalton
2014-08-25 09:32:26 -07:00
parent 7f88a7c9bb
commit 87c21ba75e
4 changed files with 107 additions and 3 deletions

View File

@@ -21,7 +21,7 @@
/*--------------------------------------------------------------------------*/
/**
* Creates a Set object to optimize linear searches of large arrays.
* Creates a `Set` object.
*/
function Set() {
this.__cache__ = {};
@@ -81,7 +81,7 @@
* Adds `value` to the set.
*
* @memberOf Set
* @param {*} value The value to add to the set.
* @param {*} value The value to add.
*/
function add(value) {
var cache = this.__cache__,