tornqvist/fun-component

Inconsistent behaviour of Object.getOwnPropertyDescriptor in Microsoft browsers

graforlock opened this issue · 3 comments

Should fun-component be using function-name ? It doesn't work well (or at all) across all browsers (Edge, IE11).

The implementation seems to be dependant on node functionality, not really browser friendly, it doesn't respect and work with IE11 at all.

Issue reference: TooTallNate/node-function-name#6

Alternative: Anyone knows how to re-implement it without using node-function-name ?

Ohh, thanks for bringing this up! I wasn't aware of the lacking support in IE (though not surprised).

We could just lookup render.name and be rid of the function-name dependency. If name consistency is important we already do support explicitly supplying it component('my-component', render).

Fixed in 3.1.0 🎉