fn create_buffer_source_with_length<T>(
    cx: JSContext,
    len: usize,
    dest: MutableHandleObject<'_>,
) -> Result<TypedArray<T, *mut JSObject>, ()>