24 lines
647 B
JavaScript
24 lines
647 B
JavaScript
// Module ID: 4470
|
|
// Function ID: 39052
|
|
// Name: HasProperty
|
|
// Dependencies: [4411, 518, 4458]
|
|
|
|
// Module 4470 (HasProperty)
|
|
|
|
export default function HasProperty(arg0, arg1) {
|
|
if (require(4411) /* isObject */(arg0)) {
|
|
if (tmp(4458)(arg1)) {
|
|
return arg1 in arg0;
|
|
} else {
|
|
let tmp10 = require(518);
|
|
const prototype2 = tmp10.prototype;
|
|
tmp10 = new tmp10("Assertion failed: `P` must be a Property Key");
|
|
throw tmp10;
|
|
}
|
|
} else {
|
|
let tmpResult = tmp(518);
|
|
const prototype = tmpResult.prototype;
|
|
tmpResult = new tmpResult("Assertion failed: `O` must be an Object");
|
|
throw tmpResult;
|
|
}
|
|
};
|