We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53104ac commit 77ff5b7Copy full SHA for 77ff5b7
stdlib/public/core/ArrayBuffer.swift
@@ -372,7 +372,7 @@ extension _ArrayBuffer {
372
373
@inline(never)
374
func _getElementSlowPath(i: Int) -> AnyObject {
375
- assert(_isClassOrObjCExistential(Element.self), "Only single reference elements can be indexed here.")
+ _sanityCheck(_isClassOrObjCExistential(Element.self), "Only single reference elements can be indexed here.")
376
let element: AnyObject
377
if _isNative {
378
// _isValidSubscript does no subscript checking for the slow path.
0 commit comments