TypeScript/tests/baselines/reference/exportObjectRest(module=system,target=es5).js
Ron Buckton e3f4979736
Fix emit for object rest on a module export (#32699)
* Fix emit for object rest on a module export

* Add tests for exports of empty object/array binding patterns

* Add delay for exec to ensure diff tool has enough time to start
2019-08-05 16:53:21 -07:00

16 lines
459 B
TypeScript

//// [exportObjectRest.ts]
export const { x, ...rest } = { x: 'x', y: 'y' };
//// [exportObjectRest.js]
System.register([], function (exports_1, context_1) {
"use strict";
var _a, x, rest;
var __moduleName = context_1 && context_1.id;
return {
setters: [],
execute: function () {
exports_1("x", x = (_a = { x: 'x', y: 'y' }, _a).x), exports_1("rest", rest = __rest(_a, ["x"]));
}
};
});