GITLAB

Boyan Georgiev / jsdom-with-fix

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • jsdom-with-fix
  • lib
  • jsdom
  • living
  • file-api
  • FileList-impl.js
  • 858f2bdf5   fixes Browse Code ยป
    Boyan Georgiev
    2020-03-09 09:55:22 -0400  
FileList-impl.js 292 Bytes
edit raw blame history permalink
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();
  }
};