Loose: Skip ES7 tests as we are targeting ES6 now.
This commit is contained in:
parent
bdce88c184
commit
80f8d527ff
@ -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 = {};
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user