mootools / mootools-core

MooTools Core Repository
https://mootools.net
2.65k stars 505 forks source link

Conflict with ecmascript Map #2802

Closed zortext closed 6 years ago

zortext commented 6 years ago

I think mootools some how conflicting with ecmascript maps. Probably it is about Array.from() method.

Run this code with a mootools loaded page.

console.log(Array.from(new Map(); ))

This returns a Map instead of Array.

https://jsfiddle.net/5sgcb3ok/2/

DimitarChristoff commented 6 years ago

You are using an outdated version of mootools.

https://github.com/mootools/mootools-core/blob/master/Source/Core/Core.js#L125-L128

Array.from got renamed to Array.convert. Same jsfiddle with 1.6.0 is fine.

zortext commented 6 years ago

Hi thank you for your response. I have the latest version. Problem is because of the compat layer.

Serkan T.

Dimitar Christoff notifications@github.com, 10 Tem 2018 Sal, 15:21 tarihinde şunu yazdı:

You are using an outdated version of mootools.

https://github.com/mootools/mootools-core/blob/master/Source/Core/Core.js#L125-L128

Array.from got renamed to Array.convert

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mootools/mootools-core/issues/2802#issuecomment-403802424, or mute the thread https://github.com/notifications/unsubscribe-auth/AWTNQib7TJfDCmAb9SUoIu_6XN_993qeks5uFJxLgaJpZM4VH3QC .