pdf.js/src/core
Jonas Jenwald 099ed08852 Add support for async/await using Babel
For proof-of-concept, this patch converts a couple of `Promise` returning methods to use `async` instead.
Please note that the `generic` build, based on this patch, has been successfully testing in IE11 (i.e. the viewer loads and nothing is obviously broken).

Being able to use modern JavaScript features like `async`/`await` is a huge plus, but there's one (obvious) side-effect: The size of the built files will increase slightly (unless `SKIP_BABEL == true`). That's unavoidable, but seems like a small price to pay in the grand scheme of things.

Finally, note that the `chromium` build target was changed to no longer skip Babel translation, since the Chrome extension still supports version `49` of the browser (where native `async` support isn't available).
2018-08-19 16:54:11 +02:00
..
annotation.js [api-minor] Refactor the annotation code to be asynchronous 2018-08-11 19:00:29 +02:00
arithmetic_decoder.js Fix inconsistent spacing and trailing commas in objects in src/core/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on 2017-06-02 11:20:19 +02:00
bidi.js Fix inconsistent spacing and trailing commas in objects in src/core/ files, so we can enable the comma-dangle and object-curly-spacing ESLint rules later on 2017-06-02 11:20:19 +02:00
ccitt_stream.js Extract the actual decoding in CCITTFaxStream into a new CCITTFaxDecoder "class", which the new CCITTFaxStream depends on 2017-10-24 16:03:08 +02:00
ccitt.js Extract the actual decoding in CCITTFaxStream into a new CCITTFaxDecoder "class", which the new CCITTFaxStream depends on 2017-10-24 16:03:08 +02:00
cff_parser.js Update the ESLint dependencies, and also tweak the no-multiple-empty-lines rules 2018-01-03 13:32:57 +01:00
charsets.js Convert the files in the /src/core folder to ES6 modules 2017-05-30 22:06:21 +02:00
chunked_stream.js Make the getBytes/peekBytes methods of Stream/DecodeStream/ChunkedStream able to return Uint8ClampedArrays 2018-06-12 11:01:32 +02:00
cmap.js Convert CMap and IdentityCMap to ES6 classes 2018-07-09 21:12:01 +02:00
colorspace.js Removed Extraneous Matrix Check in CalRGB Conversion 2018-08-02 10:16:42 -07:00
crypto.js Implement the AESBaseCipher class and let the AES128Cipher and AES256Cipher classes extend it 2018-02-03 20:16:33 +01:00
document.js Remove the unused PDFDocument.mainXRefEntriesOffset method 2018-08-19 14:08:39 +02:00
encodings.js Implement unit tests for the encodings and fix missing items 2017-12-24 18:14:40 +01:00
evaluator.js Add support for async/await using Babel 2018-08-19 16:54:11 +02:00
font_renderer.js Convert CompiledFont, TrueTypeCompiled, and Type2Compiled to ES6 classes 2018-07-09 21:12:01 +02:00
fonts.js Tweak the MMType1 font detection in getFontFileType to improve font telemetry (PR 9961 follow-up) 2018-08-08 12:18:37 +02:00
function.js Use Dict.getArray, instead of Dict.get, when getting the 'Size' in constructSampled in src/core/function.js (PR 7295 follow-up) 2018-06-02 11:16:05 -04:00
glyphlist.js Convert the files in the /src/core folder to ES6 modules 2017-05-30 22:06:21 +02:00
image.js Stop warning for non-Name /Filter entries in the PDFImage constructor (PR 9897 follow-up) 2018-08-03 10:23:08 +02:00
jbig2_stream.js Fix the interface of JpegStream/JpxStream/Jbig2Stream to agree with the other DecodeStreams 2017-11-11 11:22:16 +01:00
jbig2.js Expose a Jbig2Image.parse method, by re-instating the parseJbig2 function 2018-06-16 17:56:54 +02:00
jpeg_stream.js Change the signature of the JpegImage constructor, to allow passing in various options directly 2018-06-16 17:56:54 +02:00
jpg.js Change the signature of the JpegImage constructor, to allow passing in various options directly 2018-06-16 17:56:54 +02:00
jpx_stream.js Fix the interface of JpegStream/JpxStream/Jbig2Stream to agree with the other DecodeStreams 2017-11-11 11:22:16 +01:00
jpx.js Add more validation of the /Filter entry, in image dictionaries, to the PDFImage constructor 2018-08-01 16:41:15 +02:00
metrics.js Convert the files in the /src/core folder to ES6 modules 2017-05-30 22:06:21 +02:00
murmurhash3.js [api-major] Remove the TypedArray polyfills 2017-11-01 10:31:28 +01:00
obj.js Add support for async/await using Babel 2018-08-19 16:54:11 +02:00
operator_list.js Ensure that Uint8ClampedArray is used for image data transfered by getTransfers (PR 9802 follow-up) 2018-08-16 10:29:44 +02:00
parser.js Let Lexer.getNumber treat a single decimal point as zero (issue 9252) 2018-06-20 13:41:21 +02:00
pattern.js Fix typos 2018-04-01 23:20:41 +02:00
pdf_manager.js Add support for async/await using Babel 2018-08-19 16:54:11 +02:00
primitives.js Replace the isArray helper function with the native Array.isArray function 2017-09-01 20:27:13 +02:00
ps_parser.js Removes error() 2017-07-07 09:40:24 -05:00
standard_fonts.js Add a fallback for non-embedded LucidaSans-Demi fonts (issue 9291) 2017-12-24 17:36:58 +01:00
stream.js Attempt to estimate the minimum required buffer length when initializing StreamsSequenceStream instances 2018-07-26 13:42:59 +02:00
type1_parser.js Remove usage of makeSubStream from Type1Parser.extractFontProgram in src/core/type1_parser.js (issue 9735) 2018-05-28 14:32:20 +02:00
unicode.js For non-embedded fonts, map softhyphen (0x00AD) to regular hyphen (0x002D) (issue 9084) 2017-10-31 13:26:04 +01:00
worker.js [api-minor] Refactor the annotation code to be asynchronous 2018-08-11 19:00:29 +02:00