mirror of https://github.com/webpack/webpack.git
9 lines
195 B
JavaScript
9 lines
195 B
JavaScript
|
module.exports = function supportsIteratorDestructuring() {
|
||
|
try {
|
||
|
var f = eval("(function f({x, y}) { return x + y; })");
|
||
|
return f({ x: 1, y: 2 }) === 3;
|
||
|
} catch(e) {
|
||
|
return false;
|
||
|
}
|
||
|
};
|