Skip to content

Commit

Permalink
Use original getOwnPropertyNames for retrieving symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
maier49 committed Jun 10, 2019
1 parent edca077 commit e558d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shim/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ if (!has('es6-object')) {
};

Object.getOwnPropertySymbols = function getOwnPropertySymbols(o: any): symbol[] {
return Object.getOwnPropertyNames(o)
return getOwnPropertyNames(o)
.filter((key) => Boolean(key.match(/^@@.+/)))
.map((key) => Symbol.for(key.substring(2)));
};
Expand Down

0 comments on commit e558d1a

Please sign in to comment.