Skip to content

Commit

Permalink
fix(marshal): make toString and Symbol.toStringTag non-enumerable
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jul 20, 2020
1 parent 06b73f6 commit fc616ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/marshal/marshal.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,11 @@ function Remotable(iface = 'Remotable', props = {}, remotable = {}) {
Object.create(oldRemotableProto, {
toString: {
value: toString,
enumerable: false,
},
[Symbol.toStringTag]: {
value: allegedName,
enumerable: false,
},
}),
);
Expand Down

0 comments on commit fc616ef

Please sign in to comment.