Espruino/tests/test_function_array_002.js
Gordon Williams (u36) 78f9cf0396 another test
2013-10-10 10:19:14 +01:00

7 lines
141 B
JavaScript

// Test a function returning an array
function a() { return [function () { return [41,42,43]; }] ; };
var v = a()[0]()[1];
result = v==42;