Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
// Module ID: 14396
|
|
// Function ID: 14397
|
|
// Dependencies: [17, 14397]
|
|
|
|
// Module 14396
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import replaceByteInByteSequence from "replaceByteInByteSequence" /* 14397 */;
|
|
|
|
let closure_0 = null;
|
|
const BlobModule = _mod17.NativeModules.BlobModule;
|
|
let tmp2 = BlobModule;
|
|
if (BlobModule) {
|
|
tmp2 = typeof BlobModule.BLOB_URI_SCHEME === "string";
|
|
}
|
|
if (tmp2) {
|
|
closure_0 = `${BlobModule.BLOB_URI_SCHEME}:`;
|
|
if (typeof BlobModule.BLOB_URI_HOST === "string") {
|
|
let _HermesInternal = HermesInternal;
|
|
closure_0 = `${BlobModule.BLOB_URI_SCHEME}:` + "//" + BlobModule.BLOB_URI_HOST + "/";
|
|
}
|
|
}
|
|
replaceByteInByteSequence.URL.createObjectURL = function createObjectURL(data) {
|
|
if (null === closure_0) {
|
|
const _Error = Error;
|
|
const error = new Error("Cannot create URL for blob!");
|
|
throw error;
|
|
} else {
|
|
const _HermesInternal = HermesInternal;
|
|
return "" + tmp + data.data.blobId + "?offset=" + data.data.offset + "&size=" + data.size;
|
|
}
|
|
};
|
|
replaceByteInByteSequence.URL.revokeObjectURL = function revokeObjectURL(arg0) {
|
|
|
|
};
|
|
|
|
export const URL = replaceByteInByteSequence.URL;
|