I have a question about Destructuring assignment in ECMAScript.
Is it possible to reference a variable that has just been previously destructed as the default value?
function doSomething({ requiredProp, optionalProp = requiredProp }) {
}
Is there a guarantee of evaluation order in the spec? From looking at the transpiled code to ES5 with Babel or tsc, this seems to work.