getPropertyAtIndex method
Implementation
JSValue getPropertyAtIndex(int propertyIndex) {
final JSException exception = JSException.create(_context);
try {
final JSValueRef valueRef = js_bd.JSObjectGetPropertyAtIndex(_context.ref, _ref, propertyIndex, exception.ref);
if (exception.shouldThrow) {
throw exception.error;
}
return JSValue(_context, valueRef);
} finally {
exception.release();
}
}