Skip to content

Commit 8d24712

Browse files
committed
Improve __assign emit:remove getOwnPropertySymbols
Since __assign defaults to Object.assign if present, our own helper will never be used in ES6 and higher, and `getOwnPropertySymbols` is not needed in ES5 and below because symbols don't exist there.
1 parent a7d97c0 commit 8d24712

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/compiler/emitter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
3838
s = arguments[i];
3939
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
4040
t[p] = s[p];
41-
if (typeof Object.getOwnPropertySymbols === "function")
42-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
43-
t[p[i]] = s[p[i]];
4441
}
4542
return t;
4643
};`;

0 commit comments

Comments
 (0)