Object.defineProperty(o, n, { get: function() { this[n] = {}; } }) this works in Firefox, and not in Chrome...
@csuwildcat yep, I've played with all sorts of versions. I'm trying to get rid of the extra lookups and branches
-
-
@csuwildcat the speed doesn't matter if only done a couple times, but I'm looking at increasing requests per second in nodejs -
@seanmonstar if Chrome is not reassigning a new object *every time* that get is called, I believe it's an implementation bug. - 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.