I read through the vuejs2 documentation and found this part:
This is an ES5-only and un-shimmable feature, which is why Vue doesn’t support IE8 and below.
I think it means that the feature is not possible to be monkey patched, but I'm not sure.
So what is a (un-)shimmable feature in JavaScript exactly all about?
I read through the vuejs2 documentation and found this part:
This is an ES5-only and un-shimmable feature, which is why Vue doesn’t support IE8 and below.
I think it means that the feature is not possible to be monkey patched, but I'm not sure.
So what is a (un-)shimmable feature in JavaScript exactly all about?
Share Improve this question edited Jul 15, 2022 at 19:54 tony19 138k23 gold badges276 silver badges346 bronze badges asked Aug 27, 2017 at 6:42 itsafireitsafire 6,0933 gold badges39 silver badges50 bronze badges 2- 4 Yes, that's a fair summary: making the feature work requires more than an added/updated "monkey patched" method. An un-shimmable feature is one that requires a core "engine" change due to some intrinsic property or operation that did not occur in a previous EMCAScript version. For example, ES6 generators are "un-shimmable". (There are ES6 to ES5 transpilers; shims generally must work with 'the source as it is'.) – user2864740 Commented Aug 27, 2017 at 6:43
- That's a great answer. Go for it. – itsafire Commented Aug 27, 2017 at 6:47
1 Answer
Reset to default 24You got it right, a shim is a patch that provides otherwise unavailable functionality or a language feature.
Some features, however, require support from the underlying JS engine, and cannot be created purely in Javascript. I imagine that's what they meant.