decord/source/4561_CreateDataPropertyOrThrow.js

24 lines
668 B
JavaScript
Raw Normal View History

2026-08-03 11:20:01 +00:00
// Module ID: 4561
// Function ID: 4562
2026-07-29 08:29:29 +00:00
// Name: CreateDataPropertyOrThrow
2026-08-03 11:20:01 +00:00
// Dependencies: [4500, 541, 4547, 4562]
2026-07-29 08:29:29 +00:00
2026-08-03 11:20:01 +00:00
// Module 4561 (CreateDataPropertyOrThrow)
2026-07-29 08:29:29 +00:00
export default function CreateDataPropertyOrThrow(arg0, arg1, arg2) {
2026-08-03 11:20:01 +00:00
if (require(4500) /* isObject */(arg0)) {
if (tmp(4547)(arg1)) {
if (!tmp(4562)(arg0, arg1, arg2)) {
2026-07-29 08:29:29 +00:00
const tmp15 = new tmp(541)("unable to create data property");
throw tmp15;
}
} 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;
}
};