We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2909a1 commit 782ceb4Copy full SHA for 782ceb4
src/compiler/transformers/destructuring.ts
@@ -521,8 +521,10 @@ namespace ts {
521
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
522
t[p] = s[p];
523
if (s != null && typeof Object.getOwnPropertySymbols === "function")
524
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
525
- t[p[i]] = s[p[i]];
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
526
+ t[p[i]] = s[p[i]];
527
+ }
528
return t;
529
};`
530
};
0 commit comments