D | objectSpreadNegative.js | 23 let spread = { ...{ b: true }, ...{s: "foo" } }; variable 24 spread = { s: "foo" }; // error, missing 'b' variable 26 spread = b; // error, missing 's' 108 var spread = __assign({ b: true }, { s: "foo" }); 109 spread = { s: "foo" }; // error, missing 'b' variable 111 spread = b; // error, missing 's'
|