Login  Register

Re: Returning an array in Javascript

Posted by ctrueden on Aug 24, 2015; 7:36pm
URL: http://imagej.273.s1.nabble.com/Returning-an-array-in-Javascript-tp5014124p5014133.html

Hi Avital,

> [WARNING] Ignoring unsupported output: result
> [sun.org.mozilla.javascript.internal.NativeArray]

This warning comes from the SciJava script framework -- part of ImageJ2. It
means that the last computation of your script produced an array of values,
which the system wants to display, but doesn't know how.

Any chance you could share a minimal script which illustrates the issue?

Also, which version of Java and which OS are you using?

Regards,
Curtis

On Mon, Aug 24, 2015 at 7:02 AM, Avital Steinberg <[hidden email]
> wrote:

> Hi,
> I'm having a problem returning arrays in Javascript. I have a function that
> calculates things and returns an array of values. When I try to return an
> array, I get the following red warning message in the console:
>
> [WARNING] Ignoring unsupported output: result
> [sun.org.mozilla.javascript.internal.NativeArray]
>
> Also, I'm having trouble reproducing the problem, since it often disappears
> for an unknown reason, and then I can't reproduce it.
>
> Thanks,
> Avital
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html