decord/source/174_polyfillObjectProperty.js

22 lines
581 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 174
// Function ID: 175
// Name: polyfillObjectProperty
// Dependencies: [123, 175]
// Module 174 (polyfillObjectProperty)
2026-08-24 06:08:38 +00:00
import polyfillObjectProperty from "polyfillObjectProperty" /* 123 */;
2026-07-29 08:29:29 +00:00
let hasPromiseResult;
if (global != null) {
const _HermesInternal = global.HermesInternal;
if (_HermesInternal != null) {
if (_HermesInternal.hasPromise != null) {
hasPromiseResult = hasPromise();
}
}
}
if (!hasPromiseResult) {
2026-08-24 06:08:38 +00:00
const _module = polyfillObjectProperty;
2026-07-29 08:29:29 +00:00
_module.polyfillGlobal("Promise", () => require(175) /* finally */.default);
}