Skip to content
Snippets Groups Projects
Commit 188aa3ea authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

Add polyfill for Object.values (#6697)

parent bd077ad7
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ import 'intl/locale-data/jsonp/en'; ...@@ -3,6 +3,7 @@ import 'intl/locale-data/jsonp/en';
import 'es6-symbol/implement'; 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 isNaN from 'is-nan'; import isNaN from 'is-nan';
if (!Array.prototype.includes) { if (!Array.prototype.includes) {
...@@ -13,6 +14,10 @@ if (!Object.assign) { ...@@ -13,6 +14,10 @@ if (!Object.assign) {
Object.assign = assign; Object.assign = assign;
} }
if (!Object.values) {
values.shim();
}
if (!Number.isNaN) { if (!Number.isNaN) {
Number.isNaN = isNaN; Number.isNaN = isNaN;
} }
...@@ -14,6 +14,7 @@ function loadPolyfills() { ...@@ -14,6 +14,7 @@ function loadPolyfills() {
const needsBasePolyfills = !( const needsBasePolyfills = !(
window.Intl && window.Intl &&
Object.assign && Object.assign &&
Object.values &&
Number.isNaN && Number.isNaN &&
window.Symbol && window.Symbol &&
Array.prototype.includes Array.prototype.includes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment