decord/source/3584_assign.js

36 lines
874 B
JavaScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 3584
// Function ID: 3585
2026-07-20 16:05:17 +00:00
// Name: assign
// Dependencies: []
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 3584 (assign)
2026-07-20 16:05:17 +00:00
export default function assign(arg0, obj) {
if (null == arg0) {
const _TypeError = TypeError;
const typeError = new TypeError("assign requires that input parameter not be null or undefined");
throw typeError;
} else {
for (const key10006 in arg1) {
2026-07-29 08:29:29 +00:00
let tmp10 = key10006;
2026-07-20 16:05:17 +00:00
let _Object = Object;
2026-07-29 08:29:29 +00:00
let call = hasOwnProperty.call;
if (typeof call === "unknown") {
let hasOwnPropertyResult = hasOwnProperty(key10006);
} else {
hasOwnPropertyResult = call(arg1, key10006);
}
if (!hasOwnPropertyResult) {
2026-07-20 16:05:17 +00:00
continue;
} else {
arg0[key10006] = arg1[key10006];
2026-07-23 10:11:24 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
continue;
}
return arg0;
}
};
export default exports.default;