[Pkg-javascript-commits] [mathjax] 01/01: Add a patch to fix invalid usage of ‘let’ as variable name in JS.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Thu Dec 28 22:03:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository mathjax.

commit bd671d61a8b17e890d933ed7286c95ebebd48c49
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Thu Dec 28 17:30:37 2017 +0300

    Add a patch to fix invalid usage of ‘let’ as variable name in JS.
---
 debian/changelog                   |  2 ++
 debian/patches/series              |  1 +
 debian/patches/variable_names.diff | 27 +++++++++++++++++++++++++++
 3 files changed, 30 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3145610..2eb2fba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,8 @@ mathjax (2.7.2+dfsg-1) UNRELEASED; urgency=medium
     modern browsers.
   * Install STIX-Web fonts in fonts packages (closes: #881534).
   * Change section of libjs-mathjax to javascript.
+  * Add a patch to fix invalid usage of ‘let’ as variable name in JS
+    (variable_names.diff).
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Thu, 29 Jun 2017 17:03:24 +0300
 
diff --git a/debian/patches/series b/debian/patches/series
index a51cfdb..9a16701 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 no_extra_fonts.diff
 update_url.diff
+variable_names.diff
diff --git a/debian/patches/variable_names.diff b/debian/patches/variable_names.diff
new file mode 100644
index 0000000..1725529
--- /dev/null
+++ b/debian/patches/variable_names.diff
@@ -0,0 +1,27 @@
+Description: do not use let as variable name
+Author: Dmitry Shachnev <mitya57 at debian.org>
+Forwarded: https://github.com/mathjax/MathJax/pull/1893
+Last-Update: 2017-12-28
+
+--- a/unpacked/extensions/TeX/newcommand.js
++++ b/unpacked/extensions/TeX/newcommand.js
+@@ -41,7 +41,7 @@
+       newenvironment:   'NewEnvironment',
+       renewenvironment: 'NewEnvironment',
+       def:              'MacroDef',
+-      let:              'Let'
++      'let':            'Let'
+     }
+   },null,true);
+ 
+--- a/unpacked/jax/input/TeX/jax.js
++++ b/unpacked/jax/input/TeX/jax.js
+@@ -989,7 +989,7 @@
+         newenvironment:    ['Extension','newcommand'],
+         renewenvironment:  ['Extension','newcommand'],
+         def:               ['Extension','newcommand'],
+-        let:               ['Extension','newcommand'],
++        'let':             ['Extension','newcommand'],
+         
+         verb:              ['Extension','verb'],
+         

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/mathjax.git



More information about the Pkg-javascript-commits mailing list