decord/source/4607_HasProperty.js

21 lines
503 B
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 4607
// Function ID: 4608
2026-07-29 08:29:29 +00:00
// Name: HasProperty
2026-08-08 06:10:11 +00:00
// Dependencies: [4548, 541, 4595]
2026-07-29 08:29:29 +00:00
2026-08-08 06:10:11 +00:00
// Module 4607 (HasProperty)
2026-07-29 08:29:29 +00:00
export default function HasProperty(arg0, arg1) {
2026-08-08 06:10:11 +00:00
if (require(4548) /* isObject */(arg0)) {
if (tmp(4595)(arg1)) {
2026-07-29 08:29:29 +00:00
return arg1 in arg0;
} else {
const tmp10 = new tmp(541)("Assertion failed: `P` must be a Property Key");
throw tmp10;
}
} else {
const tmp5 = new tmp(541)("Assertion failed: `O` must be an Object");
throw tmp5;
}
};