Skip to content

Commit 1e7bbfe

Browse files
author
Diogo Franco (Kovensky)
committed
Add a test filter to skip platforms where it would crash
1 parent 996a4b6 commit 1e7bbfe

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
var supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring");
2+
3+
module.exports = function(config) {
4+
return !config.minimize && supportsIteratorDestructuring();
5+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = function supportsIteratorDestructuring() {
2+
try {
3+
var f = eval("(function f([, x, ...y]) { return x; })");
4+
return f([1, 2]) === 2;
5+
} catch(e) {
6+
return false;
7+
}
8+
};

0 commit comments

Comments
 (0)