tootlab-mastodon/app/javascript/mastodon/base_polyfills.js

24 lines
417 B
JavaScript
Raw Normal View History

import 'intl';
import 'intl/locale-data/jsonp/en';
import 'es6-symbol/implement';
import includes from 'array-includes';
import assign from 'object-assign';
2018-03-08 07:07:25 -05:00
import values from 'object.values';
import isNaN from 'is-nan';
if (!Array.prototype.includes) {
includes.shim();
}
if (!Object.assign) {
Object.assign = assign;
}
2018-03-08 07:07:25 -05:00
if (!Object.values) {
values.shim();
}
if (!Number.isNaN) {
Number.isNaN = isNaN;
}