Files
tsgo/testdata/baselines/reference/submodule/conformance/destructuringObjectAssignmentPatternWithNestedSpread(target=es2018).js

12 lines
414 B
TypeScript

//// [tests/cases/conformance/es6/destructuring/destructuringObjectAssignmentPatternWithNestedSpread.ts] ////
//// [destructuringObjectAssignmentPatternWithNestedSpread.ts]
let a: any, b: any, c: any = {x: {a: 1, y: 2}}, d: any;
({x: {a, ...b} = d} = c);
//// [destructuringObjectAssignmentPatternWithNestedSpread.js]
"use strict";
let a, b, c = { x: { a: 1, y: 2 } }, d;
({ x: { a, ...b } = d } = c);