"use strict";

const filelistSymbols = require("./file-symbols");

module.exports = function (core) {
  class FileList {
    constructor() {
      if (!(this instanceof FileList)) {
        throw new TypeError("DOM object constructor cannot be called as a function.");
      }
      this[filelistSymbols.list] = [];
    }
    item(index) {
      return this[filelistSymbols.list][index] || null;
    }
    get length() {
      return this[filelistSymbols.list].length;
    }
  }
  core.FileList = FileList;
};

"use strict";

const filelistSymbols = require("./filelist-symbols");

module.exports = function (core) {
  class FileList {
    constructor() {
      if (!(this instanceof FileList)) {
        throw new TypeError("DOM object constructor cannot be called as a function.");
      }
      this[filelistSymbols.list] = [];
    }
    item(index) {
      return this[filelistSymbols.list][index] || null;
    }
    get length() {
      return this[filelistSymbols.list].length;
    }
  }
  core.FileList = FileList;
};

Fix typo in symbols file name
Fix typo in symbols file name

The correct file containing the symbols for filellist.js is filelist-symbols, not file-symbols.