Permalink
Browse files

fix the naming of the minified one

  • Loading branch information...
1 parent d30ff6d commit 055467113a427a2a3de59e6b51c996dab6761265 @Benvie Benvie committed Sep 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 weakmap.min.js
View
@@ -3,4 +3,4 @@
* Copyright (c) 2012 Brandon Benvie <http://bbenvie.com>
*/
-void function(e,h,b){function define(c,a,b){return typeof a==='function'&&(b=a,a=nameOf(b).replace(/_$/,'')),d(c,a,{configurable:!0,writable:!0,value:b})}function nameOf(a){return typeof a!=='function'?'':'name'in a?a.name:k.call(a).match(j)[1]}'use strict';var i=Object.getOwnPropertyNames,d=Object.defineProperty,k=Function.prototype.toString,f=Object.create,g=Object.prototype.hasOwnProperty,j=/^\n?function\s?(\w*)?_?\(/;var c=function(){function c(){var a=e(),b={};this.unlock=function(h){var c=l(h);if(g.call(c,a))return c[a](b);var e=f(null,j);return d(c,a,{value:new Function('s','l',k)(b,e)}),e}}var j={value:{writable:!0,value:b}},k='return function(k){if(k===s)return l}',h=f(null),e=function(){var a=Math.random().toString(36).slice(2);return a in h?e():h[a]=a},a=e(),l=function(b){if(g.call(b,a))return b[a];if(!Object.isExtensible(b))throw new TypeError('Object must be extensible');var c=f(null);return d(b,a,{value:c}),c};return define(Object,function getOwnPropertyNames(c){var b=i(c);return g.call(c,a)&&b.splice(b.indexOf(a),1),b}),define(c.prototype,function get(a){return this.unlock(a).value}),define(c.prototype,function set(a,b){this.unlock(a).value=b}),c}();var a=function(g){function validate(a){if(a==null||typeof a!=='object'&&typeof a!=='function')throw new TypeError('Invalid WeakMap key')}function wrap(b,c){var a=g.unlock(b);if(a.value)throw new TypeError('Object is already a WeakMap');a.value=c}function unwrap(b){var a=g.unlock(b).value;if(!a)throw new TypeError('WeakMap is not generic');return a}function initialize(b,a){a!==null&&typeof a==='object'&&typeof a.forEach==='function'&&a.forEach(function(c,d){c instanceof Array&&c.length===2&&set.call(b,a[d][0],a[d][1])})}function a(b){if(this===e||this==null||this===a.prototype)return new a(b);wrap(this,new c),initialize(this,b)}function get(a){validate(a);var c=unwrap(this).get(a);return c===h?b:c}function set(a,c){validate(a),unwrap(this).set(a,c===b?h:c)}function has(a){return validate(a),unwrap(this).get(a)!==b}function delete_(a){validate(a);var c=unwrap(this),d=c.get(a)!==b;return c.set(a,b),d}function toString(){return unwrap(this),'[object WeakMap]'}try{var d=('return '+delete_).replace('e_','\\u0065'),i=new Function('unwrap','validate',d)(unwrap,validate)}catch(a){var i=delete_}var d=(''+Object).split('Object');var f=function toString(){return d[0]+nameOf(this)+d[1]};define(f,f);var j={__proto__:[]}instanceof Array?function(a){a.__proto__=f}:function(a){define(a,f)};return j(a),[toString,get,set,has,i].forEach(function(b){define(a.prototype,b),j(b)}),a}(new c);typeof module!=='undefined'?module.exports=a:typeof exports!=='undefined'?exports.WeakMap=a:!('WeakMap'in e)&&(e.WeakMap=a)}(new Function('return this')(),{})
+void function(e,h,b){function define(c,a,b){return typeof a==='function'&&(b=a,a=nameOf(b).replace(/_$/,'')),d(c,a,{configurable:!0,writable:!0,value:b})}function nameOf(a){return typeof a!=='function'?'':'name'in a?a.name:k.call(a).match(j)[1]}'use strict';var i=Object.getOwnPropertyNames,d=Object.defineProperty,k=Function.prototype.toString,f=Object.create,g=Object.prototype.hasOwnProperty,j=/^\n?function\s?(\w*)?_?\(/;var c=function(){function c(){var a=e(),b={};this.unlock=function(h){var c=l(h);if(g.call(c,a))return c[a](b);var e=f(null,j);return d(c,a,{value:new Function('s','l',k)(b,e)}),e}}var j={value:{writable:!0,value:b}},k='return function(k){if(k===s)return l}',h=f(null),e=function(){var a=Math.random().toString(36).slice(2);return a in h?e():h[a]=a},a=e(),l=function(b){if(g.call(b,a))return b[a];if(!Object.isExtensible(b))throw new TypeError('Object must be extensible');var c=f(null);return d(b,a,{value:c}),c};return define(Object,function getOwnPropertyNames(c){var b=i(c);return g.call(c,a)&&b.splice(b.indexOf(a),1),b}),define(c.prototype,function get(a){return this.unlock(a).value}),define(c.prototype,function set(a,b){this.unlock(a).value=b}),c}();var a=function(g){function validate(a){if(a==null||typeof a!=='object'&&typeof a!=='function')throw new TypeError('Invalid WeakMap key')}function wrap(b,c){var a=g.unlock(b);if(a.value)throw new TypeError('Object is already a WeakMap');a.value=c}function unwrap(b){var a=g.unlock(b).value;if(!a)throw new TypeError('WeakMap is not generic');return a}function initialize(b,a){a!==null&&typeof a==='object'&&typeof a.forEach==='function'&&a.forEach(function(c,d){c instanceof Array&&c.length===2&&set.call(b,a[d][0],a[d][1])})}function WeakMap(b){if(this===e||this==null||this===WeakMap.prototype)return new WeakMap(b);wrap(this,new c),initialize(this,b)}function get(a){validate(a);var c=unwrap(this).get(a);return c===h?b:c}function set(a,c){validate(a),unwrap(this).set(a,c===b?h:c)}function has(a){return validate(a),unwrap(this).get(a)!==b}function delete_(a){validate(a);var c=unwrap(this),d=c.get(a)!==b;return c.set(a,b),d}function toString(){return unwrap(this),'[object WeakMap]'}try{var d=('return '+delete_).replace('e_','\\u0065'),i=new Function('unwrap','validate',d)(unwrap,validate)}catch(a){var i=delete_}var d=(''+Object).split('Object');var f=function toString(){return d[0]+nameOf(this)+d[1]};define(f,f);var j={__proto__:[]}instanceof Array?function(a){a.__proto__=f}:function(a){define(a,f)};return j(WeakMap),[toString,get,set,has,i].forEach(function(b){define(WeakMap.prototype,b),j(b)}),WeakMap}(new c);typeof module!=='undefined'?module.exports=a:typeof exports!=='undefined'?exports.WeakMap=a:!('WeakMap'in e)&&(e.WeakMap=a)}(new Function('return this')(),{})

0 comments on commit 0554671

Please sign in to comment.