From 80f8d527ff108406a54eb592076f2db2654529f6 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Mon, 27 Oct 2014 02:25:23 +0200 Subject: [PATCH] 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 ea5dc421c3..cbd6cc3a04 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 fcd40680da..adc5eb9f13 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; + } } } };