Skip to content

Commit

Permalink
Merge pull request #116 from microsoft/importstar-skip-default
Browse files Browse the repository at this point in the history
Skip default when initially iterating exports in __importStar, same as __exportStar
  • Loading branch information
DanielRosenwasser authored May 28, 2020
2 parents 2d12014 + 6934962 commit 2364290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tslib.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ var __setModuleDefault = Object.create ? (function(o, v) {
export function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ var __createBinding;
__importStar = function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Expand Down

0 comments on commit 2364290

Please sign in to comment.