[Pkg-javascript-commits] [node-acorn-jsx] 336/484: Loose: Skip ES7 tests as we are targeting ES6 now.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:52 UTC 2017


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

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 80f8d527ff108406a54eb592076f2db2654529f6
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Mon Oct 27 02:25:23 2014 +0200

    Loose: Skip ES7 tests as we are targeting ES6 now.
---
 test/driver.js | 1 +
 test/run.js    | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/test/driver.js b/test/driver.js
index ea5dc42..cbd6cc3 100644
--- a/test/driver.js
+++ b/test/driver.js
@@ -16,6 +16,7 @@
 
     for (var i = 0; i < tests.length; ++i) {
       var test = tests[i];
+      if (config.filter && !config.filter(test)) continue;
       try {
         var testOpts = test.options || {locations: true};
         var expected = {};
diff --git a/test/run.js b/test/run.js
index fcd4068..adc5eb9 100644
--- a/test/run.js
+++ b/test/run.js
@@ -11,7 +11,11 @@ var stats, modes = {
   Loose: {
     config: {
       parse: (typeof require === "undefined") ? window.acorn_loose : require("../acorn_loose").parse_dammit,
-      loose: true
+      loose: true,
+      filter: function (test) {
+        var ecmaVersion = (test.options || {}).ecmaVersion || 5;
+        return ecmaVersion <= 6;
+      }
     }
   }
 };

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



More information about the Pkg-javascript-commits mailing list