decord/source/4435_HasProperty.js

25 lines
647 B
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4435
2026-07-24 07:16:23 +00:00
// Function ID: 38926
2026-07-20 16:05:17 +00:00
// Name: HasProperty
2026-07-23 10:11:24 +00:00
// Dependencies: [4376, 518, 4423]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 4435 (HasProperty)
2026-07-20 16:05:17 +00:00
export default function HasProperty(arg0, arg1) {
2026-07-23 10:11:24 +00:00
if (require(4376) /* isObject */(arg0)) {
if (tmp(4423)(arg1)) {
2026-07-20 16:05:17 +00:00
return arg1 in arg0;
} else {
2026-07-23 10:11:24 +00:00
let tmp10 = require(518);
2026-07-20 16:05:17 +00:00
const prototype2 = tmp10.prototype;
tmp10 = new tmp10("Assertion failed: `P` must be a Property Key");
throw tmp10;
}
} else {
2026-07-23 10:11:24 +00:00
let tmpResult = tmp(518);
2026-07-20 16:05:17 +00:00
const prototype = tmpResult.prototype;
tmpResult = new tmpResult("Assertion failed: `O` must be an Object");
throw tmpResult;
}
};