Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/JavaScriptFoundationCompat/Data+JSValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extension Data: ConvertibleToJSValue, ConstructibleFromJSValue {
public var jsValue: JSValue { jsTypedArray.jsValue }

/// Construct a Data from a JSTypedArray<UInt8>.
public static func construct(from uint8Array: JSTypedArray<UInt8>) -> Data? {
public static func construct(from uint8Array: JSTypedArray<UInt8>) -> Data {
// First, allocate the data storage
var data = Data(count: uint8Array.lengthInBytes)
// Then, copy the byte contents into the Data buffer
Expand Down
Loading