33 lines
980 B
JavaScript
33 lines
980 B
JavaScript
// Module ID: 4445
|
|
// Function ID: 4446
|
|
// Name: DefinePropertyOrThrow
|
|
// Dependencies: [4395, 541, 4442, 4446, 4447, 4449, 4450, 4451, 4452]
|
|
|
|
// Module 4445 (DefinePropertyOrThrow)
|
|
import isObject from "isObject" /* 4395 */;
|
|
|
|
|
|
export default function DefinePropertyOrThrow(arg0, arg1, arg2) {
|
|
if (isObject(arg0)) {
|
|
if (tmp(4442)(arg1)) {
|
|
let tmp13 = arg2;
|
|
if (!tmp(4446)(arg2)) {
|
|
tmp13 = tmp(4447)(arg2);
|
|
}
|
|
if (tmp(4446)(tmp13)) {
|
|
let tmpResult = tmp(4449);
|
|
tmpResult = tmp(4450);
|
|
return tmpResult(tmpResult, tmp(4451), tmp(4452), arg0, arg1, tmp14);
|
|
} else {
|
|
const tmp17 = new tmp(541)("Assertion failed: Desc is not a valid Property Descriptor");
|
|
throw tmp17;
|
|
}
|
|
} else {
|
|
const tmp10 = new tmp(541)("Assertion failed: P is not a Property Key");
|
|
throw tmp10;
|
|
}
|
|
} else {
|
|
const tmp5 = new tmp(541)("Assertion failed: Type(O) is not Object");
|
|
throw tmp5;
|
|
}
|
|
};
|