Skip to content

Commit

Permalink
fix: polyfill Object.hasOwn for node 14 (#4152)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb authored Sep 8, 2023
1 parent a0882f6 commit c7b597b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/core/imports/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7b597b

Please sign in to comment.