Enonic version: 6.5.1
I tried using the polyfill from this page:
Which led me to render exception, due to property does not exist on object errors.
Thing is I logged the object so I know the property did exist.
I have worked around this by making a normal function instead of adding prototype. And voila no more error.
I’m thinking something like this happens:
- There is no array.includes in Ecmascript 5
- I add it via polyfill (checking first that I don’t replace it, if its already there)
- Enonic also want to add a polyfill, but since mine already exist, use that.
- My array.includes polyfill does not work inside Enonic