Files
codeql/javascript/extractor/tests/es2015/input/destructuring.js
2018-11-07 07:48:25 +00:00

13 lines
163 B
JavaScript

function f([x, y]) {
var [a, [, c]] = x;
try {
throw [a, c];
} catch (d) {
console.log(d);
}
}
function g({ x, y: z }) {
var { [x]: w } = z;
return w;
}