decord/source/4696_Get.js

24 lines
562 B
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 4696
// Function ID: 4697
2026-07-29 08:29:29 +00:00
// Name: Get
2026-08-25 06:04:03 +00:00
// Dependencies: [4650, 541, 4697, 575]
2026-08-24 06:08:38 +00:00
2026-08-25 06:04:03 +00:00
// Module 4696 (Get)
import isObject from "isObject" /* 4650 */;
2026-07-29 08:29:29 +00:00
export default function Get(arg0, arg1) {
2026-08-24 06:08:38 +00:00
if (isObject(arg0)) {
2026-08-25 06:04:03 +00:00
if (tmp(4697)(arg1)) {
2026-07-29 08:29:29 +00:00
return arg0[arg1];
} else {
let tmpResult = tmp(541);
tmpResult = new tmpResult("Assertion failed: P is not a Property Key, got " + tmp(575)(arg1));
throw tmpResult;
}
} else {
const tmp5 = new tmp(541)("Assertion failed: Type(O) is not Object");
throw tmp5;
}
};