decord/source/72_map.js
2026-08-24 06:08:38 +00:00

25 lines
706 B
JavaScript

// Module ID: 72
// Function ID: 73
// Name: map
// Dependencies: []
// Module 72 (map)
const global = arg0;
const map = new Map();
arg5.unstable_hasComponent = function unstable_hasComponent(arg0) {
let value = map.get(arg0);
if (null == value) {
if (global.__nativeComponentRegistry__hasComponent) {
const result = obj2.__nativeComponentRegistry__hasComponent(arg0);
const result1 = map.set(arg0, result);
value = result;
} else {
const _Error = Error;
const _HermesInternal = HermesInternal;
error = new Error("unstable_hasComponent('" + arg0 + "'): Global function is not registered");
throw error;
}
obj2 = global;
}
return value;
};