mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Restore the btoa
/atob
polyfills for Node.js
These were removed in PR 9170, since they were unused in the browsers that we'll support in PDF.js version `2.0`. However looking at the output of Travis, where a subset of the unit-tests are run using Node.js, there's warnings about `btoa` being undefined. This doesn't appear to cause any errors, which probably explains why we didn't notice this before (despite PR 9201).
This commit is contained in:
parent
ba0a3aebd0
commit
0e1b5589e7
16 changed files with 73 additions and 28 deletions
|
@ -15,10 +15,11 @@
|
|||
/* globals __non_webpack_require__ */
|
||||
|
||||
import {
|
||||
createObjectURL, FONT_IDENTITY_MATRIX, IDENTITY_MATRIX, ImageKind, isNodeJS,
|
||||
isNum, OPS, Util, warn
|
||||
createObjectURL, FONT_IDENTITY_MATRIX, IDENTITY_MATRIX, ImageKind, isNum, OPS,
|
||||
Util, warn
|
||||
} from '../shared/util';
|
||||
import { DOMSVGFactory } from './dom_utils';
|
||||
import isNodeJS from '../shared/is_node';
|
||||
|
||||
var SVGGraphics = function() {
|
||||
throw new Error('Not implemented: SVGGraphics');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue