Loose: Skip ES7 tests as we are targeting ES6 now.

This commit is contained in:
Ingvar Stepanyan 2014-10-27 02:25:23 +02:00 committed by Marijn Haverbeke
parent bdce88c184
commit 80f8d527ff
2 changed files with 6 additions and 1 deletions

View File

@ -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 = {};

View File

@ -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;
}
}
}
};