apply polyfill

deepsource-autofix-76c6eb20
Dan Gowans 2023-01-25 14:47:19 -05:00
parent dc2dd92096
commit 0ede73d229
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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
}
}