33 lines
980 B
JavaScript
33 lines
980 B
JavaScript
// Module ID: 4764
|
|
// Function ID: 4765
|
|
// Name: DefinePropertyOrThrow
|
|
// Dependencies: [4714, 541, 4761, 4765, 4766, 4768, 4769, 4770, 4771]
|
|
|
|
// Module 4764 (DefinePropertyOrThrow)
|
|
import isObject from "isObject" /* 4714 */;
|
|
|
|
|
|
export default function DefinePropertyOrThrow(arg0, arg1, arg2) {
|
|
if (isObject(arg0)) {
|
|
if (tmp(4761)(arg1)) {
|
|
let tmp13 = arg2;
|
|
if (!tmp(4765)(arg2)) {
|
|
tmp13 = tmp(4766)(arg2);
|
|
}
|
|
if (tmp(4765)(tmp13)) {
|
|
let tmpResult = tmp(4768);
|
|
tmpResult = tmp(4769);
|
|
return tmpResult(tmpResult, tmp(4770), tmp(4771), 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;
|
|
}
|
|
};
|