mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-17 04:13:01 +00:00
[Glitch] Remove isNaN polyfill
Port b46125224c
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
14b0311029
commit
00c839b9a9
|
@ -4,7 +4,6 @@ import 'es6-symbol/implement';
|
||||||
import includes from 'array-includes';
|
import includes from 'array-includes';
|
||||||
import assign from 'object-assign';
|
import assign from 'object-assign';
|
||||||
import values from 'object.values';
|
import values from 'object.values';
|
||||||
import isNaN from 'is-nan';
|
|
||||||
import { decode as decodeBase64 } from './utils/base64';
|
import { decode as decodeBase64 } from './utils/base64';
|
||||||
import promiseFinally from 'promise.prototype.finally';
|
import promiseFinally from 'promise.prototype.finally';
|
||||||
|
|
||||||
|
@ -20,10 +19,6 @@ if (!Object.values) {
|
||||||
values.shim();
|
values.shim();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Number.isNaN) {
|
|
||||||
Number.isNaN = isNaN;
|
|
||||||
}
|
|
||||||
|
|
||||||
promiseFinally.shim();
|
promiseFinally.shim();
|
||||||
|
|
||||||
if (!HTMLCanvasElement.prototype.toBlob) {
|
if (!HTMLCanvasElement.prototype.toBlob) {
|
||||||
|
|
|
@ -15,7 +15,6 @@ function loadPolyfills() {
|
||||||
Array.prototype.includes &&
|
Array.prototype.includes &&
|
||||||
HTMLCanvasElement.prototype.toBlob &&
|
HTMLCanvasElement.prototype.toBlob &&
|
||||||
window.Intl &&
|
window.Intl &&
|
||||||
Number.isNaN &&
|
|
||||||
Object.assign &&
|
Object.assign &&
|
||||||
Object.values &&
|
Object.values &&
|
||||||
window.Symbol &&
|
window.Symbol &&
|
||||||
|
|
Loading…
Reference in a new issue