typedArrayType property

JSTypedArrayType get typedArrayType

Implementation

JSTypedArrayType get typedArrayType {
  final JSException exception = JSException.create(_context);
  try {
    final int type = js_bd.JSValueGetTypedArrayType(_context.ref, _ref, exception.ref);
    if (exception.shouldThrow) {
      throw exception.error;
    }
    return JSTypedArrayType.values[type];
  } finally {
    exception.release();
  }
}