File: /var/www/zaklada/html/node_modules/jsdom/lib/jsdom/living/file.js
"use strict";
const fileSymbols = require("./file-symbols");
module.exports = function (core) {
const Blob = core.Blob;
class File extends Blob {
constructor(fileBits, fileName) {
super(fileBits, arguments[2]);
if (!(this instanceof File)) {
throw new TypeError("DOM object constructor cannot be called as a function.");
}
this[fileSymbols.name] = fileName.replace(/\//g, ":");
}
get name() {
return this[fileSymbols.name];
}
}
core.File = File;
};