When insert an undefined value in an Array and stringify the Array, the undefined value is printed as a null value. That's the reason why such error has been occurred. Thus, the only way to avoid such error is to changing data structure the Invoke, message structure for RFC.
Summary
Call remote function
(1, 2, undefined)
-> be(1, 2, null)
Code occuring the bug
Solution
When insert an
undefined
value in anArray
andstringify
theArray
, theundefined
value is printed as anull
value. That's the reason why such error has been occurred. Thus, the only way to avoid such error is to changing data structure the Invoke, message structure for RFC.https://github.com/samchon/tgrid/blob/db768071dafe371b2076fa8837e80fd67c223f5b/src/basic/Invoke.ts#L17-L29
If the
Invoke.IFunction
represents parametric values as not atomic values, but being capsuled into objects, the bug must be fixed.