[Pkg-javascript-commits] [node-async] 02/04: Add patch 1001 to replace ancient process.binding('evals') with require('vm') in testsuite.

Jonas Smedegaard dr at jones.dk
Sun Jan 7 18:27:31 UTC 2018


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

js pushed a commit to annotated tag debian/0.8.0-3
in repository node-async.

commit 8b67177f8ac9dbc6585a7f65fa074596ad0fd0fc
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Jan 7 18:59:31 2018 +0100

    Add patch 1001 to replace ancient process.binding('evals') with require('vm') in testsuite.
---
 debian/patches/1001_avoid_evals.patch | 17 +++++++++++++++++
 debian/patches/README                 |  3 +++
 debian/patches/series                 |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/patches/1001_avoid_evals.patch b/debian/patches/1001_avoid_evals.patch
new file mode 100644
index 0000000..3606d5e
--- /dev/null
+++ b/debian/patches/1001_avoid_evals.patch
@@ -0,0 +1,17 @@
+Description: Replace ancient process.binding('evals') with require('vm')
+Author: Jonas Smedegaard <dr at jones.dk>
+Copyright: GPL-3+
+Last-Update: 2018-01-07
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/test-async.js
++++ b/test/test-async.js
+@@ -1806,7 +1806,7 @@
+             if(err) return test.done();
+ 
+             // Script -> NodeScript in node v0.6.x
+-            var Script = process.binding('evals').Script || process.binding('evals').NodeScript;
++            var Script = require('vm').Script || require('vm').NodeScript;
+ 
+             var s = new Script(content, filename);
+             var s2 = new Script(
diff --git a/debian/patches/README b/debian/patches/README
new file mode 100644
index 0000000..d2b94cd
--- /dev/null
+++ b/debian/patches/README
@@ -0,0 +1,3 @@
+0xxx: Backports from newer upstream CVS.
+1xxx: Possibly relevant for upstream adoption.
+2xxx: Only relevant for official Debian release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d6b5fde
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1001_avoid_evals.patch

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



More information about the Pkg-javascript-commits mailing list