I had this code in a Function node:
var test;
test.start_time_ms = 100;
This node returns an error: “Cannot set property ‘start_time_ms’ of undefined.”
If I switch to this, then the error goes away:
var test = {};
test.start_time_ms = 100;
Strangely, I am able to use the original example in Chrome’s console without any errors. The field/property start_time_ms seems to be created-on-assignment using Chrome, but not using the Function node.
Is the Function-node’s JS interpreter acting differently from Chrome’s in this situation, or is there another explanation?