Jimb
Member since Mar 12, 2015
- Profile: /members/12578-jimb.htm
- URL: https://jimbesser.wordpress.com/
- Comments: 1
Recent Blog Comments By Jimb
-
Creating Objects With A Null Prototype In Node.js
Posted on Mar 12, 2015 at 2:02 PM
Your SaferCache class is significantly less safe as implemented, as it'll crash: new SaferCache() .set("hasOwnProperty", "mwhaha"); .has("anything") // crash! You need to actually use Object.prototype.hasOwnProperty.call(cache, key). Also, where the Object.cr... read more »