decord/source/174_polyfillObjectProperty.js
2026-07-29 08:29:29 +00:00

19 lines
520 B
JavaScript

// Module ID: 174
// Function ID: 175
// Name: polyfillObjectProperty
// Dependencies: [123, 175]
// Module 174 (polyfillObjectProperty)
let hasPromiseResult;
if (global != null) {
const _HermesInternal = global.HermesInternal;
if (_HermesInternal != null) {
if (_HermesInternal.hasPromise != null) {
hasPromiseResult = hasPromise();
}
}
}
if (!hasPromiseResult) {
const _module = require("polyfillObjectProperty");
_module.polyfillGlobal("Promise", () => require(175) /* finally */.default);
}