paulmillr / es6-shim

ECMAScript 6 compatibility shims for legacy JS engines
http://paulmillr.com
MIT License
3.11k stars 388 forks source link

Function#toMethod #244

Closed ljharb closed 9 years ago

ljharb commented 10 years ago

I think this might be shimmable, but it's worth investigating.

webbedspace commented 10 years ago

Isn't .toMethod()'s primary purpose re-binding the super keyword within a function? How could you sham that?

ljharb commented 9 years ago

Yep, you're correct - it deals with the ES6 class keyword and super - specifically the internal [[HomeObject]] slot. This isn't shimmable.