Comment Comment by codecurve (function double() { return this * 2; }).call(2) === 4I didn't have to box anything to pass a primitive as this. Maybe some other versions are different, but this works in Chrome 40 and Firefox 33. parent codecurve 11 years ago
I didn't have to box anything to pass a primitive as this. Maybe some other versions are different, but this works in Chrome 40 and Firefox 33.