newArray method
Implementation
JsValue newArray() {
return _action(JS_ACTION_NEW_ARRAY, 0,
block: (results, len) {
if (len == 1 && results[0].type == ARG_TYPE_RAW_POINTER) {
Pointer rawPtr = results[0].ptrValue;
var ptr = binder.retainValue(_context, rawPtr);
return IOJsValue._js(this, ptr.ref.ptrValue);
} else {
throw Exception("Wrong result");
}
},
);
}