In order to fix bug 1935076, we'll have to add a pure js fallback in case wasm is disabled or simd isn't supported. Unfortunately, this fallback will take some space. So, the main goal of this patch is to reduce the overall size (by ~93k). As a side effect, it should make easier to use an other wasm file (which must export _jp2_decode, _malloc and _free).
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
/* Copyright 2023 Mozilla Foundation
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
const DOMCMapReaderFactory = null;
|
|
const DOMWasmFactory = null;
|
|
const DOMStandardFontDataFactory = null;
|
|
const NodeCanvasFactory = null;
|
|
const NodeCMapReaderFactory = null;
|
|
const NodeFilterFactory = null;
|
|
const NodeWasmFactory = null;
|
|
const NodeStandardFontDataFactory = null;
|
|
const PDFFetchStream = null;
|
|
const PDFNetworkStream = null;
|
|
const PDFNodeStream = null;
|
|
|
|
export {
|
|
DOMCMapReaderFactory,
|
|
DOMStandardFontDataFactory,
|
|
DOMWasmFactory,
|
|
NodeCanvasFactory,
|
|
NodeCMapReaderFactory,
|
|
NodeFilterFactory,
|
|
NodeStandardFontDataFactory,
|
|
NodeWasmFactory,
|
|
PDFFetchStream,
|
|
PDFNetworkStream,
|
|
PDFNodeStream,
|
|
};
|