From fc616eff1c3f61cd96e24644eeb76d8f8469a05c Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Mon, 20 Jul 2020 09:45:37 -0600 Subject: [PATCH] fix(marshal): make toString and Symbol.toStringTag non-enumerable --- packages/marshal/marshal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/marshal/marshal.js b/packages/marshal/marshal.js index a0138773226..efedf117efa 100644 --- a/packages/marshal/marshal.js +++ b/packages/marshal/marshal.js @@ -726,9 +726,11 @@ function Remotable(iface = 'Remotable', props = {}, remotable = {}) { Object.create(oldRemotableProto, { toString: { value: toString, + enumerable: false, }, [Symbol.toStringTag]: { value: allegedName, + enumerable: false, }, }), );