Function node flags octal assignments with leading 0's, warns at deploy but runs fine

If you enter the following into a function node, no statement is flagged in the editor:

msg.payload = 0755
return msg;

Screen Shot 2020-08-09 at 11.11.23 AM

However when you look at the flow diagram, the function node is flagged (red triangle) with a noerr:
Screen Shot 2020-08-09 at 11.13.19 AM

and you get a message at deploy time:
Screen Shot 2020-08-09 at 11.13.06 AM

and if you do deploy, the node works correctly:

@dceejay or @knolleary bug??

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