Blame view

lib/jsdom/living/file-api/FileList-impl.js 292 Bytes
858f2bdf5   Boyan Georgiev   fixes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  "use strict";
  
  const idlUtils = require("../generated/utils.js");
  
  exports.implementation = class FileListImpl extends Array {
    constructor() {
      super(0);
    }
    item(index) {
      return this[index] || null;
    }
    get [idlUtils.supportedPropertyIndices]() {
      return this.keys();
    }
  };