From 0ede73d2297579f915a2c9bc1ecefa53701aa083 Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Wed, 25 Jan 2023 14:47:19 -0500 Subject: [PATCH] apply polyfill --- helpers/polyfills.js | 2 +- helpers/polyfills.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/polyfills.js b/helpers/polyfills.js index 62b5d834..33d23c81 100644 --- a/helpers/polyfills.js +++ b/helpers/polyfills.js @@ -4,7 +4,7 @@ const debug = Debug('lot-occupancy-system:polyfills'); export function applyPolyfills() { if (Object.hasOwn === undefined) { debug('Applying Object.hasOwn(o, v) polyfill'); - hasOwn.shim(); + Object.hasOwn = hasOwn; } } applyPolyfills(); diff --git a/helpers/polyfills.ts b/helpers/polyfills.ts index 54d2aab2..97c4bc75 100644 --- a/helpers/polyfills.ts +++ b/helpers/polyfills.ts @@ -6,7 +6,7 @@ const debug = Debug('lot-occupancy-system:polyfills') export function applyPolyfills(): void { if (Object.hasOwn === undefined) { debug('Applying Object.hasOwn(o, v) polyfill') - hasOwn.shim() + Object.hasOwn = hasOwn } }