Handle ArrayBuffer's byteLength instead of length.