Skip to content

Commit 588db26

Browse files
committed
add test filter for ES6 constructs
1 parent ec96635 commit 588db26

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var supportsES6 = require("../../../helpers/supportsES6");
2+
var supportDefaultAssignment = require("../../../helpers/supportDefaultAssignment");
3+
var supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring");
4+
var supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring");
5+
6+
module.exports = function(config) {
7+
return !config.minimize &&
8+
supportsES6() &&
9+
supportDefaultAssignment() &&
10+
supportsObjectDestructuring() &&
11+
supportsIteratorDestructuring();
12+
};

0 commit comments

Comments
 (0)