Upstream changes from Bug 1202902 - Give loader scripts and XUL frame scripts a lexical scope that doesn't break everything?
One of the patches in https://bugzilla.mozilla.org/show_bug.cgi?id=1202902, specifically [`Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff)`](https://hg.mozilla.org/mozilla-central/rev/380817d573cd), touches PDF.js code. Unfortunately it was landed upstream without, as far as I can tell, notifying us about it. This patch uplifts the relevant changes to avoid future merge conflicts, and for consistency also tweaks `PdfJs-stub.jsm`.
This commit is contained in:
parent
1bdfc47de8
commit
26ec36ba4c
4 changed files with 5 additions and 5 deletions
|
@ -22,6 +22,6 @@
|
|||
// See https://mxr.mozilla.org/mozilla-central/source/browser/components/nsBrowserGlue.js
|
||||
var EXPORTED_SYMBOLS = ['PdfJs'];
|
||||
|
||||
let PdfJs = {
|
||||
var PdfJs = {
|
||||
init: function PdfJs_init() {}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue