decord/source/4436_HasProperty.js

25 lines
647 B
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4436
// Function ID: 38937
2026-07-20 16:05:17 +00:00
// Name: HasProperty
2026-07-25 08:10:48 +00:00
// Dependencies: [4377, 518, 4424]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4436 (HasProperty)
2026-07-20 16:05:17 +00:00
export default function HasProperty(arg0, arg1) {
2026-07-25 08:10:48 +00:00
if (require(4377) /* isObject */(arg0)) {
if (tmp(4424)(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;
}
};