mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
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.
This commit is contained in:
parent
a7d97c0ece
commit
8d24712d85
@ -38,9 +38,6 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
|
||||
s = arguments[i];
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||
t[p] = s[p];
|
||||
if (typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user