# Ok, I am really digging the new Javascript editor environment in NR 3.0, but I noticed something?

**URL:** <https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452>\
**Category:** General\
**Created:** [22 July 2022 00:26 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452 "2022-07-22T00:26:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [22 July 2022 00:26 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452/1 "2022-07-22T00:26:00Z")

</div>

I happen to type 'node.warm(msg);' and then saved the function node, and the new code validation did not flag that is wrong and the flow executed.... the node.warm never executed of course. That not a bug? Bad command error no? Or bad method of node class error?

---

<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:** [22 July 2022 06:08 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452/2 "2022-07-22T06:08:23Z")

</div>

No, not a bug.

`node` is declared as an object under the hood so compile time checking is ok with that part. Properties and functions of an object are dynamic and only evaluated at runtime.

There is nothing stopping you writing `node.warm = node.warn` and it would actually work.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [22 July 2022 06:46 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452/3 "2022-07-22T06:46:24Z")

</div>

That is a good point I had not considered... that if I added a property to node object. Well, that explains it. Was good for laugh, but really did wonder. So much for strict syntax rules!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 July 2022 08:33 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452/4 "2022-07-22T08:33:37Z")

</div>

> [@Nodi.Rubrum](#):
>
> So much for strict syntax rules

Syntax is the relevant word. There is nothing wrong with the syntax.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [22 July 2022 19:20 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452/5 "2022-07-22T19:20:12Z")

</div>

Was my comment not obviously humorously sarcastic? 🙂 I must be slipping.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 July 2022 19:38 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452/6 "2022-07-22T19:38:01Z")

</div>

> [@Nodi.Rubrum](#):
>
> Was my comment not obviously humorously sarcastic

No, it was ambiguously humorously sarcastic. 🙂

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [23 July 2022 14:18 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452/7 "2022-07-23T14:18:07Z")

</div>

LOL! Nice.

---

<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:** [6 August 2022 14:18 UTC](https://discourse.nodered.org/t/ok-i-am-really-digging-the-new-javascript-editor-environment-in-nr-3-0-but-i-noticed-something/65452/8 "2022-08-06T14:18:22Z")

</div>

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