• Robert Knight's avatar
    Replace unsafe uses of `hasOwnProperty` with `Object.hasOwn` polyfill · e8d3807d
    Robert Knight authored
    `hasOwnProperty` is unsafe if called on an object which may potentially
    have its own or an inherited property called "hasOwnProperty" or which
    has a null prototype. Add a polyfill for the modern alternative and
    remove the ESLint suppression.
    
     - Replace various uses of `hasOwnProperty` with `hasOwn` polyfill. In
       tests we can use `Object.hasOwn` directly, since tests only run in
       modern browsers.
    
     - Remove obsolete `Object.assign` polyfill in `parse-json-config.js`.
       IE 10/11 have been unsupported for long enough that I think we can
       stop worrying about it in the boot script.
    e8d3807d
Name
Last commit
Last update
..
test Loading commit data...
account-id.js Loading commit data...
annotation-metadata.js Loading commit data...
annotation-sharing.js Loading commit data...
annotation-user.js Loading commit data...
build-thread.js Loading commit data...
group-list-item-common.js Loading commit data...
group-organizations.js Loading commit data...
groups.js Loading commit data...
is-third-party-service.js Loading commit data...
permissions.js Loading commit data...
session.js Loading commit data...
tabs.js Loading commit data...
theme.js Loading commit data...
thread-annotations.js Loading commit data...
thread-sorters.js Loading commit data...
thread.js Loading commit data...
version-data.js Loading commit data...
view-filter.js Loading commit data...
visible-threads.js Loading commit data...