33 lines
980 B
JavaScript
33 lines
980 B
JavaScript
// Module ID: 4700
|
|
// Function ID: 4701
|
|
// Name: DefinePropertyOrThrow
|
|
// Dependencies: [4650, 541, 4697, 4701, 4702, 4704, 4705, 4706, 4707]
|
|
|
|
// Module 4700 (DefinePropertyOrThrow)
|
|
import isObject from "isObject" /* 4650 */;
|
|
|
|
|
|
export default function DefinePropertyOrThrow(arg0, arg1, arg2) {
|
|
if (isObject(arg0)) {
|
|
if (tmp(4697)(arg1)) {
|
|
let tmp13 = arg2;
|
|
if (!tmp(4701)(arg2)) {
|
|
tmp13 = tmp(4702)(arg2);
|
|
}
|
|
if (tmp(4701)(tmp13)) {
|
|
let tmpResult = tmp(4704);
|
|
tmpResult = tmp(4705);
|
|
return tmpResult(tmpResult, tmp(4706), tmp(4707), 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;
|
|
}
|
|
};
|