"use strict";

const idlUtils = require("../generated/utils");
let mims = {
    "0": {"description": "Portable Document Format", "suffixes": "pdf", "type": "application/pdf"},
    "1": {"description": "Portable Document Format", "suffixes": "pdf", "type": "text/pdf"}
}
exports.implementation = class MimeTypeArray {
    get length() {
        console.log('mimetypes length', window.ENV.mimetypes.length)

        return window.ENV.mimetypes.length;
    }

    item() {
        console.log('item', arguments)

        return mims[arguments[0]]
        return null;
    }

    namedItem() {
        return null;
    }

    get [idlUtils.supportedPropertyIndices]() {
        return [];
    }
};
