diff --git a/lib/core/imports/index.js b/lib/core/imports/index.js index f88ac876fa..6bf6bdfe5b 100644 --- a/lib/core/imports/index.js +++ b/lib/core/imports/index.js @@ -7,6 +7,11 @@ import Color from 'colorjs.io'; import es6promise from 'es6-promise'; import { Uint32Array } from 'typedarray'; import 'weakmap-polyfill'; +import hasOwn from 'core-js-pure/actual/object/has-own'; + +if (!('hasOwn' in Object) { + Object.hasOwn = hasOwn; +} // prevent striping newline characters from strings (e.g. failure // summaries). value must be synced with build/configure.js