Skip to content

Commit

Permalink
Merge pull request #1315 from Agoric/mfig/non-enumerable-remotables
Browse files Browse the repository at this point in the history
fix(marshal): make toString and Symbol.toStringTag non-enumerable
  • Loading branch information
michaelfig authored Jul 20, 2020
2 parents 06b73f6 + fc616ef commit 9896a65
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 9896a65

Please sign in to comment.