decord/source/51_map.js

23 lines
716 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 51
// Function ID: 1364
// Name: map
// Dependencies: []
// Module 51 (map)
2026-07-23 10:11:24 +00:00
const global = arg0;
2026-07-20 16:05:17 +00:00
const map = new Map();
2026-07-23 10:11:24 +00:00
arg5.unstable_hasComponent = function unstable_hasComponent(unstable_hasComponent) {
let value = map.get(unstable_hasComponent);
2026-07-20 16:05:17 +00:00
if (null == value) {
2026-07-23 10:11:24 +00:00
if (global.__nativeComponentRegistry__hasComponent) {
const result = global.__nativeComponentRegistry__hasComponent(unstable_hasComponent);
const result1 = map.set(unstable_hasComponent, result);
2026-07-20 16:05:17 +00:00
value = result;
} else {
const _HermesInternal = HermesInternal;
2026-07-23 10:11:24 +00:00
throw "unstable_hasComponent('" + unstable_hasComponent + "'): Global function is not registered";
2026-07-20 16:05:17 +00:00
}
}
return value;
};