securityos/node_modules/@swc/helpers/esm/_export_star.js

16 lines
413 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
export function _export_star(from, to) {
Object.keys(from).forEach(function(k) {
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
Object.defineProperty(to, k, {
enumerable: true,
get: function() {
return from[k];
}
});
}
});
return from;
}
export { _export_star as _ };