Scotty Jamison

Results 87 comments of Scotty Jamison

That was this one: ``` // [email protected]/errors-browser.js return _Base.call(this, getMessage(arg1, arg2, arg3)) || this; ``` For those first examples, I was going into the source code and looking through it...

> Incidentally, I’m fine with people trying to call a parent constructor without class syntax. Just because class syntax exists doesn’t mean that it’s invalid to do FooBase.call(this, opts). It’s...

I've started going through source code of different projects, one by one, to find more ways that .call() gets used. I've been findind some interesting stuff, that I'll report on...

My opinions on this matter have certainly shifted as I've looked over all of this stuff. The uses of `.call()` are much more frequent than I would have thought. Certainly,...

Alright, so here's some finer details about what I've found. I analyzed the first 310 occurrences of .call() from the dump file. Of those, I categorized 113 of them using...

Sure thing. There are my raw notes for each entry. I prefixed each category with "##", e.g. `##callback: ...`. If I had some additional comment I wanted to add about...

If interested, these are the specific occurrences of Object.prototype stuff it found. ``` 162734 w3c-blob-0.0.1.tgz/index.js:4: , str = {}.toString.call.bind({}.toString) 9134 matcha-0.7.0.tgz/benchmark/type.js:11: bench('Object.prototype.toString.call', function () { 8541 utility2-2019.4.9.tgz/lib.istanbul.js:1639:W=A|D,X=A|_;o=Array.isArray,o||(o=function(t){return Object.prototype.toString.call 8541 utility2-2019.4.9.tgz/lib.istanbul.js:2123:,f,l,c,h=Array.isArray;h||(h=function(e){return...