How does Bluebird’s util.toFastProperties function make an object’s properties “fast”?
2017 update: First, for readers coming today – here is a version that works with Node 7 (4+): function enforceFastProperties(o) { function Sub() {} Sub.prototype = o; var receiver = new Sub(); // create an instance function ic() { return typeof receiver.foo; } // perform access ic(); ic(); return o; eval(“o” + o); // ensure … Read more