Quote:
It evaluates the input string(stored in %js) as javascript and returns the resulting value: an object containing a single key("test") with a string value of 3000 a's

Okay, where in the $com() call is this array accessible by mIRC? The $com() identifier provides you with access to the variables returned by the routine that $com() calls. But I cannot see where this is in your call.