@bhsd/codemirror-mediawiki 3.11.2 → 3.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -343,11 +343,11 @@ export class CodeMirror6 {
343
343
  */
344
344
  prefer(names) {
345
345
  if (Array.isArray(names)) {
346
- this.#preferred = new Set(names.filter(name => Object.prototype.hasOwnProperty.call(avail, name)));
346
+ this.#preferred = new Set(names.filter(name => Object.hasOwn(avail, name)));
347
347
  }
348
348
  else {
349
349
  for (const [name, enable] of Object.entries(names)) {
350
- if (enable && Object.prototype.hasOwnProperty.call(avail, name)) {
350
+ if (enable && Object.hasOwn(avail, name)) {
351
351
  this.#preferred.add(name);
352
352
  }
353
353
  else {