* 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
16 lines
459 B
TypeScript
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"]));
|
|
}
|
|
};
|
|
});
|