80 lines
2.1 KiB
JavaScript
80 lines
2.1 KiB
JavaScript
// Module ID: 222
|
|
// Function ID: 223
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 38, 203]
|
|
|
|
// Module 222 (_isNativeReflectConstruct)
|
|
import _inheritsDefault from "_inherits" /* 98 */;
|
|
import BlobDefault from "Blob" /* 203 */;
|
|
import closure_2 from "_classCallCheck" /* 41 */;
|
|
import closure_3 from "_possibleConstructorReturn" /* 93 */;
|
|
import closure_4 from "_getPrototypeOf" /* 95 */;
|
|
import importDefaultResult from "_createClass" /* 42 */;
|
|
|
|
const File = arg1;
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
class File {
|
|
constructor(arg0, arg1, arg2) {
|
|
self = this;
|
|
tmp = File;
|
|
tmp2 = closure_2(this, File);
|
|
tmp4 = null != global;
|
|
tmp3 = require("module_38");
|
|
if (tmp4) {
|
|
tmp4 = null != arg1;
|
|
}
|
|
tmp3Result = tmp3(tmp4, "Failed to construct `File`: Must pass both `parts` and `name` arguments.");
|
|
items = [, ];
|
|
items[0] = global;
|
|
items[1] = importDefault;
|
|
tmp6 = closure_4;
|
|
obj = closure_4(tmp);
|
|
tmp7 = closure_3;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp9 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, items, tmp6(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, items);
|
|
}
|
|
tmp7Result = tmp7(self, constructResult);
|
|
tmp7Result.data.name = arg1;
|
|
return tmp7Result;
|
|
}
|
|
}
|
|
_inheritsDefault(File, BlobDefault);
|
|
let items = [
|
|
{
|
|
key: "name",
|
|
get() {
|
|
File(38)(null != this.data.name, "Files must have a name set.");
|
|
return this.data.name;
|
|
}
|
|
},
|
|
{
|
|
key: "lastModified",
|
|
get() {
|
|
return this.data.lastModified || 0;
|
|
}
|
|
}
|
|
];
|
|
|
|
export default importDefaultResult(File, items);
|