# Odd bug in comment node

**URL:** <https://discourse.nodered.org/t/odd-bug-in-comment-node/48464>\
**Category:** General\
**Created:** [15 July 2021 18:52 UTC](https://discourse.nodered.org/t/odd-bug-in-comment-node/48464 "2021-07-15T18:52:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [15 July 2021 18:52 UTC](https://discourse.nodered.org/t/odd-bug-in-comment-node/48464/1 "2021-07-15T18:52:16Z")

</div>

Node-RED version: v1.3.5  
Node.js version: v12.19.0

 ![Comment Bug](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/b/9b59633b7904627464e25c63911ff3a1e42e2da6.png)

```auto
[{"id":"51ea8e42.9005c","type":"comment","z":"3cd40fb9.7975d","name":"hasOwnProperty","info":"","x":510,"y":620,"wires":[]},{"id":"fedb34cd.f530b8","type":"comment","z":"3cd40fb9.7975d","name":"hasOwnProperty()","info":"","x":730,"y":620,"wires":[]}]

```

This may be due to the fact that `hasOwnProperty` is a defined JS method name, but a quick look has not turned up any other cases. Please don't ask how I stumbled on this.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [15 July 2021 19:33 UTC](https://discourse.nodered.org/t/odd-bug-in-comment-node/48464/2 "2021-07-15T19:33:07Z")

</div>

please raise it as an issue so we can track it... thanks  
(PS and same with other nodes like function etc...)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/2/82af1b713922893906e3e57b6fec6e415a2be5b8.png)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [16 July 2021 07:55 UTC](https://discourse.nodered.org/t/odd-bug-in-comment-node/48464/3 "2021-07-16T07:55:06Z")

</div>

Now fixed in git. Will be in the next 1.3.x and 2.x releases.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 July 2021 07:59 UTC](https://discourse.nodered.org/t/odd-bug-in-comment-node/48464/4 "2021-07-16T07:59:24Z")

</div>

Nick, does that also fix entering the comment ` __proto__ `.

I found that particular comment causes an array of issues e.g.

- after OKing the comment and clicking elsewhere, you cant get into the quick add popup (CTRL+Click),
- you cant delete the comment.
- Sometimes cannot get into any nodes UI
- And this is in the console log...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/2/62ca6cb079fda121e29228bc56c1f0ba824505e7.png)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [16 July 2021 08:08 UTC](https://discourse.nodered.org/t/odd-bug-in-comment-node/48464/5 "2021-07-16T08:08:12Z")

</div>

Yes - it prevents all prototype pollution of the internal text dimension cache.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 September 2021 08:08 UTC](https://discourse.nodered.org/t/odd-bug-in-comment-node/48464/6 "2021-09-14T08:08:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
